Skip to content

Commit

Permalink
feat!: rename solver module to algo
Browse files Browse the repository at this point in the history
  • Loading branch information
pnevyk committed Nov 13, 2023
1 parent 639a8af commit 8c59165
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/rosenbrock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use gomez::algo::TrustRegion;
use gomez::nalgebra as na;
use gomez::solver::TrustRegion;
use gomez::{Domain, Problem, Solver, System};
use na::{Dynamic, IsContiguous};

Expand Down
2 changes: 1 addition & 1 deletion gomez-bench/benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ fn main() {
}

use gomez::{
algo::{NelderMead, TrustRegion},
nalgebra as na,
nalgebra::Dynamic,
solver::{NelderMead, TrustRegion},
testing::*,
Domain, Problem, Solver,
};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn estimate_magnitude_from_bounds<T: RealField + Copy>(lower: T, upper: T) -
/// Based on \[1\]. Linear variables have no effect on Jacobian matrix, thus it
/// makes sense to focus on non-linear variables and their initial guesses for
/// Newton-based algorithms (e.g.,
/// [`TrustRegion`](crate::solver::trust_region)).
/// [`TrustRegion`](crate::algo::trust_region)).
///
/// \[1\] [On the Choice of Initial Guesses for the Newton-Raphson
/// Algorithm](https://arxiv.org/abs/1911.12433)
Expand Down
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
//!
//! ## Algorithms
//!
//! * [Trust region](solver::trust_region) -- Recommended method to be used as a
//! * [Trust region](algo::trust_region) -- Recommended method to be used as a
//! default and it will just work in most of the cases.
//! * [LIPO](solver::lipo) -- A global optimization algorithm useful for initial
//! * [LIPO](algo::lipo) -- A global optimization algorithm useful for initial
//! guesses search in combination with a numerical solver.
//! * [Steffensen](solver::steffensen) -- Fast and lightweight method for
//! * [Steffensen](algo::steffensen) -- Fast and lightweight method for
//! one-dimensional systems.
//! * [Nelder-Mead](solver::nelder_mead) -- Not generally recommended, but may
//! * [Nelder-Mead](algo::nelder_mead) -- Not generally recommended, but may
//! be useful for low-dimensionality problems with ill-defined Jacobian
//! matrix.
//!
Expand Down Expand Up @@ -148,7 +148,7 @@
//! use gomez::nalgebra as na;
//! use gomez::Solver;
//! // Pick your solver.
//! use gomez::solver::TrustRegion;
//! use gomez::algo::TrustRegion;
//! # use gomez::{Domain, Problem, System};
//! # use na::{Dynamic, IsContiguous};
//! #
Expand Down Expand Up @@ -234,10 +234,10 @@
//!
//! Licensed under MIT.
pub mod algo;
pub mod analysis;
mod core;
pub mod derivatives;
pub mod solver;

pub use core::*;

Expand Down

0 comments on commit 8c59165

Please sign in to comment.