FRAMES NO FRAMES

operator||

public IloPoolOperator operator||(IloPoolOperator op1, IloPoolOperator op2)
Definition file: ilsolver/iimoperator.h
Include file: <ilsolver/iim.h>
Produces the disjunction of two operators.

This disjunction of operators is an operator which, when invoked, invokes op1. If successful, the operator succeeds. Otherwise, the disjunction invokes op2. If op2 succeeds, the disjunction succeeds, otherwise it fails.

Note
If no prototype is set on the disjunction, then its prototype is defined to be one from either op1 or op2. The choice is dynamic and depends on whether op1 or op2 produced the solution.

operator||

public IlcConstraint operator||(const IlcConstraint ct1, const IlcConstraint ct2)
Definition file: ilsolver/numi.h
Include file: <ilsolver/ilosolver.h>

This operator creates and returns a constraint: the disjunction of its arguments.

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

See Also:


operator||

public IloOr operator||(const IloConstraint constraint1, const IloConstraint constraint2)
Definition file: ilconcert/ilomodel.h
Overloaded C++ operator for a disjunctive constraint.

This overloaded C++ operator creates a disjunctive constraint that represents the disjunction of its two arguments. The constraint can represent a disjunction of two constraints; of a constraint and another disjunction; or of two disjunctions. 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 > left, IloPredicate< IloObject > right)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>
Creates a predicate performing OR on two predicates.

This operator creates a new IloPredicate<IloObject> instance from two IloPredicate<IloObject> instances. The semantics of the combination of the component predicates is that of logical OR. That is, the combined predicate will return IloTrue for a particular object if and only if one of the component predicates return IloTrue for that object.

For more information, see Selectors.