Changelog
3.6.0 (2026-11-24)
Features
- add
checkpoint-postcardcompatibility feature (00b4aa9) - configure bounded CMA-ES eigen refresh (
8c86735) - support square finite-difference Hessians on dynamic backends (
ca37cc2) - handle missing optimization incumbents (
4f99923) - add matrix entry access for native arrays (
3653886) - build finite-difference Jacobians for native arrays (
da31ccf) - support native arrays in dense solvers (
e0d9346) - expose checked incumbent records on executor results (
0182f9c)
Bug Fixes
Performance Improvements
3.5.0 (2026-11-23)
Features
- support native arrays in vector solvers (
8a3d8cb) - support
f32in unbounded finite differences (18fb3da) - support square finite-difference Hessians (
8397bc8) - support runtime-length residuals with fixed nalgebra parameters (
c615710) - support rectangular least squares with fixed-size nalgebra vectors (
20f7d9a) - support fixed-size nalgebra types in dense solvers (
1072fb0)
Bug Fixes
- expand rounded-away More-Thuente trials (
6434dc7)
Performance Improvements
- reuse accepted line-search evaluations in BFGS (
976ee06) - keep fixed-size nalgebra Cholesky scratch inline (
e27289a) - speed up nonlinear conjugate gradient (
13fc45a)
3.4.0 (2026-11-19)
Features
- add least-squares trust-region mode (
28ad077)
Bug Fixes
- stop on rounded least-squares trust-region steps (
58f78ea)
Performance Improvements
- streamline Nelder-Mead vector updates (
13bd5bb) - add BFGS competitor benchmark to docs (
89c4aa8) - remove forward Hessian probe barriers (
41efd1f)
3.3.0 (2026-11-06)
Features
- add TNC solver and parameter transforms (#129) (
ac7ea46)
Performance Improvements
- reduce solver overhead and add opt-in L-BFGS-B strategies (#132) (
8e131e5)
3.2.0 (2026-11-02)
Features
- add periodic CMA-ES eigen refresh (
c89cdc0) - reuse in-place evaluation buffers (
9041b90) - add in-place fused evaluations (
ca87838) - add in-place derivative evaluation (
70b400a) - add in-place residual evaluation (
bdf5c24)
Bug Fixes
- ci: skip unavailable GSL manual link (
54ea946)
Performance Improvements
- reuse HVP probe and gradient buffers (
f0867a9) - reduce finite-difference gradient staging (
6f2ebe3) - use scalar probes for bounded gradients (
1d5c7f6) - remove redundant Hessian assembly storage (
9d5085b) - reuse base costs in fused finite differences (
7b59808) - avoid redundant Jacobian residual evaluations (
b44bed3)
3.1.0 (2026-10-26)
Features
Bug Fixes
- deps: patch undici denial of service (
275cc1a) - ci: avoid GNU link checker rate limits (
11a357a) - web: parse documentation search content safely (
de14c9e) - ci: restrict default workflow token permissions (
020db58) - ci: quote the L-BFGS-B test command (
a4bc3ea)
Performance Improvements
- speed up NEWUOA Hessian and origin updates (
58b7c7e) - reduce NEWUOA model maintenance overhead (
1f498e1) - reduce Nelder-Mead iteration overhead (
f6bddec) - reduce QR factorization and solve overhead (
fddd5b1) - slsqp: reduce QR and allocation overhead (
b421caa)
3.0.0 (2026-10-20)
Unfortunately, I have realized that the changes to constraints API in Basin 2.0 are much less ergonomic and have decided to switch back to the simpler approach of 1.x. I apologize to anyone who has already migrated, but hope that you find the new (old) API more pleasant to use. In short:
- Make constraint declarations optional.
CostFunction,Residual, and constraint callbacks no longer require a declaration. Unconstrained solvers ignore declared constraints, while constrained solvers continue to validate complete sets and reject unsupported blocks. - Rename the
ProblemConstraintstrait toConstraintsand theConstraintsdata container toConstraintSet. Rename the associated type toSetand the getter toconstraints.Constrained::newaccepts plain objectives and uses its supplied set as the complete declaration.
See the Basin 3.0 migration guide for more details.
Breaking changes
- make constraint declarations optional (
4e3326e)
Features
- make constraint declarations optional (
4e3326e)
Bug Fixes
- dev: keep
pnpmmanaged by Nix (52e7884)
2.0.0 (2026-10-19)
Highlights
Basin 2.0 revises the core API and removes interfaces deprecated in 1.x, and has introduced a large number of breaking changes. The migration guide covers the upgrade.
Your objective and residual types now need to implement ProblemConstraints, even for unconstrained problems. A typed constraint set replaces the old constraint traits. Solvers now keep their own models, history, and workspace, while shared progress states replace the algorithm-specific state types.
Numerical tolerances now belong on the solver, and execution limits belong on the executor. TerminationCriterion and terminate_on have been removed. Results now carry a structured termination report, so result handling, observers, and custom solvers need updating. State counters also report individual evaluation categories, which may change how you set evaluation budgets.
Some solver names and defaults have changed too. Trf is now BoundedLevenbergMarquardt. Nelder-Mead enables simplex convergence by default, bounded f64 L-BFGS uses new stopping defaults, and LM uses trust-region damping.
No features are enabled by default, so you need to add problems if you use the test functions. Backend aliases also now select the newest supported version (rather than a frozen one). If you pick nalgebra you now get Nalgebra 0.35, which requires Rust 1.89; the other supported features still work with Rust 1.87.
Many public records and enums are now non-exhaustive to allow future additions. Use constructors or builders for records, and a fallback arm when matching enums.
Saved runs also need attention. Basin 1.x exact checkpoints cannot be resumed in 2.0, and the legacy bincode readers have been removed. Export parameters from the old application and start a fresh run when upgrading.
Breaking changes
- compact constraint-violation reports (
1ae01c8) - add typed constraint-violation reports (
c3cccb7) - make state shape errors non-exhaustive (
32fffb6) - make line-search configurations non-exhaustive (
ec8efbc) - make stopping records non-exhaustive (
088ed78) - make solver publications non-exhaustive (
77697ef) - make results and diagnostics non-exhaustive (
d5fd2de) - make
EvalCountsnon-exhaustive (59a0306) - rename
TrftoBoundedLevenbergMarquardt(75c4476) - default LM to trust-region damping (
056d844) - unify problem-side constraint declarations (
6cb52d8) - adopt tested L-BFGS-B stopping defaults (
5172776), refs #109 - enable paired Nelder-Mead convergence defaults (
955d0dd), refs #109 - add structured termination reports (
c7f2869) - remove criterion compatibility bridges (
a759b7c) - remove legacy inner gradient stops (
ad3fbdc) - state: migrate solvers to shared progress (
878a4b7) - make the
problemsfeature opt-in (9485f01) - termination: remove legacy criterion API (
b9380fd) - checkpoint: remove legacy checkpoint formats (
192426d)
Features
- add configurable BFGS inverse Hessian seeds (
cd3dc0e) - add Nelder-Mead cost standard deviation check (
fa90199) - add typed constraint-violation reports (
c3cccb7) - make state shape errors non-exhaustive (
32fffb6) - make line-search configurations non-exhaustive (
ec8efbc) - make stopping records non-exhaustive (
088ed78) - make solver publications non-exhaustive (
77697ef) - make results and diagnostics non-exhaustive (
d5fd2de) - default LM to trust-region damping (
056d844) - unify problem-side constraint declarations (
6cb52d8) - adopt tested L-BFGS-B stopping defaults (
5172776), refs #109 - enable paired Nelder-Mead convergence defaults (
955d0dd), refs #109 - web: negotiate markdown for agents (
3def87b) - add structured termination reports (
c7f2869) - make backend aliases track latest versions (
934bd0f) - observer: expose solver diagnostics to observers (
f57be9c) - make the
problemsfeature opt-in (9485f01)
Bug Fixes
- prepare Basin 2.0 release handoff (
7a59b97) - preserve convergence at extreme scales (
8f60a22) - harden convergence and expose solver diagnostics (
39983b0), refs #109 - stop non-finite legacy TRF models (#116) (
8d0b22a) - web: update vulnerable transitive dependencies (
4e72a4a) - web: complete SvelteKit 3 migration (
0e08ac0) - invalidate convergence caches after steps (
5303d67)
Performance Improvements
- compact constraint-violation reports (
1ae01c8)
1.15.1 (2026-09-29)
Bug Fixes
- skip change tolerances after rejected steps (
093090c), fixes #108 - reject false trust-region convergence (
a6cab59), fixes #107
1.15.0 (2026-09-28)
Features
- expose native convergence diagnostics (
f762016) - expand differential evolution (
7ad8d84) - checkpoint: migrate writes to postcard (
e90a94f)
Bug Fixes
1.14.0 (2026-09-22)
Features
- add original DIRECT solver (
3b5d90d) - add Polak-Ribiere+ conjugate gradient update (
92e2337) - add nonlinear conjugate gradient (
3b296d5) - add robust nonlinear least squares (
298e671)
1.13.1 (2026-09-19)
Bug Fixes
1.13.0 (2026-09-18)
Features
- add dense trust-region-reflective least squares (
86cc0d6)
Performance Improvements
- reduce L-BFGS-B iteration overhead (
c16a963) - batch L-BFGS-B history products (
cf58a90) - speed up L-BFGS-B kernels (
3cc7d41) - reduce L-BFGS-B history overhead (
496d95d)
1.12.0 (2026-09-16)
Features
- expand scalar roots and bracketing (
4eaf902) - add gradient and Jacobian checkers (
e308ce7) - add
Slsqpand bounded finite differences (2e9ed82) - add opt-in state capabilities (
a731623) - add configurable forcing to
Steihaug(aa7e842) - add shared point and first-order progress states (
5e5504c) - add owned checkpoint and result extraction (
a055377)
Bug Fixes
- reject directional probes that need projection (
2ea1c47) - separate SLSQP feasibility from convergence (
9d2b170) - preserve numeric casts for
TerminationReason(79b4f61)
Performance Improvements
- streamline SLSQP small kernels (
6113e89) - reuse SLSQP workspaces (
1ccfd49) - reduce SLSQP temporary allocations (
a8c166c) - reuse gradient descent line-search evaluations (
a58dc97)
1.11.0 (2026-09-11)
Features
- add full-form nonlinear constraints (
49df7ce) - add optional LM trust-radius convergence (
d2b6d84) - stop LM on numerical no-progress (
16c12c6) - make LM damping configurable (
5ae5463) - move convergence settings onto solvers (
fdf08ca)
Bug Fixes
- harden LM stopping arithmetic (
25d1b04)
Performance Improvements
- nelder-mead: eliminate projected bound-vector clones (#95) (
ad4ef87) - cobyla: share signed and absolute dot reductions (
b742f0c) - cobyla: reuse trial buffers (
d80a05a)
1.10.0 (2026-09-10)
Features
Bug Fixes
Performance Improvements
- cobyla: specialize small LPs against PRIMA (
525e1f4) - cobyla: optimize kernels and parameter reuse (
30ad464) - cobyla: reuse driver workspaces (
01e09eb)
1.9.0 (2026-09-08)
Features
- add globalized bounded Nelder-Mead (
14065ca)
Performance Improvements
- reuse L-BFGS line search evaluations (
da4f681)
1.8.0 (2026-09-07)
Features
- add Brent root finder (
04a3087) - add Hager-Zhang line search (
ddcc6c8) - add global-best particle swarm optimizer (
95dd75d) - checkpoint: resume stochastic solvers (
cc91fc9) - executor: add exact checkpoints (
bd27839) - solvers: add simulated annealing (
231121c) - executor: add cancellation tokens (
7ea852e) - support versioned linear algebra backends (
b26e5e8) - export TRF damping traits (
d4b2ca7), refs #84
1.7.0 (2026-08-27)
Features
- add phase one to barrier method (
776850d)
1.6.0 (2026-08-25)
Features
- add More-Sorensen trust-region strategy (
574fe22)
1.5.1 (2026-08-06)
Bug Fixes
- tools: regenerate lock, route torchvision to ROCm (
6ef6378)
1.5.0 (2026-07-20)
Features
- add SphereBoxed to the problems corpus (
2b966a5) - add MA-SW-Chains via SolisWets chain operator (
41c59e7) - add Solis-Wets adaptive random search (
28c02c7) - solver: add matrix-free
HessianProductmode forTrustRegion(a02048e) - observer: add serde-gated CheckpointWriter observer (
ba2d212) - observer: add Report and History starter observers (
aba5ae5) - observer: add ObserverMode::NewBest (
6cc840d)
Bug Fixes
- enforce nam_pool <= pop_size in both builders (
69afad8) - reject non-finite fresh-chain scales (
984a572) - sort NaN costs last in population sorts (
a9f7f66) - repair LS chain eligibility and retention (
4852675)
1.4.0 (2026-06-29)
Features
- solvers: add basin-hopping global solver (
cbc62e2)
1.3.0 (2026-06-24)
Features
- add the least-squares family to ndarray (+ Trf on
Vec<f64>) (67b38d8) - add Bfgs support for the ndarray backend (
f2c50ba)
Bug Fixes
- security: bump esbuild (
60c2b73)
1.2.0 (2026-06-22)
Features
- executor: add from_start convenience constructor (
ea1164b) - solver: add trust-region Newton solver (
7cbd2d4) - backends: add nalgebra-lapack feature for LAPACK-backed factorizations (
1742321) - bench: add basin-vs-nlopt NEWUOA convergence comparison (
1e2eb46)
1.1.0 (2026-06-21)
Features
- solvers: add MADS (OrthoMADS) derivative-free solver (
fc5b065) - solvers: add COBYLA (nonlinear-constrained DFO) (
115f368) - solvers: add LINCOA (linearly-constrained model-based DFO solver) (
e181ab3) - solvers: add BOBYQA bound-constrained model-based DFO (#46) (
1274ac3) - solvers: add Powell's NEWUOA derivative-free solver (#44) (
d81a28e)
1.0.0 (2026-06-10)
Breaking changes
- remove deprecated solver aliases and builder shims (
d3ebd30)
Features
- backends: enable
Vec<F>backend on LM and GaussNewton (6735709) - remove deprecated solver aliases and builder shims (
d3ebd30) - solvers: add
BrentDerivative1D solver (161cb67)
Bug Fixes
Performance Improvements
- fuse cost and gradient computations in More-Thuente line search (
3dc0201)
0.12.0 (2026-06-09)
Breaking changes
- add
NllsStateandScalarState(7dfdaff) - math: curate the public math-tier surface for 1.0 (C2) (
9411824)
Features
- solver: add
GoldenSection1D solver (f4bc284) - add
NllsStateandScalarState(7dfdaff) - add
TerminationCriterion::resethook for safe inner-criteria reuse (3e56bae)
0.11.0 (2026-06-07)
Breaking changes
- move CMA-ES distribution into CmaEsState (B8) (
9c48802) - mark growable public enums #[non_exhaustive] (
8254680)
Features
- add per-backend QuasiNewtonState aliases (B4) (
295fe75) - add
new()to NelderMead and deprecatestandard()(7d3a7b2) - move CMA-ES distribution into CmaEsState (B8) (
9c48802) - mark growable public enums #[non_exhaustive] (
8254680)
Performance Improvements
- parallelize population-based solvers (
74f281d) - parallelize numerical gradients, jacobians, hessians (
9fa265a)
0.10.0 (2026-06-02)
Breaking changes
Features
- solvers: add
DeInjectsolver (ca34b5c) - add
best_cost,best_iterand friends toBasicState(c5e425a), closes #36 - add
scratchbuffer for simplex state (5255d75) - add
core::observer::Observe<S>trait (6b740ac) - solvers: add vanilla mini-batch SGD solver (
916fa7f)
Performance Improvements
0.9.0 (2026-05-31)
Features
- lower rust version requirement to 1.87.0 (
7ca5342)
0.8.0 (2026-05-29)
Breaking changes
- problem: migrate to
Problem<P>design, absorb counting (867f371), closes #32 - problem: typed hard-abort error on problem traits (
6b46d57)
Features
- dual-license the package under apache v2 and MIT (
9a33eeb) - solvers: add differential evolution solver (
De) (7a09e0a) - problem: migrate to
Problem<P>design, absorb counting (867f371), closes #32 - problem: typed hard-abort error on problem traits (
6b46d57) - problem: fused cost+grad/residual+jac via subtrait hierarchy (
c08d595) - termination: add NoImprovement criterion (
c06ff76) - termination: add
TargetCostcriteria (690a82b)
0.7.0 (2026-05-28)
Features
- backends: add support for ndarray in CmaEs solvers (
3ad8bfb)
0.6.0 (2026-05-27)
Features
- backends: support CmaEs in Vec backend (
02ad27c) - backends: add ndarray support for LBFGS (
58a298f) - backends: add Vec support for the BFGS solver (
cf5f5ba)
0.5.0 (2026-05-26)
Breaking changes
- make barrier/augmented-Lagrangian methods inner-solver-agnostic (
5a4f369) - rename BoxConstrained → BoxConstraints (
7d60b0f)
Features
- add
MatVec+MatTransposeVecto vec, ndarray backends (320173f) - make barrier/augmented-Lagrangian methods inner-solver-agnostic (
5a4f369) - add linear equality constraints (Ax = b) and augmented Lagrangian method (
aa038bc) - add linear inequality constraints (Ax ≤ b) and log-barrier method (
c7f2e24) - web: live contour beside the playground code (phase 2) (
8a21eda) - web: add interactive code-gen playground to landing page (
29f10b2)
0.4.0 (2026-05-21)
Features
- add per-coordinate initial step-size to CMA-ES (with_stds) (
fb97d0a) - add numerical gradients/hessians/jacobians (
bef3fdc) - add Polyak momentum to GD solver (
9b9ab93) - web: restructure into landing + docs + visualizer site (
727de34)
0.3.0 (2026-05-20)
Breaking changes
Features
- add competitor-bench crate for comparisons (
bbacbf6) - nlls: add MINPACK ftol/xtol convergence tests to Levenberg-Marquardt (
2bad473), closes #8 - termination: add RelativeGradientTolerance framework criterion (
70b5cb6) - nlls: add MINPACK gtol (relative gradient) test to Levenberg-Marquardt (
5a60145)
Bug Fixes
Performance Improvements
- nlls: reuse JᵀJ and Jᵀr across rejected Levenberg-Marquardt steps (
deb9bae)
0.2.0 (2026-05-19)
Breaking changes
- bump MSRV to 1.91.1 and unwind CRAN-related dep pins (
2a64a51)
Features
- add
ndarray-blasfeature (b424d9c) - add
parallelfeature (7919632) - implement L-BFGS (unbounded) (
4df3dbb)
Performance Improvements
- nlls: cache r and J across iterations in GN, LM, TRF (
aef1197)
0.1.0 (2026-05-19)
Breaking changes
- rename step_size to line_search (
15b0d42) - simpplify API (
b19d6b7) - update return value to
OptimizationResult(7943351)
Features
- add
<Mode>trait for NelderMead solver (2f4421a) - add bounded cma-es injected solver (
38b3a9b) - add L-BFGS-B solver (
570db88) - add Moré-Thuente line search (
991a2e9) - add MA-LSCh-CMA solver (
7c37901) - add SSGA solver (
1c4fc46) - add Rastrigin test problem (
6cbc73e) - add CmaInject solver (
f46b685) - add inner executor (
3638d02) - add bounded CMA-ES solver (
2508b6d) - add CMA-ES solver (
d5161c2) - add random search solver (
a84b3d0) - add a trf solver (
ba2a5b7) - implement projected gradient (
6137503) - implement Levenberg-Marquardt solver (
edac7a2) - add sparse linear algebra backends (
4544ebd) - add Gauss Newton solver (
7da924b) - design linalg trait math backend (
51a2130) - add Residual and Jacobian traits (
04e4d79) - web: make curves smoother (
ccd6bb8) - add Goldstein-Price problem (
b64fd80) - add Matyas and McCormick problems (
8ee942b) - web: add theme toggle (
ab4f0d7) - add wasm crate and web app (
9f3b2bb) - add Booth and Beale problems (
f395e61) - add Sphere test problem (
8a41cc0) - add scaffolding and metadata for example problems (
790807d) - consolidate problems into a separate module (
639567b) - allow
next_iterto report mid-termination (b1b2b36) - implement bfgs solver (
6c546f3) - rename step_size to line_search (
15b0d42) - add Brent method (
e1c9605) - add
run_loopto compose inner solvers (67438a0) - add faer backend (
c5ca8dd) - add ndarray backend (
a3932ed) - add gradient evals counts (
845c986) - implement cost eval tracking (
bc9de31) - add BasicSimplexState (
5864c1c) - simpplify API (
b19d6b7) - update return value to
OptimizationResult(7943351) - solvers: implement Nelder-Mead (
6ddd8d6) - add termination criteria (
ecafbdd) - add nalgebra backend (
4b97e17) - add
StepSizetrait and add to GD solver (d26ce45) - add gradient descent (
d7b2fdc)
Bug Fixes
- web: decrease height of plot window (
e964039)