Time mode parameter

The time mode parameter defines the manner in which CP Optimizer measures time.

CP Optimizer uses time for both display purposes and for limiting the search. These timings can be measured either by CPU time or by elapsed time, and the time mode parameter defines how time is measured in CP Optimizer.

When multiple processors are available and the number of workers is greater than one, then the CPU time can be greater than the elapsed time by a factor up to the number of workers.

In the C++ API of CP Optimizer, the time mode is controlled with the parameter IloCP::TimeMode. A value of IloCP::CPUTime indicates that time should be measured as CPU time, IloCP::ElapsedTime indicates that time should be measured as elapsed time. The default is IloCP::ElapsedTime.

In the Java™ API of CP Optimizer, the time mode is controlled with the parameter IloCP.IntParam.TimeMode. A value of IloCP.ParameterValues.CPUTime indicates that time should be measured as CPU time, IloCP.ParameterValues.ElapsedTime indicates that time should be measured as elapsed time. The default is IloCP.ParameterValues.ElapsedTime.

Likewise, in the C# API of CP Optimizer, the time mode is controlled with the parameter CP.IntParam.TimeMode. A value of CP.ParameterValues.CPUTime indicates that time should be measured as CPU time, CP.ParameterValues.ElapsedTime indicates that time should be measured as elapsed time. The default is CP.ParameterValues.ElapsedTime.