> Discrete Optimization > Rates: Using Semi-Continuous Variables > Representing the Problem |
Representing the Problem |
INDEX PREVIOUS NEXT |
As input for this example, you need such data as the minimum and maximum output level for each generator. The application will use Concert Technology arrays minArray
and maxArray
for that data. It will read data from a file into these arrays, and then learn their length (that is, the number of generators available) by calling the method getSize
.
The application also needs to know the cost per unit of output for each generator. Again, a Concert Technology array, cost
, serves that purpose as the application reads data in from a file with the operator >>
.
The application also needs to know the demand for power, represented as a numeric variable, demand
.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |