Skip to main content
FRAMES NO FRAMES

Class IloNumDExprMap

Definition file: ilopl/ilomap.h
Map of IloNumDExprMapIloNumDExprMapIloNumDExprMap
This is the class for arrays of OPL float decision expressions.

This is the class for arrays of OPL integer decision expressions that allows you to create arrays of expressions of decision variables that can be reused at several places in the model.

Indeed, if an expression as a particular meaning in terms of the original problem, writing it as a decision expression (dexpr) makes the model more readable.

This array is handled efficiently as only the "definition" is kept. Not all expressions for each values of the indexes are created. As a consequence, you cannot change the definition of the dexpr for a particular element of the array.

Using decision expressions is particularly useful and recommended if you plan to write objectives to be used with IBM ILOG ODM. Please refer to the ODM documentation.

Method Summary
public voidend()
public IloNumExprArgget(IloInt index) const
public IloNumExprArgget(IloNum index) const
public IloNumExprArgget(IloSymbol index) const
public IloNumExprArgget(const char * index) const
public IloNumExprArgget(IloTuple index) const
public IloNumExprArggetAt(IloMapIndexArray indices) const
public IloNumExprMapLightI *getImpl() const
public IloNumExprArgoperator[](IloInt index) const
public IloNumExprArgoperator[](IloNum index) const
public IloNumExprArgoperator[](IloSymbol index) const
public IloNumExprArgoperator[](const char * index) const
public IloNumExprArgoperator[](IloTuple index) const
Method Detail

end

public void end()

Ends the invoking map.


get

public IloNumExprArg get(IloInt index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

get

public IloNumExprArg get(IloNum index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

get

public IloNumExprArg get(IloSymbol index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

get

public IloNumExprArg get(const char * index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

get

public IloNumExprArg get(IloTuple index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

getAt

public IloNumExprArg getAt(IloMapIndexArray indices) const

This member function returns the element indexed by index.

Returns:

The element indexed by index.

getImpl

public IloNumExprMapLightI * getImpl() const

.


operator[]

public IloNumExprArg operator[](IloInt index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

operator[]

public IloNumExprArg operator[](IloNum index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

operator[]

public IloNumExprArg operator[](IloSymbol index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

operator[]

public IloNumExprArg operator[](const char * index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.

operator[]

public IloNumExprArg operator[](IloTuple index) const

This member function returns the element indexed by index.

Parameters:

index
The index of the requested element.

Returns:

The element indexed by index.