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 7.5¶
Release notes
- A new operator
contains(x, v)was introduced to test if a listxcontains a valuev. This is a shortcut forindexOf(x, v) != -1. - An example model for the job-shop problem was added to the example tour.
- The relative optimality gap is now displayed at the end of the search.
- Exporting models to LSP format now produces more readable files. Exporting models to LSB format is now 10 times faster. Exporting to LSM format is now deprecated.
- Array values can now be obtained from the expression itself or from the solver solution.
API Changes¶
LSP¶
- The built-in function
contains()has been added. - The field
valuenow returns the array value if the expression is an array.
Python¶
- Added support for Python 3.6
- Added the method
LSModel.contains(). - The array value of an array expression can now be obtained with the methods
LSExpression.get_value()orLSSolution.get_value(). These methods both return an object of typeLSArray.
C++¶
- Added the method
LSModel::contains(). - The array value of an array expression can now be obtained with the methods
LSExpression::getArrayValue()orLSSolution::getArrayValue(). These methods both return an object of typeLSArray.
C#¶
- Added the method
LSModel.Contains(). - The array value of an array expression can now be obtained with the methods
LSExpression.GetArrayValue()orLSSolution.GetArrayValue(). These methods both return an object of typeLSArray.
Java¶
- Added the method
LSModel.contains(). - The array value of an array expression can now be obtained with the methods
LSExpression.getArrayValue()orLSSolution.getArrayValue(). These methods both return an object of typeLSArray.