NO FRAMES

Class IloSemiContVarArray

Definition file: ilconcert/iloexpression.h

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:

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 voidadd(IloInt, const IloSemiContVar)
public voidadd(const IloSemiContVar)
public voidadd(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

IloSemiContVarArray

public IloSemiContVarArray(IloDefaultArrayI * i)

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.


IloSemiContVarArray

public IloSemiContVarArray(const IloEnv env)

This constructor creates an extensible array of semicontinuous numeric variables in env. Initially, the array contains zero elements.


IloSemiContVarArray

public IloSemiContVarArray(const IloEnv env, IloInt n)

This constructor creates an extensible array of n semicontinuous numeric variables in env. Initially, the n elements are empty handles.


IloSemiContVarArray

public IloSemiContVarArray(const IloEnv env, IloInt n, IloNum sclb, IloNum ub, IloNumVar::Type type)

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.


IloSemiContVarArray

public IloSemiContVarArray(const IloEnv env, const IloNumColumnArray columnarray, const IloNumArray sclb, const IloNumArray ub, IloNumVar::Type type)
This constructor creates an extensible array of semicontinuous numeric variables from a column array in the environment 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.

IloSemiContVarArray

public IloSemiContVarArray(const IloEnv env, IloInt n, const IloSemiContVar v0, const IloSemiContVar v1... )
This constructor creates an extensible array of n semicontinuous numeric variables, as indicated by v0, v1, and so on.

Method Detail

add

public void add(IloInt more, const IloSemiContVar x)

This member function appends x to the invoking array multiple times. The parameter more indicates how many times.


add

public void add(const IloSemiContVar x)

This member function appends x to the invoking array.


add

public void add(const IloSemiContVarArray array)

This member function appends the elements in array to the invoking array.