Rosetta
Public Member Functions | Private Attributes | List of all members
protocols::ligand_evolution::TournamentSelector Class Reference

Selects only the best scored individuals. More...

#include <TournamentSelector.hh>

Inheritance diagram for protocols::ligand_evolution::TournamentSelector:
Inheritance graph
[legend]

Public Member Functions

 TournamentSelector (core::Size tournament_size, core::Real probability)
 
utility::vector1< Individualapply (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...
 

Detailed Description

Selects only the best scored individuals.

Constructor & Destructor Documentation

◆ TournamentSelector()

protocols::ligand_evolution::TournamentSelector::TournamentSelector ( core::Size  tournament_size,
core::Real  probability 
)

Member Function Documentation

◆ apply()

utility::vector1< Individual > protocols::ligand_evolution::TournamentSelector::apply ( Population population,
core::Size  size,
bool  remove 
) const
overridevirtual

◆ name()

std::string const & protocols::ligand_evolution::TournamentSelector::name ( ) const
overridevirtual

Return the name of this selector.

Implements protocols::ligand_evolution::Selector.

References name_.

◆ set_probability()

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().

◆ set_tournament_size()

void protocols::ligand_evolution::TournamentSelector::set_tournament_size ( core::Size  size)

Sets the size for each tournament.

References tournament_size_.

Member Data Documentation

◆ name_

std::string protocols::ligand_evolution::TournamentSelector::name_ = "TournamentSelector"
private

Referenced by name().

◆ probability_

core::Real protocols::ligand_evolution::TournamentSelector::probability_ = 1
private

At which probability will an individual be selected, starting with the tournament winner.

Referenced by apply(), and set_probability().

◆ tournament_size_

core::Size protocols::ligand_evolution::TournamentSelector::tournament_size_ = 6
private

How many individuals will be randomly selected to participate in the tournament.

Referenced by apply(), and set_tournament_size().


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