Hello Drakuzz,

var x, binary;
param M := 1000; #sufficiently big number;
param p;
var x;
var t;
var h;

s.t. c1 :
T <= P + M * x;
s.t. c2 :
H <= P + M * (1 - x);

Best regards

Xypron

Drakuzz wrote:
Hello list,
When trying to modelize my problem i can't find how to do it.
I have a parameter called T and two variables named P and H.
I want to add a constraint that is only enabled when the condition is met,
but the condition involves a variable :
If T>P, then P>H, else no constraints. It seems simple but i'm lost here.
Can you help me please?


_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to