FRAMES NO FRAMES

IloTimeLimit

public IloSearchLimit IloTimeLimit(const IloEnv env, IloNum time)
Definition file: ilsolver/ilosolverint.h
Include file: <ilsolver/ilosolver.h>

This function creates and returns a search limit. With this limit, the solver explores the search tree for only the amount of time indicated by time seconds. After that time limit has been reached, all remaining open nodes are discarded.

When this function takes an instance of the class IloEnv as a parameter, it returns an instance of IloSearchLimit for use with the member functions IloSolver::startNewSearch and IloSolver::solve. An instance of IloSolver extracts the search limit that it returns as an instance of IlcSearchLimit for use during a Solver search.

See Also: