Overview | Group | Tree | Graph | Index | Concepts |
An instance of this class represents a constrained Boolean variable in a Concert Technology model. Boolean variables are also known as binary decision variables. They can assume the values 0 (zero) or 1 (one).
Most member functions in this class contain assert
statements. For an
explanation of the macro NDEBUG
(a way to turn on or turn off these
assert
statements), see the concept
Assert and NDEBUG.
What Is Extracted
An instance of IloBoolVar
is extracted by IloSolver
(documented in the ILOG Solver Reference Manual) as an instance of the class
IlcBoolVar
(also documented in the ILOG Solver Reference Manual).
An instance of IloBoolVar
is extracted by IloCplex
(documented in the ILOG CPLEX Reference Manual) as a column representing a
numeric variable of type Bool
with bounds as indicated by
IloBoolVar
.
See Also:
Constructor Summary | |
---|---|
public | IloBoolVar(IloEnv, IloInt, IloInt, const char *) |
public | IloBoolVar(IloEnv, const char *) |
public | IloBoolVar(const IloAddNumVar &, const char *) |
Inherited Methods from IloIntVar |
---|
getImpl, getLB, getMax, getMin, getUB, setBounds, setLB, setMax, setMin, setPossibleValues, setUB |
Inherited Methods from IloIntExprArg |
---|
getImpl |
Inherited Methods from IloNumExprArg |
---|
getImpl |
Inherited Methods from IloExtractable |
---|
end, getEnv, getId, getImpl, getName, getObject, setName, setObject |
Constructor Detail |
---|
This constructor creates a Boolean variable and makes it part of the environment
env
. By default, the Boolean variable assumes a value of 0.0 (zero)
or 1.0. By default, its name is indicated by the empty string, but you
can indicate a name of your own choice.
This constructor creates a Boolean variable and makes it part of the environment
env
. By default, its name is indicated by the empty string, but you
can indicate a name of your own choice.
This constructor creates an instance of IloBoolVar
like this:
IloNumVar(column, 0.0, 1.0, ILOBOOL, name);