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

IlcFloatVar.
The class IlcFloatVarArray is the class for an
array of instances of IlcFloatVar. Instances of
this class are arrays indexed from 0.
See Also:
| Method Summary | |
|---|---|
public IlcFloatVarArray | getCopy() const |
public IlcFloat | getMaxMax() const |
public IlcFloat | getMaxMax(IlcInt indexMin, IlcInt indexMax) const |
public IlcFloat | getMaxMin() const |
public IlcFloat | getMaxMin(IlcInt indexMin, IlcInt indexMax) const |
public IlcFloat | getMinMax() const |
public IlcFloat | getMinMax(IlcInt indexMin, IlcInt indexMax) const |
public IlcFloat | getMinMin() const |
public IlcFloat | getMinMin(IlcInt indexMin, IlcInt indexMax) const |
public IlcInt | getSize() const |
public | IlcFloatVarArray(IlcCPEngine solver, IlcInt size) |
public | IlcFloatVarArray(IlcCPEngine solver, IlcInt size ILCPARAM, const IlcFloatVar v1) |
public | IlcFloatVarArray(IlcCPEngine solver, IlcInt size, IlcFloat min, IlcFloat max) |
public IlcFloatVar & | operator[](IlcInt index) const |
| Method Detail |
|---|
This constructor creates an uninitialized array of length size. The index range of the
array is [0 size). The argument size must be strictly greater than 0 (zero).
Each element of the array must be assigned before the array can be used.
This constructor creates an array of length size. Its constrained variables are initialized
with the list of variables provided as arguments to the constructor. The number of IlcFloatVar
arguments must be equal to size.
This constructor creates an array of size constrained variables.
The argument size must be strictly greater than 0 (zero). Each constrained
variable has a domain containing all floating-point values between min
and max.
This member function returns a copy of the invoking array of constrained variables and
associates that copy with cp.
This member function returns the largest of the maximal values of the variables belonging to the invoking array of constrained variables.
This member function returns the largest of the maximal values of the variables belonging to the
invoking array of constrained 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 variables.
This member function returns the largest of the minimal values of the variables belonging to the
invoking array of constrained 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 smallest of the maximal values of the variables belonging to the invoking array of constrained variables.
This member function returns the smallest of the maximal values of the variables belonging to the
invoking array of constrained 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 smallest of the minimal values of the variables belonging to the invoking array of constrained variables.
This member function returns the smallest of the minimal values of the variables belonging to the
invoking array of constrained 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 number of variables in the invoking array.
This subscripting operator returns a reference to a constrained variable corresponding to
the given index in the invoking array of constrained variables. CP Optimizer will throw
an exception (an instance of IloException) with the message
"bad index" if the given index is not a valid one for the invoking
array of constrained variables.