Skip to main content

NSGAII

Struct NSGAII 

Source
pub struct NSGAII<C, M, Sel>{ /* private fields */ }

Trait Implementations§

Source§

impl<C, M, Sel> Algorithm<f64, ParetoCrowdingDistanceQuality> for NSGAII<C, M, Sel>

Source§

type SolutionSet = VectorSolutionSet<f64, ParetoCrowdingDistanceQuality>

Source§

type Parameters = NSGAIIParameters<C, M, Sel>

Source§

type StepState = NSGAIIState

Source§

fn new(parameters: NSGAIIParameters<C, M, Sel>) -> Self

Source§

fn algorithm_name(&self) -> &str

Human-readable algorithm name used by observers and runtime reports.
Source§

fn termination_criteria(&self) -> TerminationCriteria

Termination criteria configured for this algorithm instance.
Source§

fn observers_mut( &mut self, ) -> &mut Vec<Box<dyn AlgorithmObserver<f64, ParetoCrowdingDistanceQuality>>>

Mutable access to registered observers.
Source§

fn set_solution_set(&mut self, solution_set: Self::SolutionSet)

Stores the last solution set produced by run.
Source§

fn validate_parameters(&self) -> Result<(), String>

Returns Ok(()) when parameters are valid, or Err(message) otherwise.
Source§

fn get_solution_set(&self) -> Option<&Self::SolutionSet>

Source§

fn initialize_step_state( &self, problem: &(impl Problem<f64, ParetoCrowdingDistanceQuality> + Sync), ) -> Self::StepState

Source§

fn step( &self, problem: &(impl Problem<f64, ParetoCrowdingDistanceQuality> + Sync), state: &mut Self::StepState, _context: &ExecutionContext<f64, ParetoCrowdingDistanceQuality>, )

Source§

fn build_snapshot( &self, _problem: &(impl Problem<f64, ParetoCrowdingDistanceQuality> + Sync), state: &Self::StepState, ) -> ExecutionStateSnapshot<f64, ParetoCrowdingDistanceQuality>

Source§

fn finalize_step_state(&self, state: Self::StepState) -> Self::SolutionSet

Source§

fn run<P>(&mut self, problem: &P) -> Result<Self::SolutionSet, String>
where Self: Sized, Self::SolutionSet: Clone, P: Problem<T, Q> + Sync,

Runs the optimization algorithm on the given problem. Read more
Source§

fn checkpoint_algorithm_parameters(&self) -> String

Returns a string used to fingerprint algorithm checkpoint compatibility.
Source§

fn get_resume_checkpoint( &self, problem: &(impl Problem<T, Q> + Sync), checkpoint_dir: &PathBuf, ) -> Option<CheckpointRecord>

Resolves a resumable checkpoint when --resume is present. Read more
Source§

impl<C, M, Sel> Observable<f64, ParetoCrowdingDistanceQuality> for NSGAII<C, M, Sel>

Source§

fn add_observer( &mut self, observer: Box<dyn AlgorithmObserver<f64, ParetoCrowdingDistanceQuality>>, )

Adds an observer to this observable
Source§

fn clear_observers(&mut self)

Removes all observers

Auto Trait Implementations§

§

impl<C, M, Sel> Freeze for NSGAII<C, M, Sel>
where C: Freeze, M: Freeze, Sel: Freeze,

§

impl<C, M, Sel> !RefUnwindSafe for NSGAII<C, M, Sel>

§

impl<C, M, Sel> Send for NSGAII<C, M, Sel>
where C: Send, M: Send, Sel: Send,

§

impl<C, M, Sel> !Sync for NSGAII<C, M, Sel>

§

impl<C, M, Sel> Unpin for NSGAII<C, M, Sel>
where C: Unpin, M: Unpin, Sel: Unpin,

§

impl<C, M, Sel> UnsafeUnpin for NSGAII<C, M, Sel>
where C: UnsafeUnpin, M: UnsafeUnpin, Sel: UnsafeUnpin,

§

impl<C, M, Sel> !UnwindSafe for NSGAII<C, M, Sel>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.