> Discrete Optimization > Cutting Stock: Column Generation > Developing the Model: Building and Modifying > Adding Columns to a Model |
Adding Columns to a Model |
INDEX PREVIOUS NEXT |
Creating a new column to add to a model in Concert Technology is a two-step process:
For example, in this problem, RollsUsed
is an instance of IloObjective
. The statement RollsUsed(1)
creates a term in a column expression defining how to add a new variable as a linear term with a coefficient of 1 (one) to the expression RollsUsed
.
The terms of a column expression are connected to one another by the overloaded operator +
.
The constraints of this problem are represented in the array Fill
. A new column to be added to the model has a coefficient for each of the constraints in Fill
. Those coefficients are represented in the array newPatt
.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |