FRAMES NO FRAMES

operator-

public IlcIntExp operator-(const IlcIntExp exp)
public IlcFloatExp operator-(const IlcFloatExp exp)
public IlcIntToIntStepFunction operator-(const IlcIntToIntStepFunction & f1)
Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

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 IloEvaluator< IloObject > operator-(IloEvaluator< IloObject > left, IloEvaluator< IloObject > right)
public IloEvaluator< IloObject > operator-(IloEvaluator< IloObject > left, IloNum c)
public IloEvaluator< IloObject > operator-(IloNum c, IloEvaluator< IloObject > right)
public IloEvaluator< IloObject > operator-(IloEvaluator< IloObject > eval)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>

These operators create a composite IloEvaluator<IloObject> instance. The semantics of the new evaluator are the subtraction of the values of the component evaluators. The first function combines two evaluators, subtracting the value returned by the first by the value returned by the second. The next two functions combine an IloNum value with an evaluator. In the first of these functions, the IloNum value is subtracted from the value returned by the evaluator, while in the second of these functions those roles are reversed. The last function returns the opposite of an evaluator.

For more information, see Selectors.


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 IlcFloatExp operator-(const IlcFloatExp exp1, IlcFloat exp2)
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)
public IlcFloatExp operator-(IlcFloat exp1, const IlcFloatExp exp2)
public IlcFloatExp operator-(const IlcFloatExp exp1, const IlcFloatExp exp2)
public IlcIntToIntStepFunction operator-(const IlcIntToIntStepFunction & f1, const IlcIntToIntStepFunction & f2)
Definition file: ilsolver/linfloat.h
Include file: <ilsolver/ilosolver.h>

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.