pub struct Config {
pub accept_equal: bool,
pub restart_after: Option<u64>,
}Expand description
Parameters of a HillClimber.
Fields§
§accept_equal: boolAccept a mutant of equal cost (plateau moves). Default true.
restart_after: Option<u64>Restart from a fresh random genome after this many consecutive non-improving
iterations; None never restarts. The best genome over all restarts is returned.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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