Overview | Group | Tree | Graph | Index | Concepts |
For each basic type, Concert Technology defines a corresponding array class.
IloRangeArray
is the array class of ranges for a model.
Instances of IloRangeArray
are extensible. That is, you can add more
elements to such an array. References to an array change whenever an element is added
to or removed from the array.
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.
For information on arrays, see the concept Arrays
IloRangeArray
has access to member functions defined in the
IloArray
template.See Also:
IloRange, operator>>, operator<<
Method Summary | |
---|---|
public void | add(IloInt, const IloRange) |
public void | add(const IloRange) |
public void | add(const IloRangeArray) |
public IloNumColumn | operator()(const IloNumArray) |
public IloNumColumn | operator()(const IloIntArray) |
public IloRange | operator[](IloInt) |
public IloRange & | operator[](IloInt) |
public void | setBounds(const IloIntArray, const IloIntArray) |
public void | setBounds(const IloNumArray, const IloNumArray) |
Inherited Methods from IloConstraintArray |
---|
add, add, add, operator[], operator[] |
Inherited Methods from IloExtractableArray |
---|
add, add, add, endElements |
Constructor Detail |
---|
This default constructor creates an empty range array. You cannot create instances
of the undocumented class IloDefaultArrayI
. As a parameter in this
default constructor, it allows you to pass 0 (zero) as a value to an optional
parameter in functions and member functions that accept an array as a parameter.
This constructor creates an array of n
elements, each of which is an
empty handle.
This constructor creates an array of n
elements, each with the lower
bound lb
and the upper bound ub
.
This constructor creates an array of ranges from rows
, an
array of expressions. It uses the corresponding elements of the arrays
lbs
and ubs
to set the lower and upper bounds of
elements in the new array. The length of rows
must equal
the length of lbs
and ubs
.
This constructor creates an array of ranges from rows
, an
array of expressions. The lower bound of every element in the new array will
be lb
. The upper bound of each element of the new array will be
the corresponding element of the array ubs
. The length of
rows
must equal the length of ubs
.
This constructor creates an array of ranges from rows
, an
array of expressions. The upper bound of every element in the new array will
be ub
. The lower bound of each element of the new array will be
the corresponding element of the array lbs
. The length of
rows
must equal the length of lbs
.
This constructor creates an array of ranges from rows
, an
array of expressions. The lower bound of every element in the new array will
be lb
. The upper bound of every element in the new array will
be ub
.
This constructor creates an array of ranges from rows
, an
array of expressions. It uses the corresponding elements of the arrays
lbs
and ubs
to set the lower and upper bounds of
elements in the new array. The length of rows
must equal
the length of lbs
and ubs
.
This constructor creates an array of ranges from rows
, an
array of expressions. The lower bound of every element in the new array will
be lb
. The upper bound of each element of the new array will be
the corresponding element of the array ubs
. The length of
rows
must equal the length of ubs
.
This constructor creates an array of ranges from rows
, an
array of expressions. The upper bound of every element in the new array will
be ub
. The lower bound of each element of the new array will be
the corresponding element of the array lbs
. The length of
rows
must equal the length of lbs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the arrays lbs
(or
ubs
). The number of elements in lbs
must be equal to the
number of elements in ubs
. The lower bound of each element in the new
array will be equal to the corresponding element in the array lbs
. The
upper bound of each element in the new array will be equal to the corresponding
element in the array ubs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the arrays lbs
(or
ubs
). The number of elements in lbs
must be equal to the
number of elements in ubs
. The lower bound of each element in the new
array will be equal to the corresponding element in the array lbs
. The
upper bound of each element in the new array will be equal to the corresponding
element in the array ubs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the array ubs
. The lower
bound of every element in the new array will be equal to lb
. The upper
bound of each element in the new array will be equal to the corresponding element in
the array ubs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the array ubs
. The lower
bound of every element in the new array will be equal to lb
. The upper
bound of each element in the new array will be equal to the corresponding element in
the array ubs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the array ubs
. The lower
bound of every element in the new array will be equal to lb
. The upper
bound of each element in the new array will be equal to the corresponding element in
the array ubs
.
This constructor creates an array of ranges. The number of elements in the new
array will be equal to the number of elements in the array ubs
. The lower
bound of every element in the new array will be equal to lb
. The upper
bound of each element in the new array will be equal to the corresponding element in
the array ubs
.
Method Detail |
---|
This member function appends range
to the invoking array multiple
times. The parameter more
indicates how many times.
This member function appends range
to the invoking array.
This member function appends the elements in array
to the invoking
array.
This operator constructs ranges in column representation. That is, it creates an
instance of IloNumColumn
that will add a newly created
variable to all the ranged constraints in the invoking object, each as a linear term
with the corresponding value specified in the array values
.
This operator constructs ranges in column representation. That is, it creates an
instance of IloNumColumn
that will add a newly created
variable to all the ranged constraints in the invoking object, each as a linear term
with the corresponding value specified in the array values
.
This operator returns a reference to the object located in the invoking array at the position
indicated by the index i
. Concert Technology uses the const
operator
IloRange operator[] (IloInt i) const;
on
const
arrays.
This operator returns a reference to the object located in the invoking array at the position
indicated by the index i
.
This member function does not change the array itself; instead, it changes the
bounds of all the ranged constraints that are elements of the invoking array. At the
same time, it also creates an instance of the undocumented class IloChange
to notify Concert Technology algorithms about this change in an extractable object of
the model. The elements of the arrays lbs
and ubs
may be
integer or floating-point values. The size of the invoking array must be equal to the
size of lbs
and the size of ubs
.
setBounds
notifies Concert Technology algorithms
about this change of bounds for all the elements in this invoking array.
This member function does not change the array itself; instead, it changes the
bounds of all the ranged constraints that are elements of the invoking array. At the
same time, it also creates an instance of the undocumented class IloChange
to notify Concert Technology algorithms about this change in an extractable object of
the model. The elements of the arrays lbs
and ubs
may be
integer or floating-point values. The size of the invoking array must be equal to the
size of lbs
and the size of ubs
.
setBounds
notifies Concert Technology algorithms
about this change of bounds for all the elements in this invoking array.