pub struct MemeticParams<SP, LP> {
pub inner: SP,
pub local: LP,
pub writeback: WritebackPolicy,
pub coverage: CoveragePolicy,
}Expand description
Static parameters for a MemeticWrapper run.
Composes the inner strategy’s parameters with the local searcher’s, plus the two memetic policies.
Fields§
§inner: SPParameters forwarded verbatim to the inner Strategy.
local: LPParameters forwarded verbatim to the LocalSearch on every refine.
writeback: WritebackPolicyHow refined gains are written back. See WritebackPolicy.
coverage: CoveragePolicyWhich individuals are refined. See CoveragePolicy.
Trait Implementations§
Source§impl<SP: Clone, LP: Clone> Clone for MemeticParams<SP, LP>
impl<SP: Clone, LP: Clone> Clone for MemeticParams<SP, LP>
Source§fn clone(&self) -> MemeticParams<SP, LP>
fn clone(&self) -> MemeticParams<SP, LP>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<SP: Validate, LP> Validate for MemeticParams<SP, LP>
Validation delegates to the wrapped inner strategy’s config — the memetic
wrapper is the harness chokepoint for that inner config. Only SP: Validate
is required (the local-searcher params LP carry only simple step-size
knobs and are left unconstrained), so MemeticParams stays usable with any
local searcher while still rejecting an invalid inner configuration.
impl<SP: Validate, LP> Validate for MemeticParams<SP, LP>
Validation delegates to the wrapped inner strategy’s config — the memetic
wrapper is the harness chokepoint for that inner config. Only SP: Validate
is required (the local-searcher params LP carry only simple step-size
knobs and are left unconstrained), so MemeticParams stays usable with any
local searcher while still rejecting an invalid inner configuration.
Source§fn validate_all(&self) -> Result<(), Vec<ConfigError>>
fn validate_all(&self) -> Result<(), Vec<ConfigError>>
Returns every violated invariant rather than just the first. Read more
Auto Trait Implementations§
impl<SP, LP> Freeze for MemeticParams<SP, LP>
impl<SP, LP> RefUnwindSafe for MemeticParams<SP, LP>where
SP: RefUnwindSafe,
LP: RefUnwindSafe,
impl<SP, LP> Send for MemeticParams<SP, LP>
impl<SP, LP> Sync for MemeticParams<SP, LP>
impl<SP, LP> Unpin for MemeticParams<SP, LP>
impl<SP, LP> UnsafeUnpin for MemeticParams<SP, LP>where
SP: UnsafeUnpin,
LP: UnsafeUnpin,
impl<SP, LP> UnwindSafe for MemeticParams<SP, LP>where
SP: UnwindSafe,
LP: UnwindSafe,
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
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