Skip to main content
FRAMES NO FRAMES

operator+

public IlcIntExp operator+(const IlcIntExp exp1, IlcInt exp2)
public IlcIntExp operator+(IlcInt exp1, const IlcIntExp exp2)
public IlcIntExp operator+(const IlcIntExp exp1, const IlcIntExp exp2)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Overloaded C++ operator.

This arithmetic operator adds its arguments. It has been overloaded to handle constrained expressions appropriately. The domain of the resulting expression is computed from the domains of the combined expressions as you would expect. For example, the domain of x + y is composed of all the sums of a + b where a ranges over the domain of x and b ranges over the domain of y.


operator+

public IlcFloatExp operator+(const IlcFloatExp exp1, IlcFloat exp2)
public IlcFloatExp operator+(IlcFloat exp1, const IlcFloatExp exp2)
public IlcFloatExp operator+(const IlcFloatExp exp1, const IlcFloatExp exp2)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Overloaded C++ operator.

This arithmetic operator adds its arguments. It has been overloaded to handle constrained expressions appropriately. The domain of the resulting expression is computed from the domains of the combined expressions as you would expect. For example, the domain of x + y is composed of all the sums of a + b where a ranges over the domain of x and b ranges over the domain of y.

See Also:


operator+

public IloNumExprArg operator+(const IloNumExprArg x, const IloNumExprArg y)
public IloNumExprArg operator+(const IloNumExprArg x, IloNum y)
public IloNumExprArg operator+(IloNum x, const IloNumExprArg y)
public IloIntExprArg operator+(const IloIntExprArg x, const IloIntExprArg y)
public IloIntExprArg operator+(const IloIntExprArg x, IloInt y)
public IloIntExprArg operator+(IloInt x, const IloIntExprArg y)
Definition file: ilconcert/iloexpression.h
Returns an expression equal to the sum of its arguments.

This overloaded C++ operator returns an expression equal to the sum of its arguments. Its arguments may be numeric values, numeric variables, or other expressions.


operator+

public IloNumToNumStepFunction operator+(const IloNumToNumStepFunction f1, const IloNumToNumStepFunction f2)
Definition file: ilconcert/ilonumfunc.h
Creates and returns a function equal the sum of its argument functions.

This operator creates and returns a function equal the sum of the functions f1 and f2. The argument functions f1 and f2 must be defined on the same interval. The resulting function is defined on the same interval as the arguments. See also: IloNumToNumStepFunction.


operator+

public IloCumulFunctionExpr operator+(const IloCumulFunctionExpr & f1, const IloCumulFunctionExpr & f2)
Definition file: ilconcert/ilosmodel.h
Overloaded C++ function.

This overloaded C++ operator returns a cumul function expression equal to the sum of its arguments.

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