pub trait TrustRegionRadius<F> {
    fn set_radius(&mut self, radius: F);
}
Expand description

An interface methods which calculate approximate steps for trust region methods must implement.

Example

use argmin::solver::trustregion::TrustRegionRadius;

struct MySubProblem<F> {
    radius: F
}

impl<F> TrustRegionRadius<F> for MySubProblem<F> {
    fn set_radius(&mut self, radius: F) {
        self.radius = radius
    }
}

Required methods

Set the initial radius

Example
use argmin::solver::trustregion::TrustRegionRadius;

let mut subproblem = MySubProblem::new();

subproblem.set_radius(0.8);

Implementors