[−][src]Struct argmin::solver::trustregion::steihaug::Steihaug
The Steihaug method is a conjugate gradients based approach for finding an approximate solution to the second order approximation of the cost function within the trust region.
References:
[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.
Methods
impl<P> Steihaug<P> where
P: Default + Clone + ArgminMul<f64, P> + ArgminDot<P, f64> + ArgminAdd<P, P>,
[src]
P: Default + Clone + ArgminMul<f64, P> + ArgminDot<P, f64> + ArgminAdd<P, P>,
pub fn new() -> Self
[src]
Constructor
pub fn epsilon(self, epsilon: f64) -> Result<Self, Error>
[src]
Set epsilon
pub fn max_iters(self, iters: u64) -> Self
[src]
set maximum number of iterations
Trait Implementations
impl<P: PartialOrd> PartialOrd<Steihaug<P>> for Steihaug<P>
[src]
fn partial_cmp(&self, other: &Steihaug<P>) -> Option<Ordering>
[src]
fn lt(&self, other: &Steihaug<P>) -> bool
[src]
fn le(&self, other: &Steihaug<P>) -> bool
[src]
fn gt(&self, other: &Steihaug<P>) -> bool
[src]
fn ge(&self, other: &Steihaug<P>) -> bool
[src]
impl<P: PartialEq> PartialEq<Steihaug<P>> for Steihaug<P>
[src]
impl<P: Copy> Copy for Steihaug<P>
[src]
impl<P: Default> Default for Steihaug<P>
[src]
impl<P: Clone> Clone for Steihaug<P>
[src]
fn clone(&self) -> Steihaug<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Debug> Debug for Steihaug<P>
[src]
impl<P, O> Solver<O> for Steihaug<P> where
O: ArgminOp<Param = P, Output = f64>,
P: Clone + Serialize + DeserializeOwned + Default + ArgminMul<f64, P> + ArgminWeightedDot<P, f64, O::Hessian> + ArgminNorm<f64> + ArgminDot<P, f64> + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminZeroLike,
O::Hessian: ArgminDot<P, P>,
[src]
O: ArgminOp<Param = P, Output = f64>,
P: Clone + Serialize + DeserializeOwned + Default + ArgminMul<f64, P> + ArgminWeightedDot<P, f64, O::Hessian> + ArgminNorm<f64> + ArgminDot<P, f64> + ArgminAdd<P, P> + ArgminSub<P, P> + ArgminZeroLike,
O::Hessian: ArgminDot<P, P>,
const NAME: &'static str
[src]
fn init(
&mut self,
_op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
[src]
&mut self,
_op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<Option<ArgminIterData<O>>, Error>
fn next_iter(
&mut self,
_op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
[src]
&mut self,
_op: &mut OpWrapper<O>,
state: &IterState<O>
) -> Result<ArgminIterData<O>, Error>
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
[src]
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
[src]
Checks whether basic termination reasons apply. Read more
impl<'de, P> Deserialize<'de> for Steihaug<P> where
P: Deserialize<'de>,
[src]
P: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<P> Serialize for Steihaug<P> where
P: Serialize,
[src]
P: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<P: Clone + Serialize> ArgminTrustRegion for Steihaug<P>
[src]
fn set_radius(&mut self, radius: f64)
[src]
Auto Trait Implementations
impl<P> Sync for Steihaug<P> where
P: Sync,
P: Sync,
impl<P> Send for Steihaug<P> where
P: Send,
P: Send,
impl<P> Unpin for Steihaug<P> where
P: Unpin,
P: Unpin,
impl<P> RefUnwindSafe for Steihaug<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> UnwindSafe for Steihaug<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,