pub struct TncOptions {
pub pgtol: f64,
pub ftol: f64,
pub maxfun: Option<usize>,
pub max_cg: Option<usize>,
}Expand description
Options for minimize_tnc.
Fields§
§pgtol: f64Stop when the largest component of the projected gradient is at most this.
ftol: f64Also stop when the decrease of f in an iteration is at most this times |f| (default 0:
only the gradient test and the evaluation limit stop the iteration).
maxfun: Option<usize>The largest number of evaluations of (f, ∇f), including those for Hessian-vector
products; None for max(1000, 100 n) (SciPy’s TNC allows max(100, 10 n), but stops on
a much looser test).
max_cg: Option<usize>The largest number of conjugate-gradient iterations per Newton step (default
min(50, n); SciPy’s maxCGit defaults to n/2, which its preconditioner makes up for).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TncOptions
impl RefUnwindSafe for TncOptions
impl Send for TncOptions
impl Sync for TncOptions
impl Unpin for TncOptions
impl UnsafeUnpin for TncOptions
impl UnwindSafe for TncOptions
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