[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] fraction with vars
From: |
Kasper Tordrup |
Subject: |
[Help-glpk] fraction with vars |
Date: |
Fri, 27 Apr 2012 09:57:10 +0200 |
Hi guysI have a problem with calculating a fraction, the reason is that both the nominator and denominator are variables.
So I am looking for some way to make this linear:
x_suj = p_s * (y_suj/w_su) or well just find what this fraction is: y_suj/w_su
where p_s is a constant, x,y and w are integer variables. and I also need to avoid the division with 0 problem.
Anyone know some tips/tricks for this?
Regards,
Kasper
- [Help-glpk] fraction with vars,
Kasper Tordrup <=