[Top][All Lists]

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

[Help-glpk] Fixed values in Variable statement

From: Luiz M. M. Bettoni
Subject: [Help-glpk] Fixed values in Variable statement
Date: Wed, 02 Jul 2008 15:12:24 -0300
User-agent: Thunderbird (Windows/20080421)

Hi all,

I'm trying to specify fixed values to some variables in an array using = expression (see "4.3 Variable statement" in GMPL Reference). Something like this:
   set MySet;
   set MySubset within MySet;
   var X {i in MySet} = if i in MySubset then 0 else binary;

or, similarly:
   var X {i in MySet diff MySubset}, binary;
   var X {i in MySubset} = 0;

How can i do this in GMPL?


reply via email to

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