pub struct CmaEsConfig {
pub bounds: Vec<(f64, f64)>,
pub x0: Option<Array1<f64>>,
pub sigma0: Option<f64>,
pub lambda: usize,
pub mu: usize,
pub maxeval: usize,
pub seed: Option<u64>,
pub stagnation_window: usize,
pub f_tol: f64,
pub target_f: f64,
pub callback: Option<CmaEsCallback>,
pub parallel: ParallelConfig,
}Expand description
Configuration for cma_es.
Fields§
§bounds: Vec<(f64, f64)>(lower, upper) bounds per parameter.
x0: Option<Array1<f64>>Optional initial mean. Values outside bounds are clipped.
sigma0: Option<f64>Initial step size in normalised [0, 1] coordinates.
None uses 0.3, the standard broad-search default for bounded
CMA-ES. Smaller values are appropriate for local refinement.
lambda: usizeOffspring population size. 0 uses 4 + floor(3 ln(n)).
mu: usizeParent count. 0 uses lambda / 2.
maxeval: usizeMaximum objective evaluations.
seed: Option<u64>Optional RNG seed for deterministic runs.
stagnation_window: usizeStop after this many generations with improvement below Self::f_tol.
f_tol: f64Objective-improvement tolerance for stagnation detection.
target_f: f64Stop once the best objective is at or below this value.
callback: Option<CmaEsCallback>Optional per-generation callback. Returning CallbackAction::Stop
terminates the run early and returns the best point seen so far.
parallel: ParallelConfigParallel evaluation configuration for offspring fitness calls.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmaEsConfig
impl !RefUnwindSafe for CmaEsConfig
impl Send for CmaEsConfig
impl !Sync for CmaEsConfig
impl Unpin for CmaEsConfig
impl UnsafeUnpin for CmaEsConfig
impl !UnwindSafe for CmaEsConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.