help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Initializing a few decision variables


From: Marc Goetschalckx
Subject: [Help-glpk] Initializing a few decision variables
Date: Fri, 29 Jul 2011 10:45:33 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2

I am using a model coded in GMPL.
The model has a large two-dimensional array of x variables, one dimension has literal indices that are defined in a set in the data segment (example is B1)
This model is running and solving so far.
However, I need to initialize a very few of the x variables because of boundary conditions.
Statement in the model section is similar to
s.t. x[B1,21]=1;
This cannot be done because B1 is not yet defined (from the data section).
How can I initialize some of the variables in the data section, or what is the sequence of actions that can achieve this.
Thanks.

--
Marc Goetschalckx
Industrial and Systems Engineering
Georgia Institute of Technology, Atlanta, GA, USA




reply via email to

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