ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Using Semi-Continuous Variables: a Rates Example > Representing the Problem

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.