ilomipex1.cpp

Shows how to optimize a MIP model in the C++ API.

The example derives from ilolpex8.cpp. Here are the differences between that linear program and this mixed integer program:

  • The problem to solve is slightly different. It appears in Stating a MIP problem.

  • The routine populatebyrow added the variables, objective, and constraints to the model created by the method IloModel model(env).