[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] [Fwd: Constraint maximize]
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] [Fwd: Constraint maximize] |
Date: |
Mon, 09 May 2011 20:28:03 +0400 |
-------- Forwarded Message --------
From: FUSL <address@hidden>
To: address@hidden
Subject: [Help-glpk] Constraint maximize
Date: Mon, 9 May 2011 07:58:25 -0700 (PDT)
Hi,
We have to define a constraint T = Max(0, c - u) which returns 0 if c-u<=0
or the value of |c-u| if c>u.
We can't compile when we use this constraint: s.t. ret{k in K}: T[k] =
Max(0, c[k] - u[k]).
How should we define this constraint, as Gusek doesn't allow us to use a Max
function in a constraint?
Thank you!!!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] [Fwd: Constraint maximize],
Andrew Makhorin <=