> Discrete Optimization > Rates: Using Semi-Continuous Variables > Ending the Program

As in all C++ CPLEX applications, this program ends with a call to IloEnv::end to de-allocate the model and algorithm once they are no longer in use.

    env.end();