FRAMES NO FRAMES

operator!=

public IlcBool operator!=(const IlcRevAny & rev, IlcAny value)
public IlcBool operator!=(const IlcRevBool & rev, IlcBool bexp)
public IlcBool operator!=(IlcBool bexp, const IlcRevBool & rev)
public IlcBool operator!=(const IlcRevBool & rev1, const IlcRevBool & rev2)
public IlcBool operator!=(const IlcRevInt & rev, IlcInt value)
public IlcBool operator!=(IlcInt value, const IlcRevInt & rev)
public IlcBool operator!=(const IlcRevInt & rev1, const IlcRevInt & rev2)
public IlcBool operator!=(IlcAny value, const IlcRevAny & rev)
public IlcBool operator!=(const IlcRevAny & rev1, const IlcRevAny & rev2)
public IlcBool operator!=(const IlcRevFloat & rev, IlcFloat value)
public IlcBool operator!=(IlcFloat value, const IlcRevFloat & rev)
public IlcBool operator!=(const IlcRevFloat & rev1, const IlcRevFloat & rev2)
Definition file: ilsolver/basic.h
Include file: <ilsolver/ilosolver.h>

This operator compares its arguments and returns IlcTrue if they are not equal; otherwise, it returns IlcFalse.

See Also:


operator!=

public IlcConstraint operator!=(const IlcIntExp exp1, const IlcIntExp exp2)
public IlcConstraint operator!=(const IlcAnyExp exp1, const IlcAnyExp exp2)
public IlcConstraint operator!=(const IlcAnyExp exp1, IlcAny exp2)
public IlcConstraint operator!=(IlcAny exp1, const IlcAnyExp exp2)
public IlcConstraint operator!=(const IlcIntExp exp1, IlcInt exp2)
public IlcConstraint operator!=(IlcInt exp1, const IlcIntExp exp2)
public IlcConstraint operator!=(IlcAnySetVar set1, IlcAnySetVar set2)
public IlcConstraint operator!=(IlcAnySetVar set1, IlcAnySet set2)
public IlcConstraint operator!=(IlcAnySet set1, IlcAnySetVar set2)
public IlcConstraint operator!=(IlcIntSetVar set1, IlcIntSetVar set2)
public IlcConstraint operator!=(IlcIntSet set1, IlcIntSetVar set2)
public IlcConstraint operator!=(IlcIntSetVar set1, IlcIntSet set2)
public IlcConstraint operator!=(const IlcConstraint ct1, const IlcConstraint ct2)
Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

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 IloConstraint operator!=(const IloAnyVar var1, const IloAnyVar var2)
public IloConstraint operator!=(const IloAnyVar var1, IloAny val)
public IloConstraint operator!=(IloAny val, const IloAnyVar var1)
public IloConstraint operator!=(const IloAnySetVar var1, const IloAnySetVar var2)
public IloConstraint operator!=(const IloAnySetVar var1, const IloAnySet set)
public IloConstraint operator!=(const IloAnySet set, const IloAnySetVar var1)
public IloDiff operator!=(IloNumExprArg arg, IloNum val)
public IloDiff operator!=(IloNum val, IloNumExprArg arg)
public IloConstraint operator!=(const IloIntSetVar var1, const IloIntSetVar var2)
public IloConstraint operator!=(const IloIntSetVar var, const IloIntSet set)
public IloConstraint operator!=(const IloIntSet set, const IloIntSetVar var)
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.


operator!=

public IloPredicate< IloObject > operator!=(IloEvaluator< IloObject > left, IloEvaluator< IloObject > right)
public IloPredicate< IloObject > operator!=(IloEvaluator< IloObject > left, IloNum threshold)
public IloPredicate< IloObject > operator!=(IloNum threshold, IloEvaluator< IloObject > right)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>
Creates a non-equality predicate from two evaluators.

These operators create a new IloPredicate<IloObject> instance by comparing the value returned by an evaluator with either that of another evaluator or a threshold value. The semantics of the new predicate is a non-equality comparison. The first function creates a predicate which returns IloTrue if and only if the value returned by the left evaluator is not equal to the value returned by the right evaluator. The second function creates a predicate which returns IloTrue if and only if the value returned by the left evaluator is not equal to the threshold value. The third function creates a predicate that returns IloTrue if and only if the threshold value is not equal to the value returned by the right evaluator.

For more information, see Selectors.