Skip to main content
FRAMES NO FRAMES

operator!

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

This function creates a constraint which enforces the violation of constraint ct.

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 IloConstraint operator!(const IloConstraint constraint)
Definition file: ilconcert/ilomodel.h
Overloaded C++ operator for negation.

This overloaded C++ operator returns a constraint that is the negation of its argument. In order to be taken into account, this constraint must be added to a model and extracted by an algorithm, such as IloCplex or IloSolver.