Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::selection::de Class Reference

#include <evolution_selection.h>

Classes

struct  selected_refs

Public Member Functions

template<SizedRandomAccessPopulation P>
selected_refs< typename P::value_type > operator() (P &) const

Detailed Description

Pick a set of four individuals suited for DE recombination.

Member Function Documentation

◆ operator()()

template<SizedRandomAccessPopulation P>
de::selected_refs< typename P::value_type > ultra::selection::de::operator() ( P & pop) const
nodiscard
Parameters
[in]popa population
Returns
references of four individuals suited for DE recombination. First and second elements are parents, the remaining ones are used for scaling.
Warning
This function assumes exclusive access to the population. If other threads can change the individuals, race conditions may happen.

The documentation for this class was generated from the following file: