NO FRAMES

Class IloSemiContVarArray

Definition file: ilconcert/iloexpression.h
For ILOG CPLEX: is the array class of the semicontinuous numeric variable class for a model.

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

IloSemiContVarArray

public IloSemiContVarArray(IloDefaultArrayI * i=0)

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.


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=ILOFLOAT)

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.


IloSemiContVarArray

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

add

public void add(IloInt more, const IloSemiContVar x)

This member function appends x to the invoking array multiple times. The argument more specifies 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.