[Top][All Lists]

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

[Help-glpk] binary variables in glpk

From: Nicholas Patsourakis
Subject: [Help-glpk] binary variables in glpk
Date: Sat, 15 Sep 2007 19:07:26 +0300

I am newbie in glpk and I want to solve an lp problem with binary decision variables, that is  zero (0) or one (1). How can I declare that in glpk? In the manual I found these:


LPX_FR −1 < x < +1 Free (unbounded) variable

LPX_LO lb _ x < +1 Variable with lower bound

LPX_UP −1 < x _ ub Variable with upper bound

LPX_DB lb _ x _ ub Double-bounded variable

LPX_FX lb = x = ub Fixed variable


But I none of the above can declare my binary decision variables (lpx set col bnds). Can anyone help? I am sure that there must be an answer but I cant find it.



reply via email to

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