help-glpk
[Top][All Lists]
Advanced

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

RE: [Help-glpk] "0 or greater than" condition


From: Meketon, Marc
Subject: RE: [Help-glpk] "0 or greater than" condition
Date: Sat, 22 Mar 2008 12:22:05 -0400

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: address@hidden
[mailto:address@hidden On
Behalf Of JohannesJ
Sent: Saturday, March 22, 2008 10:46 AM
To: address@hidden
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
address@hidden
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.
---------------------------------------------------------------------------- 





reply via email to

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