As usual in a Concert Technology application, an environment, an instance of IloEnv
, is created first to organize the data and build the model of the problem.
The data defining this problem includes the width of a roll of stock.This value is read from a file and represented by a numeric value, rollWidth
. The widths of the ordered strips are also read from a file and put into an array of numeric values, size
. Finally, the number of rolls ordered of each width is read from a file and put into an array of numeric values, amount
.