Overview | Group | Tree | Graph | Index | Concepts |
An instance of this class offers a convenient way to represent an enumerated variable in Concert Technology.
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.
See Also:
IloAny, IloAnyVarArray, IloExtractable, IloModel
Constructor Summary | |
---|---|
public | IloAnyVar() |
public | IloAnyVar(IloNumVarI * impl) |
public | IloAnyVar(const IloEnv env, const IloAnyArray array, const char * name=0) |
Method Summary | |
---|---|
public IloNumVarI * | getImpl() const |
public void | getPossibleValues(IloAnyArray values) const |
public void | setPossibleValues(const IloAnyArray values) |
Inherited Methods from IloExtractable |
---|
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, setName, setObject |
Constructor Detail |
---|
This constructor creates a constrained enumerated variable
from the values in
array
and makes the variable part of the
environment specified by env
.
By default, its name is the empty string, but you can
specify a name
of your own choice.
Method Detail |
---|
This constructor creates a constrained enumerated variable from the given collection.
This member function accesses the possible values of the invoking
enumerated variable and puts those values into its argument
values
.
This member function sets values
as the domain of the
invoking enumerated variable.