# [−][src]Struct argmin::solver::trustregion::trustregion_method::TrustRegion

`pub struct TrustRegion<R> { /* fields omitted */ }`

The trust region method approximates the cost function within a certain region around the current point in parameter space. Depending on the quality of this approximation, the region is either expanded or contracted.

The calculation of the actual step length and direction is done by one of the following methods:

This subproblem can be set via `set_subproblem(...)`. If this is not provided, it will default to the Steihaug method.

Example

# References:

[0] Jorge Nocedal and Stephen J. Wright (2006). Numerical Optimization. Springer. ISBN 0-387-30303-0.

## Methods

### `impl<R> TrustRegion<R>`[src]

Constructor

set radius

#### `pub fn max_radius(self, max_radius: f64) -> Self`[src]

Set maximum radius

Set eta

## Trait Implementations

### `impl<O, R> Solver<O> for TrustRegion<R> where    O: ArgminOp<Output = f64>,    O::Param: Default + Clone + Debug + Serialize + ArgminMul<f64, O::Param> + ArgminWeightedDot<O::Param, f64, O::Hessian> + ArgminNorm<f64> + ArgminDot<O::Param, f64> + ArgminAdd<O::Param, O::Param> + ArgminSub<O::Param, O::Param> + ArgminZeroLike,    O::Hessian: Default + Clone + Debug + Serialize + ArgminDot<O::Param, O::Param>,    R: ArgminTrustRegion + Solver<OpWrapper<O>>, `[src]

#### `fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason`[src]

Checks whether basic termination reasons apply. Read more

## Blanket Implementations

### `impl<T, U> TryFrom<U> for T where    U: Into<T>, `[src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

### `impl<T, U> TryInto<U> for T where    U: TryFrom<T>, `[src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.