> Discrete Optimization > Cutting Stock: Column Generation > Developing the Model: Building and Modifying > Adding Columns to a Model

Creating a new column to add to a model in Concert Technology is a two-step process:

  1. Create a column expression defining the new column.
  2. Create a variable using that column expression and add the variable to the model.

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.