Architecture of a CPLEX C++ application
Describes the architecture of a conventional CPLEX application in C++.
Figure 1 shows a program using CPLEX Concert Technology to solve optimization problems. The optimization part of the user’s application program is captured in a set of interacting C++ objects that the application creates and controls. These objects can be divided into two categories:
-
Modeling objects are used to define the optimization problem. Generally an application creates several modeling objects to specify the optimization problems. Those objects are grouped into an
IloModelobject representing the complete optimization problem. -
Solving objects in an instance of IloCplex are used to solve models created with the modeling objects. An instance of
IloCplexreads a model and extracts its data to the appropriate representation for the CPLEX optimizers. Then theIloCplexobject is ready to solve the model it extracted. After it solves a model, it can be queried for solution information.
