FRAMES NO FRAMES

IloCeil

public IloEvaluator< IloObject > IloCeil(IloEvaluator< IloObject > eval)
Definition file: ilsolver/iloselector.h
Include file: <ilsolver/iloselector.h>

This function creates a composite IloEvaluator<IloObject> instance. This evaluator returns the least integer value not less than the float value returned by the evaluator given as argument.

For more information, see Selectors.


IloCeil

public IloNum IloCeil(IloNum val)
Definition file: ilconcert/iloenv.h
Returns the least integer value not less than its argument.

This function computes the least integer value not less than val.

Examples:

 IloCeil(IloInfinity) is IloInfinity.
 IloCeil(-IloInfinity) is -IloInfinity.
 IloCeil(0) is 0.
 IloCeil(0.4) is 1.
 IloCeil(-0.4) is 0.
 IloCeil(0.5) is 1.
 IloCeil(-0.5) is 0.
 IloCeil(0.6) is 1.
 IloCeil(-0.6) is 0.