Solving Concert Technology Models with IloCplex

CPLEX generally does not need to be involved while you create your model. However, once the model is set up, it is time to create your cplex object, that is, an instance of the class IloCplex, to be used to solve the model. IloCplex is a class derived from IloAlgorithm.. There are other Concert Technology algorithm classes, also derived from IloAlgorithm.. Some models might also be solved by using other algorithms, such as the class IloSolver for constraint programming, or by using a hybrid algorithm consisting of both IloSolver and CPLEX. Some models, on the other hand, cannot be solved with CPLEX.

The makeup of the model determines whether or not CPLEX can be used to solve it. More precisely, in order to be handled by IloCplex objects, a model may only consist of modeling objects of the following classes:

Table 1.1 Concert Technology Modeling Objects

To model: 
Use: 
numerical variables 
objects of class IloNumVar, as long as they are not constructed with a list of feasible values 
semi-continuous variable 
objects of class IloSemiContVar  
linear objective functions 
objects of class IloObjective with linear or piecewise linear expressions 
linear constraints 
objects of class IloRange with linear or piecewise linear expressions 
variable type conversions 
objects of class IloConversion  
special ordered sets of type 1 
objects of class IloSOS1 
special ordered sets of type 2 
objects of class IloSOS2 and  
constraints 
objects of class IloAnd.  

For a description of special ordered sets see Using Special Ordered Sets (SOS). The last class, IloAnd, is listed for completeness only and is generally not used with CPLEX, except with the class IloSolution, as described in the ILOG Concert Technology User's Manual.


Previous Page: Data Management Classes  Return to Top Next Page: Extracting a Model