FRAMES NO FRAMES

operator!

public IlcConstraint operator!(const IlcConstraint ct)
Definition file: ilsolver/numi.h
Include file: <ilsolver/ilosolver.h>

This operator creates and returns a constraint: the negation of its argument, a constraint.

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

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.


operator!

public IloPredicate< IloObject > operator!(IloPredicate< IloObject > pred)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>
Creates a predicate by negation.

This operator creates a new IloPredicate<IloObject> instance from a single IloPredicate<IloObject> instance. The semantics of the new instance is a logical NOT semantics of the pred. That is, the new predicate will return IloTrue for a particular object if and only if pred returns IloFalse for that object.

For more information, see Selectors.