| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

IlcIntVar.
The class IlcIntVarArray is the class for an array
of instances of IlcIntVar. Instances of
this class are arrays indexed from 0.
See Also:
| Method Summary | |
|---|---|
public IlcIntVarArray | getCopy() const |
public IlcIntVarArrayI * | getImpl() const |
public IlcInt | getMaxMax() const |
public IlcInt | getMaxMax(IlcInt indexMin, IlcInt indexMax) const |
public IlcInt | getMaxMin() const |
public IlcInt | getMaxMin(IlcInt indexMin, IlcInt indexMax) const |
public IlcInt | getMinMax() const |
public IlcInt | getMinMax(IlcInt indexMin, IlcInt indexMax) const |
public IlcInt | getMinMin() const |
public IlcInt | getMinMin(IlcInt indexMin, IlcInt indexMax) const |
public IlcInt | getSize() const |
public | IlcIntVarArray(IlcIntVarArrayI * impl=0) |
public | IlcIntVarArray(IlcCPEngine solver, IlcInt size) |
public | IlcIntVarArray(IlcCPEngine solver, IlcInt size, const IlcIntVar exp...) |
public | IlcIntVarArray(IlcCPEngine solver, IlcInt size, IlcInt min, IlcInt max) |
public IlcIntExp | operator[](const IlcIntExp exp) const |
public IlcIntVar & | operator[](IlcInt index) const |
| Method Detail |
|---|
This constructor creates a handle object from a pointer to an implementation object. If the implementation object is zero, you must initialize the handle before using it.
This constructor creates an uninitialized array of length
size. The argument size must be strictly
greater than 0 (zero). The index range of the array is
[0 size). Each element of the array must be assigned
before the array can be used.
This constructor creates an array of sets; the length of that array is size; its elements
are initialized with the arguments of type IlcIntVar. The number of arguments of type
IlcIntVar must be the same as size.
This constructor creates an array of size constrained
integer variables. The argument size must be strictly
greater than 0 (zero). Each constrained integer variable has a domain
containing all integer values between min and
max.
This member function returns a copy of the invoking array of constrained variables and associates that copy with the CP Optimizer object passed at construction time.
This member function returns a pointer to the implementation object of the invoking handle.
This member function returns the largest of the maximal values of the variables belonging to the invoking array of constrained integer variables.
This member function returns the largest of the maximal values of the
variables belonging to the invoking array of constrained integer variables.
When the arguments indexMin and indexMax
are provided, only those variables that correspond to indices in the
range [indexMin indexMax) are considered. CP Optimizer will throw
an exception (an instance of IloException
with the message "bad index interval" if the given
indexMin and indexMax are not valid indices
for the invoking array of constrained variables or if indexMin
is not strictly less than indexMax.
This member function returns the largest of the minimal values of the variables belonging to the invoking array of constrained integer variables.
This member function returns the largest of the minimal values of
the variables belonging to the invoking array of constrained integer
variables. The arguments indexMin and indexMax
are provided, only those variables that correspond to indices in the
range [indexMin indexMax) are considered. CP Optimizer will throw
an exception (an instance of IloException
with the message "bad index interval" if the given
indexMin and indexMax are not valid indices
for the invoking array of constrained variables or if indexMin
is not strictly less than indexMax.
This member function returns the smallest of the maximal values of the variables belonging to the invoking array of constrained integer variables.
This member function returns the smallest of the maximal values
of the variables belonging to the invoking array of constrained integer
variables. The arguments indexMin and indexMax
are provided, only those variables that correspond to indices in the
range [indexMin indexMax) are considered. CP Optimizer will throw
an exception (an instance of IloException
with the message "bad index interval" if the given
indexMin and indexMax are not valid indices
for the invoking array of constrained variables or if
indexMin is not strictly less than indexMax.
This member function returns the smallest of the minimal values of the variables belonging to the invoking array of constrained integer variables.
This member function returns the smallest of the minimal values
of the variables belonging to the invoking array of constrained integer
variables. The arguments indexMin and indexMax
are provided, only those variables that correspond to indices in the
range [indexMin indexMax) are considered. CP Optimizer will
throw an exception (an instance of
IloException with the message
"bad index interval" if the given
indexMin and indexMax
are not valid indices for the invoking array of constrained variables
or if indexMin is not
strictly less than indexMax.
This member function returns the number of variables in the invoking array.
This subscripting operator returns a constrained integer expression. For
clarity, let's call A the invoking array. When
exp is fixed to the value i, then the domain of
the expression is the domain of A[i]. More generally, the
domain of the expression is the union of the domains of the expressions
A[i] where the i are in the domain of
exp.
This subscripting operator returns a reference to a constrained
integer variable corresponding to the given index in the
invoking array of constrained integer variables. CP Optimizer will throw an
exception (an instance of IloCP::Exception)
with the message "bad index" if the given index
is not a valid one for the invoking array of constrained integer
variables.