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
@misc{larsson2026,
author = {Larsson, Johan},
publisher = {arXiv},
title = {Basin: Efficient and Extensible Numerical Optimization in
{Rust}},
number = {arXiv:2608.11279},
date = {2026-08-11},
url = {http://arxiv.org/abs/2608.11279},
doi = {10.48550/arXiv.2608.11279},
langid = {en}
}