IloNumVar
are used to represent modeling variables. They are described by the lower and upper bounds for the variable, and a type which can be one of ILOFLOAT
, ILOINT
, or ILOBOOL
for continuous, integer or boolean variables, respectively.
IloSemiContVar
are used to represent semi-continuous variables, which may be 0 (zero) or may take a value within an interval defined by its semi-continuous lower and upper bounds. Semi-continuous variables are usually defined as continuous variables, but you can designate an instance of IloSemiContVar
as integer by using the type indicator it inherits from IloNumVar
.
IloObjective
represent objective functions of optimization models. IloCplex
deals with models containing at most one objective function, and the objective function must be linear, piecewise linear, or quadratic.
IloRange
represent constraints of the form lower bound <= expression <= upper bound
. Any floating point value or +/- IloInfinity
can be used for the bounds.
IloConversion
override the type of a variable in a model. This allows you to use the same variable with different types in different models.
IloModel
represent models which consist of extractable objects. They can be used to create submodels or additional models in a given environment.
IloSOS1
represent type 1 Special Ordered Sets (SOS), which specify that at most one variable from a set of variables may take a nonzero value. Similarly, objects of the class IloSOS2
represent type 2 SOS, which specify that at most two variables from a set of variables may take nonzero values and that these two variables must be neighbors with respect to a specified order of the variables. SOS1 are rarely used and SOS2 are mostly used to model piecewise linear functions, for which Concert Technology provides direct support (with the class IloPiecewiseLinear
).
IloAnd
are used in conjunction with objects of the class IloSolution
.
Refer to the ILOG Concert Technology Reference Manual for more information on these classes.