Skip to main content

conspire/math/optimize/trust_region/
mod.rs

1use super::super::{Norm, Scalar};
2
3/// How far a step is trusted to follow the model it was built from.
4#[derive(Clone, Copy, Debug, Default)]
5pub enum TrustRegion {
6    /// The step is shortened to a radius that never adapts.
7    Fixed { radius: Scalar, norm: Norm },
8    /// The step is taken whole, however far the model carries it.
9    #[default]
10    None,
11}