Skip to main content
FRAMES NO FRAMES

Class IloIntDExprMap

Definition file: ilopl/ilomap.h
Map of IloIntDExprMapIloIntDExprMapIloIntDExprMap
This is the class for arrays of OPL integer 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.

See Also:

Method Summary
public voidend()
public IloIntExprArgget(IloInt index) const
public IloIntExprArgget(IloNum index) const
public IloIntExprArgget(IloSymbol index) const
public IloIntExprArgget(const char * index) const
public IloIntExprArgget(IloTuple index) const
public IloIntExprMapLightI *getImpl() const
public IloIntExprArgoperator[](IloInt index) const
public IloIntExprArgoperator[](IloNum index) const
public IloIntExprArgoperator[](IloSymbol index) const
public IloIntExprArgoperator[](const char * index) const
public IloIntExprArgoperator[](IloTuple index) const
Method Detail

end

public void end()

Ends the invoking map.


get

public IloIntExprArg get(IloInt index) const

Returns element indexed by index


get

public IloIntExprArg get(IloNum index) const

Returns element indexed by index


get

public IloIntExprArg get(IloSymbol index) const

Returns element indexed by index


get

public IloIntExprArg get(const char * index) const

Returns element indexed by index


get

public IloIntExprArg get(IloTuple index) const

Returns element indexed by index


getImpl

public IloIntExprMapLightI * getImpl() const

.


operator[]

public IloIntExprArg operator[](IloInt index) const

Returns element indexed by index


operator[]

public IloIntExprArg operator[](IloNum index) const

Returns element indexed by index


operator[]

public IloIntExprArg operator[](IloSymbol index) const

Returns element indexed by index


operator[]

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

Returns element indexed by index


operator[]

public IloIntExprArg operator[](IloTuple index) const

Returns element indexed by index