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

#include <selection_strategy.hpp>

Inheritance diagram for de::best_parent_child_selection_strategy:
Collaboration diagram for de::best_parent_child_selection_strategy:

List of all members.

Classes

class  individual_compare

Public Member Functions

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

Detailed Description

Selection strategy that sorts all individuals across two generations based on the cost for each individual, and on the desired outcome - minimization or maximization of the objective function

Author:
adrian (12/1/2011)

Member Function Documentation

void de::best_parent_child_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: