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" <[email protected]>
An: "GLPK Help List" <[email protected]>
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 [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to