Creating the environment and model

Describes creation of the environment and model in the application.

As in other examples in this manual, this application begins by creating an environment, an instance of IloEnv.


IloEnv env;

Within that environment, a model for this problem is created as an instance of IloModel.


IloModel model(env);

Then constraints and an objective are added to the model. The following sections sketch these steps.