|
Rosetta
|
Selects only the best scored individuals. More...
#include <TournamentSelector.hh>

Public Member Functions | |
| TournamentSelector (core::Size tournament_size, core::Real probability) | |
| utility::vector1< Individual > | apply (Population &population, core::Size size, bool remove) const override |
| Returns the indices of the n_select tournament winning individuals in population. More... | |
| std::string const & | name () const override |
| Return the name of this selector. More... | |
| void | set_tournament_size (core::Size size) |
| Sets the size for each tournament. More... | |
| void | set_probability (core::Real probability) |
| Sets the probability that the tournament winner accepts. More... | |
Private Attributes | |
| std::string | name_ = "TournamentSelector" |
| core::Size | tournament_size_ = 6 |
| How many individuals will be randomly selected to participate in the tournament. More... | |
| core::Real | probability_ = 1 |
| At which probability will an individual be selected, starting with the tournament winner. More... | |
Selects only the best scored individuals.
| protocols::ligand_evolution::TournamentSelector::TournamentSelector | ( | core::Size | tournament_size, |
| core::Real | probability | ||
| ) |
References protocols::simple_moves::bb_sampler::probability, and set_probability().
|
overridevirtual |
Returns the indices of the n_select tournament winning individuals in population.
Implements protocols::ligand_evolution::Selector.
References protocols::ligand_evolution::Population::individuals(), probability_, protocols::ligand_evolution::Population::remove_individuals(), protocols::ligand_evolution::Population::size(), protocols::ligand_evolution::Population::sort(), tournament_size_, and protocols::TR().
|
overridevirtual |
Return the name of this selector.
Implements protocols::ligand_evolution::Selector.
References name_.
| void protocols::ligand_evolution::TournamentSelector::set_probability | ( | core::Real | probability | ) |
Sets the probability that the tournament winner accepts.
References protocols::simple_moves::bb_sampler::probability, and probability_.
Referenced by TournamentSelector().
| void protocols::ligand_evolution::TournamentSelector::set_tournament_size | ( | core::Size | size | ) |
Sets the size for each tournament.
References tournament_size_.
|
private |
Referenced by name().
|
private |
At which probability will an individual be selected, starting with the tournament winner.
Referenced by apply(), and set_probability().
|
private |
How many individuals will be randomly selected to participate in the tournament.
Referenced by apply(), and set_tournament_size().