pub struct Config {
pub neighbourhood: usize,
pub delta: f64,
pub max_replacements: usize,
pub decomposition: Decomposition,
pub crossover_rate: f64,
pub mutation_rate: f64,
pub archive: Option<usize>,
}Expand description
Parameters of a Moead run.
Fields§
§neighbourhood: usizeThe neighbourhood size T, at least 2 (clamped to the number of weights).
delta: f64The probability δ of mating within the neighbourhood (otherwise the whole population).
max_replacements: usizeThe largest number of solutions one child may replace, n_r.
decomposition: DecompositionThe scalarising function.
crossover_rate: f64The probability that a pair of parents is recombined.
mutation_rate: f64The probability that a child is mutated at all.
archive: Option<usize>Keep an external Pareto archive of all evaluated non-dominated genomes, bounded to this
size by crowding; None keeps none and reports the population’s front.
Trait Implementations§
impl Copy 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