Skip to main content
FRAMES NO FRAMES

operator!=

public IlcConstraint operator!=(const IlcConstraint ct1, const IlcConstraint ct2)
Definition file: ilcp/cpext.h
Include file: <ilcp/cpext.h>
Overloaded C++ operator.

This function creates a constraint which enforces the truth values of constraints ct1 and ct2 to be opposing. That is, the constraints can never be both violated nor satisfied at the same time.

A constraint needs to be added to an instance of IlcCPEngine (either directly, or indirectly) for it to take effect. Normally this is done through casting a constraint to a goal and using it in a choice point (IlcOr).

See Also:


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.

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

When both of its arguments are constraints (instances of IlcConstraint), the constraint that this operator creates and returns is the exclusive disjunction of its two arguments. That is, the two arguments will be different from each other.

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

See Also:


operator!=

public IloDiff operator!=(IloNumExprArg arg1, IloNumExprArg arg2)
public IloDiff operator!=(IloNumExprArg arg, IloNum val)
public IloDiff operator!=(IloNum val, IloNumExprArg arg)
Definition file: ilconcert/ilomodel.h
Overloaded C++ operator.

This overloaded C++ operator constrains its two arguments to be unequal (that is, different from each other). In order to be taken into account, this constraint must be added to a model and extracted for an algorithm.