| Crates.io | optimization-solvers |
| lib.rs | optimization-solvers |
| version | 0.1.1 |
| created_at | 2025-02-16 21:56:25.775263+00 |
| updated_at | 2025-07-08 20:29:37.38073+00 |
| description | Numerical optimization solvers for unconstrained and simple-bounds constrained convex optimization problems. Wasm compatible |
| homepage | |
| repository | https://github.com/fedemagnani/optimization-solvers |
| max_upload_size | |
| id | 1558176 |
| size | 2,269,070 |
A comprehensive Rust library implementing composable state-of-the-art numerical optimization algorithms with WebAssembly support for browser-based optimization.
use optimization_solvers::{GradientDescent, BFGS, Newton};
// Run optimization with any solver
let result = solver.minimize(objective_function, max_iterations);
lbfgsb feature flag)# Add to Cargo.toml
cargo add optimization-solvers
# Run examples
cargo run --example gradient_descent_example
cargo run --example bfgs_example
# Build for WebAssembly
cd wasm && ./build-wasm.sh
Multiple Algorithms: 15+ optimization algorithms
WebAssembly Support: Run in browsers with full performance
Line Search Methods: Backtracking, More-Thuente, and more
Bounded Optimization: Support for box constraints
Comprehensive Examples: Ready-to-run examples for all solvers