ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Using Special Ordered Sets (SOS) > Declaring SOS Members |
Declaring SOS Members |
INDEX PREVIOUS NEXT |
ILOG CPLEX offers you several ways to declare an SOS in a problem:
IloSOS1
, IloSOS2
, or the methods IloCplex::addSOS1
or addSOS2
.
IloSOS1
or IloSOS2
, or use the methods IloCplex.addSOS1
or addSOS2
.
ISOS1
or ISOS2
, or use the methods CplexModeler.AddSOS1
or CplexModeler.AddSOS2
.
CPXaddsos
or CPXcopysos
.
.lp
). Conventions for declaring SOS information in LP files are documented in the ILOG CPLEX File Format Reference Manual.
.mps
). If you already have MPS files with SOS information, you may prefer this option, but keep in mind that this way of declaring an SOS supports the fewest number of digits of precision in the data. Conventions for declaring SOS information in MPS files are documented in the ILOG CPLEX File Format Reference Manual.
Members of an SOS should be given unique weights that in turn define the order of the variables in the set. (These unique weights are also called reference row values.) Each of those ways of declaring SOS members allows you to specify weights.
The SOS example, Example: SOS Type 1 for Sizing a Warehouse, used the coefficients of the warehouse capacity constraint to assign weights.
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |