Overview | Group | Tree | Graph | Index | Concepts |
For each basic type, Concert Technology defines a corresponding array
class. IloSemiContVarArray
is the array class of the
semicontinuous numeric variable class for a model.
Instances of IloSemiContVarArray
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.
See Also:
IloSemiContVar, IloModel, IloNumVar, operator>>, operator<<
Constructor Summary | |
---|---|
public | IloSemiContVarArray(IloDefaultArrayI * i=0) |
public | IloSemiContVarArray(const IloEnv env) |
public | IloSemiContVarArray(const IloEnv env, IloInt n) |
public | IloSemiContVarArray(const IloEnv env, IloInt n, IloNum sclb, IloNum ub, IloNumVar::Type type=ILOFLOAT) |
public | IloSemiContVarArray(const IloEnv env, const IloNumColumnArray columnarray, const IloNumArray sclb, const IloNumArray ub, IloNumVar::Type type=ILOFLOAT) |
Method Summary | |
---|---|
public void | add(IloInt more, const IloSemiContVar x) |
public void | add(const IloSemiContVar x) |
public void | add(const IloSemiContVarArray array) |
Inherited Methods from IloNumVarArray |
---|
add, add, add, endElements, operator[], setBounds, toIntExprArray, toIntVarArray, toNumExprArray |
Inherited Methods from IloNumExprArray |
---|
add, add, add, endElements, operator[] |
Inherited Methods from IloExtractableArray |
---|
add, add, add, endElements, setNames |
Constructor Detail |
---|
This constructor creates an empty extensible array of semicontinuous
numeric variables. You cannot create instances of the undocumented class
IloDefaultArrayI
. As an argument in this default constructor,
it allows you to pass 0 (zero) as a value to an optional argument in
functions and member functions that accept an array as an argument.
This constructor creates an extensible array of
semicontinuous numeric variables in env
. Initially, the
array contains zero elements.
This constructor creates an extensible array of n
semicontinuous numeric variables in env
. Initially, the
n
elements are empty handles.
This constructor creates an extensible array of n
semicontinuous numeric variables in the environment env
. Each
element of the array has a semicontinuous lower bound of sclb
and an upper bound of ub
. The type (whether integer, Boolean,
or floating-point) of each element is specified by type
. The
default type is floating-point.
env
.
The array
sclb
specifies the corresponding semicontinuous lower bound,
and the array ub
specifies the corresponding upper bound for
each new element. The argument type
specifies the type
(whether integer, Boolean, or floating point) of each new element. The
default type is floating-point.
Method Detail |
---|
This member function appends x
to the invoking array
multiple times. The argument more
specifies how many
times.
This member function appends x
to the invoking array.
This member function appends the elements in array
to the
invoking array.