> Discrete Optimization > Transport: Piecewise Linear Optimization > Ending the Application

As in other C++ examples in this manual, the application ends with a call to the method IloEnv::end to clean up the memory allocated for the environment and algorithm.

env.end();