Skip to main content

argmin/core/
mod.rs

1// Copyright 2018-2024 argmin developers
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! argmin optimization toolbox core
9//!
10//! This module contains the traits and types necessary for implementing optimization algorithms
11//! and tools for observing the state of optimization runs and checkpointing.
12
13/// Macros
14#[macro_use]
15pub mod macros;
16pub mod checkpointing;
17/// Error handling
18mod errors;
19/// Executor
20mod executor;
21/// Trait alias for float types
22mod float;
23/// Key value data structure
24mod kv;
25pub mod observers;
26/// Trait alias for `Send` and `Sync`
27mod parallelization;
28/// Traits and structs for defining and handling optimization problems
29mod problem;
30/// Definition of the return type of the solvers
31mod result;
32/// `Solver` trait
33mod solver;
34/// iteration state
35mod state;
36/// Definition of termination reasons
37mod termination;
38/// Convenience utilities for testing
39pub mod test_utils;
40
41pub use crate::solver::conjugategradient::beta::NLCGBetaUpdate;
42pub use crate::solver::linesearch::LineSearch;
43pub use crate::solver::trustregion::TrustRegionRadius;
44pub use anyhow::Error;
45pub use errors::ArgminError;
46pub use executor::Executor;
47pub use float::ArgminFloat;
48pub use kv::{KvValue, KV};
49pub use parallelization::{SendAlias, SyncAlias};
50pub use problem::{CostFunction, Gradient, Hessian, Jacobian, LinearProgram, Operator, Problem};
51pub use result::OptimizationResult;
52pub use solver::Solver;
53pub use state::{IterState, LinearProgramState, PopulationState, State};
54pub use termination::{TerminationReason, TerminationStatus};