FRAMES NO FRAMES

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)
Definition file: ilconcert/iloexpression.h
Returns an expression equal to the quotient of its arguments.

This overloaded C++ operator returns an expression equal to the quotient of its arguments. Its arguments may be numeric values or numeric variables. For integer division, use IloDiv.


operator/

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

This arithmetic operator divides its first argument by its second. 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. If the domains of the dividend and divisor include 0 (zero), then 0/0 is supported; it does not constrain the resulting expression.

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)
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 division of the values of the component evaluators. The first function combines two evaluators, dividing the value returned by the first by the value returned by the second. The other two functions combine an IloNum value with an evaluator. In the first of these functions, the evaluator is the dividend and the IloNum value is the divisor, while in the second of these functions, those roles are reversed.

For more information, see Selectors.