[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) |

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] Sign of an integer**,
*hamsda9* **<=**