Basin

Rust

Numerical optimization in pure Rust, with pluggable linear-algebra backends, a WebAssembly build, and an interactive browser playground.

Authors

Johan Larsson

Published

10 June 2026

Links

 

Basin is a numerical optimization library for Rust, inspired by argmin. It pairs a small generic core, problem traits you implement, a pluggable termination layer, and a driver loop with a growing set of solvers spanning first-order, derivative-free, nonlinear least-squares, and evolutionary methods.

Solvers are generic over the linear-algebra backend, with Vec<f64> built in and nalgebra, ndarray, and faer available as opt-in features. Constraints are first-class, and the default build compiles to wasm32-unknown-unknown with no BLAS/LAPACK or threads, making it well suited to the browser. Parallelism and BLAS-backed paths sit behind opt-in features for when you need them.

Citation

BibTeX citation:
@software{larsson2026,
  author = {Larsson, Johan},
  title = {Basin: {Numerical} Optimization in {Rust}},
  version = {1.0.0},
  date = {2026-06-10},
  url = {https://basin.rs},
  langid = {en}
}
For attribution, please cite this work as:
Larsson, Johan. 2026. Basin: Numerical Optimization in Rust. Rust. V. 1.0.0. Released June 10. https://basin.rs.