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 11.5

Release notes

  • A method to retrieve the objective gap has been added in each supported language.
  • Introduction of the main mode for LSP. In the main mode, the modeler behaves like an ordinary programming language. In this mode, you are free to do what you want, without being constrained by the formalism of the classic mode: you can load or save models at any time, run several successive optimizations or even use LSP for its scripting language capabilities without running any optimization at all.
  • The LocalSolver module has been added to LSP. In addition to the main mode, many features of the LocalSolver API that were only available through Python, Java, C# and C++ are now exposed in LSP through the localsolver module.
  • The CSV module has been added to the LSP language to parse CSV files.

CSV Module

The LSP language has now a CSV module. It allows you to read CSV content from a file.

For more details about the CSV module, please check out the documentation on CSV module in the standard library.

API Changes

LSP

  • Added the CSV module.

Python

  • Added LSSolution.get_objective_gap() to retrieve the gap computed by the solver for the given objective.
  • Added LSPModeler.create_solver() to create new LocalSolver instances that can be used to launch modules in classic mode.
  • Added LSPModule.run_main() to run a LSP module in main mode.

C++

  • Added LSSolution::getObjectiveGap() to retrieve the gap computed by the solver for the given objective.
  • Added LSPModeler::createSolver() to create new LocalSolver instances that can be used to launch modules in classic mode.
  • Added LSPModule::runMain() to run a LSP module in main mode.

C#

  • Added LSSolution.GetObjectiveGap to retrieve the gap computed by the solver for the given objective.
  • Added LSPModeler.CreateSolver to create new LocalSolver instances that can be used to launch modules in classic mode.
  • Added LSPModule.RunMain to run a LSP module in main mode.

Java

  • Added LSSolution.getObjectiveGap to retrieve the gap computed by the solver for the given objective.
  • Added LSPModeler.createSolver to create new LocalSolver instances that can be used to launch modules in classic mode.
  • Added LSPModule.runMain to run a LSP module in main mode.