Expand description
argmin is a numerical optimization library written entirely in Rust.
Its goal is to offer a wide range of optimization algorithms with a consistent interface.
It is type-agnostic by design, meaning that any type and/or math backend, such as
nalgebra
or ndarray
can be used – even your own.
Observers allow one to track the progress of iterations, either by using one of the provided ones for logging to screen or disk or by implementing your own.
An optional checkpointing mechanism helps to mitigate the negative effects of crashes in unstable computing environments.
Due to Rusts powerful generics and traits, most features can be exchanged by your own tailored implementations.
argmin is designed to simplify the implementation of optimization algorithms and as such can also be used as a toolbox for the development of new algorithms. One can focus on the algorithm itself, while the handling of termination, parameter vectors, populations, gradients, Jacobians and Hessians is taken care of by the library.
For an introduction on how to use argmin, please also have a look at the book.
§Highlights
§Algorithms
§External solvers compatible with argmin
External solvers which implement the Solver
trait are compatible with argmins Executor
,
and as such can leverage features like checkpointing and observers.
§License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Modules§
- argmin optimization toolbox core
- Solvers
Macros§
- Create an
ArgminError
with a provided message. - Create an
ArgminError
with a provided message wrapped in a closure for use in.ok_or_else(...)
methods onOption
s. - Creates the
bulk_X
methods. - Release an
T
from anOption<T>
if it is notNone
. If it isNone
, return anArgminError
with a provided message. - Convert a constant to a float of given precision
- Creates an
KV
at compile time