Skip to main content
FRAMES NO FRAMES

operator>

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

This operator creates and returns an inequality constraint between its arguments (that is, the first must be strictly greater than the second).

When its arguments are constrained integer expressions, then when you post it, this constraint is associated with the whenRange propagation event.

When you create a constraint, it has no effect until you post it.

See Also:


operator>

public IloConstraint operator>(IloNumExprArg base, IloNumExprArg base2)
public IloConstraint operator>(IloNumExprArg base, IloNum val)
public IloConstraint operator>(IloNum val, IloNumExprArg eb)
public IloConstraint operator>(IloIntExprArg base, IloIntExprArg base2)
public IloConstraint operator>(IloIntExprArg base, IloInt val)
public IloConstraint operator>(IloInt val, IloIntExprArg eb)
Definition file: ilconcert/ilolinear.h
overloaded C++ operator

This overloaded C++ operator constrains its first argument to be strictly greater than its second argument. In order to be taken into account, this constraint must be added to a model and extracted for an algorithm.