ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Using Logical Constraints: Food Manufacture 2 > Representing the Data > What Is Unknown? |
What Is Unknown? |
INDEX PREVIOUS NEXT |
The variables of the problem can be represented in arrays:
like this:
In those lines, the type NumVarMatrix
is defined as:
typedef IloArray<IloNumVarArray> NumVarMatrix
;
Notice that how much to use and buy is initially unknown, and thus has an infinite upper bound, whereas the amount of oil that can be stored is limited, as you know from the description of the problem. Consequently, one of the constraints is expressed here as the upper bound of 1000 on the amount of oil by type that can be stored per month.
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |