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.

Pattern Generator ModelThe submodel of the cutting stock problem is represented by the model patGen in thisexample. This pattern generator patGen (in contrast to cutOpt) is defined by the integervariables in the array Use. That array appears in the only constraint added to patGen: ascalar product making sure that the patterns used do not exceed the width of rolls. Theapplication also adds a rudimentary objective function to patGen. This objective initiallyconsists of only the constant 1 (one). The rest of the objective function depends on thesolution found with the initial model cutOpt. The application will build that objectivefunction as that information is computed. Here, in short, is patGen:IloModel patGen (env);IloObjective ReducedCost = IloAdd(patGen, IloMinimize(env, 1));IloNumVarArray Use(env, nWdth, 0, IloInfinity, ILOINT);patGen.add(IloScalProd(size, Use)

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

Saved successfully!

Ooh no, something went wrong!