eoSelectFromWorth< EOT, WorthType > Class Template Reference

-*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- More...

#include <eoSelectFromWorth.h>

Inheritance diagram for eoSelectFromWorth< EOT, WorthType >:

eoSelectOne< EOT, WorthT > eoUF< A1, R > eoFunctorBase eoDetTournamentWorthSelect< EOT, WorthT > eoRouletteWorthSelect< EOT, WorthT > eoStochTournamentWorthSelect< EOT, WorthT > eoFitnessScalingSelect< EOT > eoRankingSelect< EOT > eoSharingSelect< EOT >

List of all members.

Public Member Functions

 eoSelectFromWorth (eoPerf2Worth< EOT, WorthType > &_perf2Worth)
virtual void setup (const eoPop< EOT > &pop)
 virtual function to setup some population stats (for instance eoProportional can benefit greatly from this)

Protected Member Functions

void check_sync (unsigned index, const EOT &_eo)

Protected Attributes

eoPerf2Worth< EOT, WorthType > & perf2Worth
std::vector< typename
EOT::Fitness > 
fitness


Detailed Description

template<class EOT, class WorthType = double>
class eoSelectFromWorth< EOT, WorthType >

-*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-

----------------------------------------------------------------------------- eoSelectFromWorth.h (c) Maarten Keijzer, Marc Schoenauer, 2001

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Contact: Marc.Schoenauer@polytechnique.fr mkeijzer@dhi.dk selects one element from a population (is an eoSelectOne) but the selection is based on a std::vector of Worth that is different from the fitnesses (e.g. EO fitness is what Koza terms "raw fitness", Worth is what the selection is based upon).

see class eoPerf2Worth: an eoStat that transforms fitnesses into Worthes

Note: Worthes will not always be doubles - see some multi-objective techniques where it is a std::pair of doubles ...

It has to have a < operator it you want to call an existing selector (see selector.h) - but of course you can write the whole thing ...

Definition at line 51 of file eoSelectFromWorth.h.


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

Generated on Thu Jan 1 23:19:50 2009 for EvolvingObjects by  doxygen 1.5.5