Hexaly Optimizer 15.0

Release notes

  • Adds new parameter gapLimit as a termination criterion.
  • The Python API now includes type annotations.
  • Support for Python 3.6 and 3.7 has been discontinued. The minimum required version to use Hexaly Optimizer is now Python 3.8.

New parameter

HxParam.gapLimit

Optimality gap used as a termination criterion. When the solver detects that the current gap is below this limit, the current solution is considered optimal.

Python type annotations

Python has historically been a dynamically typed language. However, for several years now, Python has supported annotations that enable static code verification.

The Python API in Hexaly 15.0 now includes annotations on all public functions and classes. These are compatible with mypy and pylance/pyright. In addition, and to make the API easier to use in a typed code context, shortcuts for certain methods has been introduced.

For instance the method HxSolution.get_value() has also been adapted into new specialized methods:

Similar changes have been made to all methods in the API that could return a union of value types. For those who do not wish to code in Python using types, the existing methods remain unchanged and are in no way deprecated.

API Changes

Hexaly Modeler

Java

  • Added HxParam.setGapLimit and HxParam.getGapLimit methods