pub struct Nsga2Sampler { /* private fields */ }Expand description
NSGA-II sampler for multi-objective optimization.
Use non-dominated sorting with crowding-distance tie-breaking to
evolve a well-spread Pareto front. Best suited for bi-objective
problems; for 3+ objectives prefer Nsga3Sampler.
Create with Nsga2Sampler::new, Nsga2Sampler::with_seed, or
Nsga2Sampler::builder for full configuration.
Implementations§
Trait Implementations§
Source§impl Default for Nsga2Sampler
impl Default for Nsga2Sampler
Source§impl MultiObjectiveSampler for Nsga2Sampler
impl MultiObjectiveSampler for Nsga2Sampler
Source§fn sample(
&self,
distribution: &Distribution,
trial_id: u64,
history: &[MultiObjectiveTrial],
directions: &[Direction],
) -> ParamValue
fn sample( &self, distribution: &Distribution, trial_id: u64, history: &[MultiObjectiveTrial], directions: &[Direction], ) -> ParamValue
Samples a parameter value from the given distribution.
Auto Trait Implementations§
impl !Freeze for Nsga2Sampler
impl !RefUnwindSafe for Nsga2Sampler
impl Send for Nsga2Sampler
impl Sync for Nsga2Sampler
impl Unpin for Nsga2Sampler
impl UnwindSafe for Nsga2Sampler
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