FRAMES NO FRAMES

IloIfThenElse

public IloPredicate< IloObject > IloIfThenElse(IloPredicate< IloObject > pred, IloPredicate< IloObject > pred1, IloPredicate< IloObject > pred2)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>
Creates a conditional predicate.

This function returns a composite predicate which invokes the predicate pred1 when the predicate pred is true and which invokes the predicate pred2 otherwise.

For more information, see Selectors.


IloIfThenElse

public IloEvaluator< IloObject > IloIfThenElse(IloPredicate< IloObject > pred, IloEvaluator< IloObject > eval1, IloEvaluator< IloObject > eval2)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>
Creates a conditional evaluator.

This function returns a composite evaluator whose evaluation is equal to the evaluation of eval1 in the case where the predicate pred is true on the evaluated instance and returns the evaluation of eval2 otherwise.

For more information, see Selectors.