Basin
Numerical optimization in pure Rust, with pluggable linear-algebra backends, a WebAssembly build, and an interactive browser playground.
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
@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}
}