12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Likewise, the application adds an array of constraints to the model. These constraints areneeded later in column generation as well, so the application again uses IloAdd again to addthe array Fill to the model.IloRangeArray Fill = IloAdd(cutOpt,IloRangeArray(env, amount, IloInfinity));That statement creates amount.getSize range constraints. Constraint Fill[i] has alower bound of amount[i] and an upper bound of IloInfinity.Using a Method to Add ObjectsIt is also possible to add objects to your model by means of the method IloModel::add.This example uses that approach for the submodel in this line:patGen.add(IloScalProd(size, Use)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!