> Discrete Optimization > Transport: Piecewise Linear Optimization > Developing a Model

As in other examples in this manual, this application begins by creating an environment, an instance of IloEnv, documented in the Concert Technology Reference Manual.

IloEnv env;

Within that environment, a model for this problem is created as an instance of IloModel, also documented in the Concert Technology Reference Manual.

IloModel model(env);

Then constraints and an objective are added to the model.