ILOG CPLEX 10.2 User's Manual > Languages and APIs > ILOG CPLEX Callable Library > Example: Optimizing the Diet Problem in the Callable Library

The optimization problem solved in this example is to compose a diet from a set of foods, so that the nutritional requirements are satisfied and the total cost is minimized. Problem Representation describes the problem to be solved.

The example diet.c illustrates these points: