1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
// Copyright 2018-2024 argmin developers
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
//! 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](https://www.argmin-rs.org/book/).
//!
//! # Highlights
//!
//! * [Checkpointing](`crate::core::checkpointing`)
//! * [Observers](`crate::core::observers`)
//!
//!
//! # Algorithms
//!
//! - [Line searches](`crate::solver::linesearch`)
//! - [Backtracking line search](`crate::solver::linesearch::BacktrackingLineSearch`)
//! - [More-Thuente line search](`crate::solver::linesearch::MoreThuenteLineSearch`)
//! - [Hager-Zhang line search](`crate::solver::linesearch::HagerZhangLineSearch`)
//!
//! - [Trust region method](`crate::solver::trustregion::TrustRegion`)
//! - [Cauchy point method](`crate::solver::trustregion::CauchyPoint`)
//! - [Dogleg method](`crate::solver::trustregion::Dogleg`)
//! - [Steihaug method](`crate::solver::trustregion::Steihaug`)
//!
//! - [Steepest descent](`crate::solver::gradientdescent::SteepestDescent`)
//!
//! - [Conjugate gradient methods](`crate::solver::conjugategradient`)
//! - [Conjugate gradient method](`crate::solver::conjugategradient::ConjugateGradient`)
//! - [Nonlinear conjugate gradient method](`crate::solver::conjugategradient::NonlinearConjugateGradient`)
//!
//! - [Newton methods](`crate::solver::newton`)
//! - [Newton's method](`crate::solver::newton::Newton`)
//! - [Newton-CG](solver/newton/newton_cg/struct.NewtonCG.html)
//!
//! - [Quasi-Newton methods](`crate::solver::quasinewton`)
//! - [BFGS](`crate::solver::quasinewton::BFGS`)
//! - [L-BFGS](`crate::solver::quasinewton::LBFGS`)
//! - [DFP](`crate::solver::quasinewton::DFP`)
//! - [SR1](`crate::solver::quasinewton::SR1`)
//! - [SR1-TrustRegion](`crate::solver::quasinewton::SR1TrustRegion`)
//!
//! - [Gauss-Newton methods](`crate::solver::gaussnewton`)
//! - [Gauss-Newton method](`crate::solver::gaussnewton::GaussNewton`)
//! - [Gauss-Newton method with linesearch](`crate::solver::gaussnewton::GaussNewtonLS`)
//!
//! - [Golden-section search](`crate::solver::goldensectionsearch::GoldenSectionSearch`)
//!
//! - [Landweber iteration](`crate::solver::landweber::Landweber`)
//!
//! - [Brent's methods](`crate::solver::brent`)
//! - [Brent's minimization method](`crate::solver::brent::BrentOpt`)
//! - [Brent's root finding method](`crate::solver::brent::BrentRoot`)
//!
//! - [Nelder-Mead method](`crate::solver::neldermead::NelderMead`)
//!
//! - [Simulated Annealing](`crate::solver::simulatedannealing::SimulatedAnnealing`)
//!
//! - [Particle Swarm Optimization](`crate::solver::particleswarm::ParticleSwarm`)
//!
//! ## 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.
//!
//! - [egobox](https://crates.io/crates/egobox-ego)
//! - [cobyla](https://crates.io/crates/cobyla)
//!
//! # License
//!
//! Licensed under either of
//!
//! * Apache License, Version 2.0,
//! ([LICENSE-APACHE](https://github.com/argmin-rs/argmin/blob/main/LICENSE-APACHE) or
//! <http://www.apache.org/licenses/LICENSE-2.0>)
//! * MIT License ([LICENSE-MIT](https://github.com/argmin-rs/argmin/blob/main/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.
#![warn(missing_docs)]
#![allow(unused_attributes)]
// Explicitly disallow EQ comparison of floats. (This clippy lint is denied by default; however,
// this is just to make sure that it will always stay this way.)
#![deny(clippy::float_cmp)]
// Some types just are complex
#![allow(clippy::type_complexity)]
#[macro_use]
pub mod core;
/// Solvers
pub mod solver;
#[cfg(test)]
#[cfg(feature = "_ndarrayl")]
mod tests;