pub struct Nsga3<I, X, M, P> {
pub config: Config,
pub references: Vec<Vec<f64>>,
pub variation: Variation<I, X, M, P>,
}Expand description
NSGA-III over any genome, with caller-supplied reference points (see
das_dennis and two_layer).
Fields§
§config: ConfigThe run parameters.
references: Vec<Vec<f64>>The reference points on the normalised hyperplane, each with m coordinates.
variation: Variation<I, X, M, P>The variation operators.
Implementations§
Source§impl<I, X, M, P> Nsga3<I, X, M, P>
impl<I, X, M, P> Nsga3<I, X, M, P>
Sourcepub fn new(
config: Config,
references: Vec<Vec<f64>>,
variation: Variation<I, X, M, P>,
) -> Self
pub fn new( config: Config, references: Vec<Vec<f64>>, variation: Variation<I, X, M, P>, ) -> Self
Creates an NSGA-III run.
Sourcepub fn run<G, Pr, B, Obs, R>(
&mut self,
problem: &mut Pr,
budget: &mut B,
observer: &mut Obs,
rng: &mut R,
) -> MultiOutcome<G>
pub fn run<G, Pr, B, Obs, R>( &mut self, problem: &mut Pr, budget: &mut B, observer: &mut Obs, rng: &mut R, ) -> MultiOutcome<G>
Runs until the budget stops it.
§Panics
Panics if the population size is below 2, there are no reference points, or their
dimension differs from the problem’s objective count.
Trait Implementations§
impl<I: PartialEq, X: PartialEq, M: PartialEq, P: PartialEq> StructuralPartialEq for Nsga3<I, X, M, P>
Auto Trait Implementations§
impl<I, X, M, P> Forget for Nsga3<I, X, M, P>
impl<I, X, M, P> Freeze for Nsga3<I, X, M, P>
impl<I, X, M, P> Move for Nsga3<I, X, M, P>
impl<I, X, M, P> RefUnwindSafe for Nsga3<I, X, M, P>where
Variation<I, X, M, P>: RefUnwindSafe,
impl<I, X, M, P> Send for Nsga3<I, X, M, P>
impl<I, X, M, P> Sync for Nsga3<I, X, M, P>
impl<I, X, M, P> Unpin for Nsga3<I, X, M, P>
impl<I, X, M, P> UnsafeUnpin for Nsga3<I, X, M, P>where
Variation<I, X, M, P>: UnsafeUnpin,
impl<I, X, M, P> UnwindSafe for Nsga3<I, X, M, P>where
Variation<I, X, M, P>: 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