Differential Evolution C++ library
de::tournament_selection_strategy Class Reference

#include <selection_strategy.hpp>

Inheritance diagram for de::tournament_selection_strategy:
Collaboration diagram for de::tournament_selection_strategy:

List of all members.

Public Member Functions

void operator() (population_ptr &pop1, population_ptr &pop2, individual_ptr &bestInd, bool minimize)

Detailed Description

Selection strategy which compares individuals in two generations corresponding to the same index, and uses the best one for the next generation

Author:
adrian (12/1/2011)

Member Function Documentation

void de::tournament_selection_strategy::operator() ( population_ptr &  pop1,
population_ptr &  pop2,
individual_ptr &  bestInd,
bool  minimize 
) [inline, virtual]

applies the selection strategy

Author:
adrian (12/4/2011)
Parameters:
pop1old population
pop2new population
bestIndreference to the best individual - contains the best individual on return
minimizeif true, it will minimize, if false it will maximize

Implements de::selection_strategy.


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