You generally do this by adding a binary variable (and, of course, this
becomes an integer program rather than a simple linear program, and
therefore more difficult to solve).

For example:

var z, binary;

s.t. condition{f in FOO, b in BAR}: sum{a in BAZ} x[f,b,a] >= 5 * z;

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of JohannesJ
Sent: Saturday, March 22, 2008 10:46 AM
To: [email protected]
Subject: [Help-glpk] "0 or greater than" condition


Hi all,

I want to use the following kind of condition in GLPK:

        s.t. condition{f in FOO, b in BAR}: sum{a in BAZ} x[f,b,a] "is
either 0 or
greater than 5"

Is this possible at all? If yes, do you have any hints on how I can do
this
in MathProg? I tried it, but couldn't figure it out.

Thanks in advance,
Johannes
-- 
View this message in context:
http://www.nabble.com/%220-or-greater-than%22-condition-tp16222397p16222
397.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
---------------------------------------------------------------------------- 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
---------------------------------------------------------------------------- 



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

Reply via email to