[FlopCpp] Accessing individual MP_Variables from a Set of
MP_Variables
Dharmashankar Subramanian
dharmash at us.ibm.com
Tue Aug 28 11:46:41 EDT 2007
Hi Tim,
I have the following problem.
Say, I have a MP_Subset, that is indexed over two MP_sets.
s3_subset =new MP_subset<2>(s1, s2)
where, s1 and s2 are two MP_sets.
2. Next, I define MP_variables over s3_subset, using the syntax:
Y= new MP_variable((*s3_subset))
3. Next, I want to set the underlying individual variables in Y, to be
binary for some, and continuous (with corresponding Lower Bounds/Upper
Bounds) for others.
I want to do this, based on the indices (corresponding to s1 and s2).
Example:
s1 = {1, 2}
s2 = {a, b}
s3_subset = { (1, a), (1, b), (2, a)}
Now, I want:
Y((1,a)) to be continuous with LB = 0, UB = Infinity.
Y((1,b)) and Y((2, a)) to be Binary.
My question is:
How do I do the above?
The Interface file for MP_Varibale doesn't seem to let me access the
underlying variables, in Y, individually.
Thanks,
Shankar
-------------------------------------------------------------
Dharmashankar Subramanian
Research Staff Member,
Analytic Models & Architecture
Math Sciences Department
Route 134, IBM T.J. Watson Research Center,
Yorktown Heights, NY 10598
Phone: 914-945-1588
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/flopcpp/attachments/20070828/a8d33ded/attachment.html
More information about the FlopCpp
mailing list