pub struct TrustConstrState<'a> {
pub x: &'a [f64],
pub objective_value: f64,
pub iterations: usize,
pub radius: f64,
}Expand description
What the callback of trust_constr_with sees after each iteration. Display gives the line
that SciPy prints with verbose=2, so a callback that prints it is the verbosity option:
Some(&mut |s| { println!("{s}"); false }).
Fields§
§x: &'a [f64]§objective_value: f64§iterations: usize§radius: f64The trust-region radius.
Trait Implementations§
Source§impl<'a> Clone for TrustConstrState<'a>
impl<'a> Clone for TrustConstrState<'a>
impl<'a> Copy for TrustConstrState<'a>
Source§impl<'a> Debug for TrustConstrState<'a>
impl<'a> Debug for TrustConstrState<'a>
Auto Trait Implementations§
impl<'a> Freeze for TrustConstrState<'a>
impl<'a> RefUnwindSafe for TrustConstrState<'a>
impl<'a> Send for TrustConstrState<'a>
impl<'a> Sync for TrustConstrState<'a>
impl<'a> Unpin for TrustConstrState<'a>
impl<'a> UnsafeUnpin for TrustConstrState<'a>
impl<'a> UnwindSafe for TrustConstrState<'a>
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