On Fri, 27 Apr 2012, Kasper Tordrup wrote:

I 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.

A lot of things can be linearized over a small enough region.
That said, if you have division by zero issues,
you probably need to reformulate.

--
Michael   [email protected]
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to