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 and lsIterationBetweenTicks.

Python

  • Removed the callback type LSCallbackType.TICKED.

  • Added the method LSParam.set_iteration_between_ticks. The shortcut LSParam.iteration_between_ticks is also available.

  • Added the callback type LSCallbackType.ITERATION_TICKED.

  • Added the method LSParam.set_time_between_ticks. The shortcut LSParam.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 shortcut LSModel.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 shortcut LSModel::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 shortcut LSModel.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 shortcut LSModel.nativeFunction().

  • Added the operator LSOperator.NativeFunction.

  • Native functions can be called in the model with the method LSModel.call().