optimize
This crate provides (non-linear) numerical optimization methods.
It is heavily based on scipy.optimize
.
The crate is actively developed and expanded to include more methods.
A simple example follows:
// Define a function that we aim to minimize
let function = ;
// Create a minimizer using the builder pattern. If some of the parameters are not given, default values are used.
let minimizer = default
.xtol
.ftol
.maxiter
.build
.unwrap;
// Set the starting guess
let args = from_vec;
// Run the optimization
let ans = minimizer.minimize;
// Print the optimized values
println!;