pub struct Nsga3SamplerBuilder { /* private fields */ }Expand description
Builder for Nsga3Sampler.
Implementations§
Source§impl Nsga3SamplerBuilder
impl Nsga3SamplerBuilder
Sourcepub fn population_size(self, size: usize) -> Self
pub fn population_size(self, size: usize) -> Self
Sets the population size. If unset, equals the number of Das-Dennis reference points.
Sourcepub fn n_divisions(self, h: usize) -> Self
pub fn n_divisions(self, h: usize) -> Self
Sets the number of divisions (H) for Das-Dennis reference points. If unset, automatically chosen based on population size and number of objectives.
Sourcepub fn crossover_prob(self, prob: f64) -> Self
pub fn crossover_prob(self, prob: f64) -> Self
Sets the crossover probability. Default: 1.0.
Sourcepub fn crossover_eta(self, eta: f64) -> Self
pub fn crossover_eta(self, eta: f64) -> Self
Sets the SBX distribution index. Default: 30.0.
Sourcepub fn mutation_eta(self, eta: f64) -> Self
pub fn mutation_eta(self, eta: f64) -> Self
Sets the polynomial mutation distribution index. Default: 20.0.
Sourcepub fn build(self) -> Nsga3Sampler
pub fn build(self) -> Nsga3Sampler
Builds the configured Nsga3Sampler.
Trait Implementations§
Source§impl Clone for Nsga3SamplerBuilder
impl Clone for Nsga3SamplerBuilder
Source§fn clone(&self) -> Nsga3SamplerBuilder
fn clone(&self) -> Nsga3SamplerBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Nsga3SamplerBuilder
impl Debug for Nsga3SamplerBuilder
Source§impl Default for Nsga3SamplerBuilder
impl Default for Nsga3SamplerBuilder
Source§fn default() -> Nsga3SamplerBuilder
fn default() -> Nsga3SamplerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Nsga3SamplerBuilder
impl RefUnwindSafe for Nsga3SamplerBuilder
impl Send for Nsga3SamplerBuilder
impl Sync for Nsga3SamplerBuilder
impl Unpin for Nsga3SamplerBuilder
impl UnwindSafe for Nsga3SamplerBuilder
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