This page is for an old version of Hexaly Optimizer.
We recommend that you update your version and read the documentation for the
latest stable release.
LSCallbackType Enumeration¶
-
class
localsolver.
LSCallbackType
¶ List of types that can be used with callbacks. Each type corresponds to a specific event that can occur during the resolution.
As other enumerations present in the localsolver module, LSCallbackType is enumerable and indexable:
print (LSCallbackType[0]) # Shows LSCallbackType.PHASE_STARTED print (LSCallbackType.PHASE_STARTED.value) # Shows 0 # Iterates over the members of LSCallbackType for e in LSCallbackType: print e
Since: 4.0 -
PHASE_STARTED
¶ Event that occurs when a phase is started.
-
PHASE_ENDED
¶ Event that occurs when a phase ends.
-
TICKED
¶ Event that occurs regularly during the resolution. The time between two such ticks can be tuned with the
LSParam.timeBetweenDisplay()
parameter.
-