[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] fraction with vars
From: |
Michael Hennebry |
Subject: |
Re: [Help-glpk] fraction with vars |
Date: |
Fri, 27 Apr 2012 11:44:44 -0500 (CDT) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
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 address@hidden
"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