pub struct MinimizeOptions<T: Float> {
pub gtol: T,
pub xtol: T,
pub ftol: T,
pub max_iter: usize,
pub learning_rate: T,
}Expand description
Options controlling multi-dimensional minimization.
§Examples
let opts = MinimizeOptions::<f64>::default();
assert_eq!(opts.max_iter, 1000);Fields§
§gtol: TGradient norm tolerance for convergence.
xtol: TStep-size tolerance.
ftol: TFunction value change tolerance.
max_iter: usizeMaximum number of iterations.
learning_rate: TLearning rate (for gradient descent).
Trait Implementations§
Source§impl<T: Clone + Float> Clone for MinimizeOptions<T>
impl<T: Clone + Float> Clone for MinimizeOptions<T>
Source§fn clone(&self) -> MinimizeOptions<T>
fn clone(&self) -> MinimizeOptions<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for MinimizeOptions<T>where
T: Freeze,
impl<T> RefUnwindSafe for MinimizeOptions<T>where
T: RefUnwindSafe,
impl<T> Send for MinimizeOptions<T>
impl<T> Sync for MinimizeOptions<T>
impl<T> Unpin for MinimizeOptions<T>where
T: Unpin,
impl<T> UnsafeUnpin for MinimizeOptions<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MinimizeOptions<T>where
T: UnwindSafe,
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