[Top][All Lists]

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

[Help-glpk] Sign of an integer

From: hamsda9
Subject: [Help-glpk] Sign of an integer
Date: Mon, 7 Apr 2008 01:46:07 -0700 (PDT)


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

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:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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