help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] [Fwd: Conditional objective function structure]


From: Andrew Makhorin
Subject: [Help-glpk] [Fwd: Conditional objective function structure]
Date: Thu, 09 Feb 2012 11:24:10 +0300

-------- Forwarded Message --------
From: Dong-Joon Lim <address@hidden>
To: address@hidden
Subject: Conditional objective function structure
Date: Wed, 8 Feb 2012 21:23:31 -0800

Hello,


Can I make a code structure like following,,?


(if flag = 1 then
 (
  minimize ~~
  s.t. ~~
 )
 else if flag = 2 then
 (
  maximize ~~
  s.t. ~~
 )
 else
 (
   ~~
 )
);


solve;




Best,
TGno3








reply via email to

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