Complete program

Refers to the online sample.

The complete program ilodiet.cpp is available online in the standard distribution at yourCPLEXinstallation /examples/src .

Note:
  • All the definitions needed for a CPLEX Concert Technology application in C++ are imported by including the file <ilcplex/ilocplex.h> .

  • The line ILOSTLBEGIN is a macro that is needed for portability. Microsoft Visual C++ code varies, depending on whether you use the STL or not. This macro allows you to switch between both types of code without the need to otherwise change your source code.

  • The function usage is called in case the program is executed with incorrect command line arguments.