#[non_exhaustive]pub struct CobylaOptions {
pub rhobeg: f64,
pub rhoend: f64,
pub max_evaluations: usize,
pub catol: f64,
}Expand description
Options for cobyla, with SciPy’s defaults.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rhobeg: f64The initial trust-region radius (the size of the first simplex).
rhoend: f64The final radius, which sets the accuracy (SciPy’s tol).
max_evaluations: usizeThe largest number of function evaluations.
catol: f64The constraint violation accepted at the end (SciPy’s catol).
Implementations§
Source§impl CobylaOptions
impl CobylaOptions
Sourcepub fn with_radii(rhobeg: f64, rhoend: f64) -> Self
pub fn with_radii(rhobeg: f64, rhoend: f64) -> Self
The defaults with the given initial and final radii.
Trait Implementations§
Source§impl Clone for CobylaOptions
impl Clone for CobylaOptions
impl Copy for CobylaOptions
Source§impl Debug for CobylaOptions
impl Debug for CobylaOptions
Auto Trait Implementations§
impl Freeze for CobylaOptions
impl RefUnwindSafe for CobylaOptions
impl Send for CobylaOptions
impl Sync for CobylaOptions
impl Unpin for CobylaOptions
impl UnsafeUnpin for CobylaOptions
impl UnwindSafe for CobylaOptions
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