Skip to main content
FRAMES NO FRAMES

operator-

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

This arithmetic operator subtracts its second argument from its first. 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.


operator-

public IlcIntExp operator-(const IlcIntExp exp)
public IlcFloatExp operator-(const IlcFloatExp exp)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Overloaded C++ operator.

This arithmetic operator returns the opposite of its argument. It has been overloaded to handle constrained expressions appropriately. The domain of the resulting expression is computed from the domain of the original expression as you would expect.

See Also:


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 subtracts its second argument from its first. 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.

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 difference of its arguments.

This overloaded C++ operator returns an expression equal to the difference 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 to the difference between its argument functions.

This operator creates and returns a function equal to the difference between 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 difference of its arguments.

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


operator-

public IloCumulFunctionExpr operator-(const IloCumulFunctionExpr & f)
Definition file: ilconcert/ilosmodel.h
Overloaded C++ function.

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

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