Hello,

i am searching for an expression equal to the mathematicl sign function.
I have a sum in a "subject to" statement, and i want the returning value of
this sum to be zero if the sum is 0 or to be one if the sum is greater than
0.

Example:
subject to rooms{a in A}: sum{b in B} sign(sum{c in C} x[a,b,c]) <= r;
whereas x is a variable only containing binary values.

any ideas?

Thanks in advance
Mike H.
-- 
View this message in context: 
http://www.nabble.com/Sign-of-an-integer-tp16535546p16535546.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



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

Reply via email to