help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] expressing a constraint depending on a boolean variable


From: esma mehiaoui
Subject: [Help-glpk] expressing a constraint depending on a boolean variable
Date: Wed, 4 Nov 2015 08:44:49 +0000 (UTC)

Hello everyone,

Please could you help me to express the following constraint if possible.

for i in {1..2} if V[i] =1 then 2<= sum {x in MySet} V2[x] <=3
                    else (V[i] =0) then sum {x in MySet} V2[x]  may have any value (i do not care about the value in this case)


with V and V2 are boolean variables


Thank you in advance
Esma

reply via email to

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