Skip to main content
FRAMES NO FRAMES

Class IloCumulFunctionExpr

Definition file: ilconcert/ilosmodel.h
Map of IloCumulFunctionExprIloCumulFunctionExprIloCumulFunctionExprIloExtractable
An instance of this class represents a cumul function expression in a model.

A cumul function expression is an expression whose value in a solution is a function from the set of integers to the set of non-negative integers. A cumul function expression represents the sum of individual contributions of intervals. A panel of elementary cumul function expressions is available to describe the individual contribution of an interval variable (or a fixed interval) to a cumul function expression:

A cumul function expression is defined as the sum of the above elementary functions or their opposite. Several constraints over cumul function expressions are provided. These constraints allow the restriction of the possible values of the function over the complete horizon or over some fixed or variable interval:

For more information on cumul function expressions, see the Cumul functions in CP Optimizer.

Method Summary
public IloCumulFunctionExprI *getImpl() const
public IloCumulFunctionExpr()
public IloCumulFunctionExpr(IloCumulFunctionExprI * impl)
public IloCumulFunctionExpr(const IloEnv env, const char * name=0)
public IloCumulFunctionExpr &operator+=(const IloCumulFunctionExpr f)
public IloCumulFunctionExpr &operator-=(const IloCumulFunctionExpr f)
Inherited Methods from IloExtractable
asConstraint, asIntExpr, asModel, asNumExpr, asObjective, asVariable, end, getEnv, getId, getImpl, getName, getObject, IloExtractable, isConstraint, isIntExpr, isModel, isNumExpr, isObjective, isVariable, removeFromAll, setLocation, setName, setObject
Method Detail

IloCumulFunctionExpr

public IloCumulFunctionExpr()
This constructor creates an empty handle. You must initialize it before you use it.

IloCumulFunctionExpr

public IloCumulFunctionExpr(IloCumulFunctionExprI * impl)
This constructor creates a handle object from a pointer to an implementation object.

IloCumulFunctionExpr

public IloCumulFunctionExpr(const IloEnv env, const char * name=0)

This constructor creates a constant cumul function expression everywhere equal to 0 that the user can modify subsequently with the operators += and -= in the environment env. By default, the name of the cumul function expression is the empty string, but you can specify a name of your own choice.


getImpl

public IloCumulFunctionExprI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

operator+=

public IloCumulFunctionExpr & operator+=(const IloCumulFunctionExpr f)

This operator adds the cumul function expression f to the invoking cumul function expression.

Note
This operator changes the implementation pointer of the invoking cumul expression handle class.

operator-=

public IloCumulFunctionExpr & operator-=(const IloCumulFunctionExpr f)

This operator subtracts the cumul function expression f from the invoking cumul function expression.

Note
This operator changes the implementation pointer of the invoking cumul expression handle class.