help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Model min() or max() function


From: Patrik Dufresne
Subject: [Help-glpk] Model min() or max() function
Date: Mon, 19 Aug 2013 14:50:56 -0400

Hello,

I'm using glpk-java. I need to model a max() function similar to Excel.
max(3, 5, 7, 1) = 7

e.g.:
a,b,c,d,e,f,g,h and i are binary variables
m is an integer variable [0..+infinity[

m <= max(a, b + c  + d, e + f, g+ h + i)

Any suggestion?

--
Patrik Dufresne


reply via email to

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