pub struct EsConfig {
pub kind: EsKind,
pub genome_dim: usize,
pub bounds: (f32, f32),
pub initial_sigma: f32,
pub tau: f32,
}Expand description
Static configuration for an EvolutionStrategy run.
Fields§
§kind: EsKindVariant to run.
genome_dim: usizeGenome dimensionality.
bounds: (f32, f32)Search-space bounds; used for initialization and clamping.
initial_sigma: f32Initial σ (log-normal self-adaptation modifies it in state).
tau: f32Learning-rate scale for log-normal σ update. Standard default is
1.0 / sqrt(2 * sqrt(D)).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EsConfig
impl RefUnwindSafe for EsConfig
impl Send for EsConfig
impl Sync for EsConfig
impl Unpin for EsConfig
impl UnsafeUnpin for EsConfig
impl UnwindSafe for EsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more