#[non_exhaustive]pub struct ShgoOptions {
pub sampling: ShgoSampling,
pub n: usize,
pub iters: usize,
pub local: ConstrainedOptions,
}Expand description
Options for shgo, with SciPy’s defaults (simplicial sampling, one iteration).
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.sampling: ShgoSampling§n: usizeSampling points per iteration (Sobol sampling only).
iters: usizeIterations: with simplicial sampling each refines the complex; with Sobol sampling each adds n
points of the sequence.
local: ConstrainedOptionsTolerances of the local SLSQP solves (tolerance is SLSQP’s ftol).
Implementations§
Source§impl ShgoOptions
impl ShgoOptions
Sourcepub fn with_samples(n: usize, iters: usize) -> Self
pub fn with_samples(n: usize, iters: usize) -> Self
Sobol sampling with n points per iteration.
Sourcepub fn simplicial(iters: usize) -> Self
pub fn simplicial(iters: usize) -> Self
Simplicial sampling with iters refinements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShgoOptions
impl RefUnwindSafe for ShgoOptions
impl Send for ShgoOptions
impl Sync for ShgoOptions
impl Unpin for ShgoOptions
impl UnsafeUnpin for ShgoOptions
impl UnwindSafe for ShgoOptions
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