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 *) |
public | IloSemiContVarArray(const IloEnv) |
public | IloSemiContVarArray(const IloEnv, IloInt) |
public | IloSemiContVarArray(const IloEnv, IloInt, IloNum, IloNum, IloNumVar::Type) |
public | IloSemiContVarArray(const IloEnv, const IloNumColumnArray, const IloNumArray, const IloNumArray, IloNumVar::Type) |
public | IloSemiContVarArray(const IloEnv, IloInt, const IloSemiContVar, const IloSemiContVar v1...) |
Method Summary | |
---|---|
public void | add(IloInt, const IloSemiContVar) |
public void | add(const IloSemiContVar) |
public void | add(const IloSemiContVarArray) |
Inherited Methods from IloNumVarArray |
---|
add, add, add, operator(), setBounds, toIntExprArray, toIntVarArray, toNumExprArray |
Inherited Methods from IloNumExprArray |
---|
add, add, add, operator() |
Inherited Methods from IloExtractableArray |
---|
add, add, add, endElements |
Constructor Detail |
---|
This constructor creates an empty extensible array of semicontinuous
numeric variables. 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 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 indicated by type
. The
default type is floating-point.
env
. The array
sclb
indicates the corresponding semicontinuous lower bound,
and the array ub
indicates the corresponding upper bound for
each new element. The parameter type
indicates the type
(whether integer, Boolean, or floating point) of each new element. The
default type is floating-point.
n
semicontinuous numeric variables, as indicated by v0
,
v1
, and so on.
Method Detail |
---|
This member function appends x
to the invoking array
multiple times. The parameter more
indicates how many
times.
This member function appends x
to the invoking array.
This member function appends the elements in array
to the
invoking array.