help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] var between 2 parameters


From: Paolo Tofoni
Subject: [Help-glpk] var between 2 parameters
Date: Wed, 8 Aug 2012 17:53:11 +0200

Hi,
I'm working on scheduling model which consider the day-off in the allocation.
I need your help because I need to model a constraint as the following:

var x, y;
param a,b;

if (x > param a) and (x < param b) then
    y = 1;
else
    y = 0;
end if;

do you think is feasible?
Thanks in advance for your help.



reply via email to

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