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

#include <selection_strategy.hpp>

Inheritance diagram for de::selection_strategy:

List of all members.

Public Member Functions

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

Detailed Description

Abstract based class defining the interface for a selection strategy.

A selection strategy is used by Differential Evolution to determine what is the best individual

Author:
adrian (12/1/2011)

Member Function Documentation

virtual void de::selection_strategy::operator() ( population_ptr &  pop1,
population_ptr &  pop2,
individual_ptr &  bestInd,
bool  minimize 
) [pure 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

Implemented in de::tournament_selection_strategy, and de::best_parent_child_selection_strategy.


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