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.
LocalSolver 6.0¶
Release notes
- Native functions have been added to the set of modeling features. You can use these expressions to define your own custom mathematical operators. See the section on native functions for more details.
- Two new callback types have been added. You can now provide a callback function that will be executed every time tick or every iteration tick. The frequency of ticks can be modified via the solver’s parameters.
API Changes¶
LSP¶
- Native functions can be created with the global method
nativeFunction()
. - Native functions can be called in the model with the global method
call()
. - Added global variables
lsTimeBetweenTicks
andlsIterationBetweenTicks
.
Python¶
- Removed the callback type
LSCallbackType.TICKED
. - Added the method
LSParam.set_iteration_between_ticks()
. The shortcutLSParam.iteration_between_ticks
is also available. - Added the callback type
LSCallbackType.ITERATION_TICKED
. - Added the method
LSParam.set_time_between_ticks()
. The shortcutLSParam.time_between_ticks
is also available. - Added the callback type
LSCallbackType.TIME_TICKED
. - Native functions can be created with the method
LSModel.create_native_function()
. The shortcutLSModel.native_function()
is also available. - Added the operator
LSOperator.NATIVE_FUNCTION
. - Native functions can be called in the model with the method
LSModel.call()
.
C++¶
- Removed the callback type
LSCallbackType.CT_Ticked
. - Added the method
LSParam::setIterationBetweenTicks()
. - Added the callback type
CT_IterationTicked
. - Added the method
LSParam::setTimeBetweenTicks()
. - Added the callback type
CT_TimeTicked
. - Native functions can be created with the method
LSModel::createNativeFunction()
or with the dedicated shortcutLSModel::nativeFunction()
. - Added the operator
O_NativeFunction
. - Native functions can be called in the model with the method
LSModel::call()
.
C#¶
- Removed the callback type
LSCallbackType.Ticked
. - Added the method
LSParam.SetIterationBetweenTicks()
. - Added the callback type
LSCallbackType.IterationTicked
. - Added the method
LSParam.SetTimeBetweenTicks()
. - Added the callback type
LSCallbackType.TimeTicked
. - Native functions can be created with the method
LSModel.CreateNativeFunction()
or with the dedicated shortcutLSModel.NativeFunction()
. - Added the operator
LSOperator.NativeFunction
. - Native functions can be called in the model with the method
LSModel.Call()
.
Java¶
- Removed the callback type
LScallbackType.Ticked
. - Added the method
LSParam.setIterationBetweenTicks()
. - Added the callback type
LSCallbackType.IterationTicked
. - Added the method
LSParam.setTimeBetweenTicks()
. - Added the callback type
LSCallbackType.TimeTicked
. - Native functions can be created with the method
LSModel.createNativeFunction()
or with with the dedicated shortcutLSModel.nativeFunction()
. - Added the operator
LSOperator.NativeFunction
. - Native functions can be called in the model with the method
LSModel.call()
.