ILOG CPLEX 11.0 User's Manual > Languages and APIs > ILOG CPLEX Callable Library > Example: Optimizing the Diet Problem in the Callable Library > Solving the Model with CPXlpopt

The model is at this point ready to be solved, and this is accomplished through the call to CPXlpopt, which by default uses the dual simplex optimizer.

After this, the program finishes by making a call to CPXsolution to obtain the values for each variable in this optimal solution, printing these values, and writing the problem to a disk file (for possible evaluation by the user) via the call to CPXwriteprob. It then terminates after freeing all the arrays that have been allocated along the way.