help-glpk
[Top][All Lists]
Advanced

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

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


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] expressing a constraint depending on a boolean variable
Date: Wed, 4 Nov 2015 18:49:29 +0100

Hello Esma,
 
please, see
https://en.wikibooks.org/wiki/GLPK/Modeling_tips#Big_M
 
Best regards

Heinrich Schuchardt

http://www.xypron.de
 
 
Gesendet: Mittwoch, 04. November 2015 um 09:44 Uhr
Von: "esma mehiaoui" <address@hidden>
An: "GLPK Help List" <address@hidden>
Betreff: [Help-glpk] expressing a constraint depending on a boolean variable
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
_______________________________________________ Help-glpk mailing list address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk

reply via email to

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