LocalSolver 6.0¶
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
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()
.