help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Implementing conditional amount constraints using binary var


From: Yaron Kretchmer
Subject: [Help-glpk] Implementing conditional amount constraints using binary variables
Date: Tue, 2 Jun 2009 21:24:53 -0700

Hi All.
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.
*) If the amount of variable a is zero, then the amount of variable b is not restricted.

I have a hunch this can be done with binary helper variables a_bin,b_bin which describe if a>0 and b>0, but I can't find a way of describing the relationship.

Any insights welcome

Kretch

reply via email to

[Prev in Thread] Current Thread [Next in Thread]