[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Implementing conditional amount constraints using binary
Re: [Help-glpk] Implementing conditional amount constraints using binary variables
Wed, 3 Jun 2009 10:42:30 -0500 (CDT)
Alpine 1.00 (DEB 882 2007-12-20)
On Tue, 2 Jun 2009, Yaron Kretchmer wrote:
I would like to implement the following condition on two variables:
*) If the amount of variable *a* is greater than 0, then the amount of
variable *b* needs to be equal to that of a.
How much greater?
Absent a finite number, I suspect that there is no MILP representation.
If there is only one such pair of variables,
the best solution might be to represent it as two separate problems.
*) If the amount of variable a is zero, then the amount of variable b is not
"Pessimist: The glass is half empty.
Optimist: The glass is half full.
Engineer: The glass is twice as big as it needs to be."