OpenTrustRegion 3.0.1
This release keeps the interface of 3.0.0. No settings, state or callback changed, so programs built against 3.0.0 work with 3.0.1 without being rebuilt.
Installation
- Windows is supported with gfortran from MSYS2 and with LLVM Flang 23 and the Microsoft C compiler, each tested against OpenBLAS. Visual Studio, CMake's default generator on Windows, builds Fortran only with Intel's compilers, so use another one, such as Ninja (
cmake -G Ninja ..). - Wheels on PyPI now also cover Windows (x86_64). They are built with LLVM Flang and carry OpenBLAS and a static Fortran runtime. Besides the system, they need only the C runtime that Python installs.
- The macOS arm64 wheel now requires macOS 15, like the x86_64 one, because GitHub retired the macOS 14 runners.
Changes
- Steps at the resolution limit. Some trust-region steps change the objective function by too little to resolve relative to its value, both in the actual and in the predicted change. The solver now takes such a step instead of stopping, keeps the trust radius and does no line search along it. It reports
max_precision_reachedonly once such a step does not lower the gradient norm, and then ends at the last point. Hosts whose gradient is more precise than their objective function therefore converge to their tolerance. - The resolution of function changes is now 100 times the machine epsilon relative to the function value (previously 10 times), since assembling an energy can round by more than that.
Fixes
- The Python interface frees the callback functions of a call when the call returns, also after a failure or an interruption. Previously they stayed alive until the next garbage collection, together with every object they referred to.
- The Davidson solvers stop expanding once their reduced space fills the whole parameter space. Previously this aborted the solve or stability check with an error.
- Logged lines no longer end in trailing blanks.