pub struct GradientDescentSolver;Expand description
Standard Gradient Descent solver
Trait Implementations§
Source§impl Debug for GradientDescentSolver
impl Debug for GradientDescentSolver
Source§impl OptimizationSolver for GradientDescentSolver
impl OptimizationSolver for GradientDescentSolver
Source§type Config = GradientDescentConfig
type Config = GradientDescentConfig
Configuration type for this solver
Source§type Result = GradientDescentResult
type Result = GradientDescentResult
Result type returned by this solver
Source§fn solve(
&self,
objective: &dyn Objective,
initial_guess: &Array1<Float>,
config: &Self::Config,
) -> Result<Self::Result>
fn solve( &self, objective: &dyn Objective, initial_guess: &Array1<Float>, config: &Self::Config, ) -> Result<Self::Result>
Solve the optimization problem
Source§fn supports_objective(&self, _objective: &dyn Objective) -> bool
fn supports_objective(&self, _objective: &dyn Objective) -> bool
Check if this solver supports the given objective type
Source§fn get_recommendations(&self, data: &ObjectiveData) -> SolverRecommendations
fn get_recommendations(&self, data: &ObjectiveData) -> SolverRecommendations
Get solver-specific recommendations for the given problem
Auto Trait Implementations§
impl Freeze for GradientDescentSolver
impl RefUnwindSafe for GradientDescentSolver
impl Send for GradientDescentSolver
impl Sync for GradientDescentSolver
impl Unpin for GradientDescentSolver
impl UnwindSafe for GradientDescentSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more