optimizer time limit in seconds

Sets the maximum time, in seconds, for a call to an optimizer.

Purpose

Optimizer time limit in seconds

API Parameter Name Name prior to V12.6.0
C CPXPARAM_TimeLimit CPX_PARAM_TILIM
C++ IloCplex::Param::TimeLimit TiLim (double)
OPL tilim
Interactive timelimit timelimit
Identifier 1039 1039

Description

Sets the maximum time, in seconds, for a call to an optimizer. This time limit applies also to the conflict refiner.

The time is measured in terms of either CPU time or elapsed time, according to the setting of the clock type for computation time parameter (CPX_PARAM_CLOCKTYPE, ClockType).

The time limit for an optimizer applies to the sum of all its steps, such as preprocessing, crossover, and internal calls to other optimizers.

In a sequence of calls to optimizers, the limit is not cumulative but applies to each call individually. For example, if you set a time limit of 10 seconds, and you call MIP optimization twice then there could be a total of (at most) 20 seconds of running time if each call consumes its maximum allotment.

See also

For a deterministic time limit on optimization, see deterministic time limit (CPX_PARAM_DETTILIM, DetTiLim).

For an introduction to time stamps measured in seconds, see the topic Timing interface in the CPLEX User's Manual. For more detail about time stamps measured in seconds, see the reference manual of the API that you use.

  • In the Callable Library (C API), see the documentation of CPXXgettime and CPXXgetcallbackinfo.
  • In the C++ API, see the documentation of IloCplex::CallbackI::getStartTime and IloCplex::CallbackI::getEndTime.

Values

Any nonnegative value in seconds; default: 1e+75.

See also

clock type for computation time