EvolvingObjects
|
Automatic builders are functions that automagically builds most commons instances for you. More...
Functions | |
template<class EOT > | |
eoCheckPoint< EOT > & | do_make_checkpoint (eoParser &_parser, eoState &_state, eoValueParam< unsigned long > &_eval, eoContinue< EOT > &_continue) |
CHANGE (March 2008): now receiving an eoValueParam instead of an eoEvalFuncCounter. | |
template<class EOT > | |
eoCheckPoint< EOT > & | do_make_checkpoint_assembled (eoParser &_parser, eoState &_state, eoEvalFuncCounter< EOT > &_eval, eoContinue< EOT > &_continue) |
Of course, Fitness needs to be an eoScalarFitnessAssembled!!! | |
template<class EOT > | |
eoCheckPoint< EOT > & | do_make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< EOT > &_eval, eoContinue< EOT > &_continue) |
template<class Indi > | |
eoCombinedContinue< Indi > * | make_combinedContinue (eoCombinedContinue< Indi > *_combined, eoContinue< Indi > *_cont) |
template<class Indi > | |
eoContinue< Indi > & | do_make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< Indi > &_eval) |
template<class EOT > | |
eoReduce< EOT > & | decode_reduce (eoParamParamType &_ppReduce, eoState &_state) |
a helper function that decodes a parameter read by the parser into an eoReduce<EOT> & (allocates the pointer and stores it into an eoState) | |
template<class EOT > | |
eoReplacement< EOT > & | make_general_replacement (eoParser &_parser, eoState &_state, eoHowMany _elite=eoHowMany(0), bool _strongElitism=false, eoHowMany _surviveParents=eoHowMany(0.0), eoParamParamType &_reduceParentType=eoParamParamType("Deterministic"), eoHowMany _surviveOffspring=eoHowMany(1.0), eoParamParamType &_reduceOffspringType=eoParamParamType("Deterministic"), eoParamParamType &_reduceFinalType=eoParamParamType("Deterministic")) |
Helper function that creates a replacement from the class eoReduceMergeReduce using 6 parameters (after the usual eoState and eoParser) | |
template<class EOT > | |
eoPop< EOT > & | do_make_pop (eoParser &_parser, eoState &_state, eoInit< EOT > &_init) |
Templatized version of parser-based construct of the population + other initializations that are NOT representation-dependent. | |
eoRealInitBounded< eoEsSimple < double > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsSimple< double > _eo) |
Init functions. | |
eoRealInitBounded< eoEsSimple < eoMinimizingFitness > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsSimple< eoMinimizingFitness > _eo) |
eoRealInitBounded< eoEsStdev < double > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsStdev< double > _eo) |
eoRealInitBounded< eoEsStdev < eoMinimizingFitness > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsStdev< eoMinimizingFitness > _eo) |
eoRealInitBounded< eoEsFull < double > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsFull< double > _eo) |
eoRealInitBounded< eoEsFull < eoMinimizingFitness > > & | make_genotype (eoParser &_parser, eoState &_state, eoEsFull< eoMinimizingFitness > _eo) |
eoGenOp< eoEsSimple< double > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsSimple< double > > &_init) |
This file contains ***INSTANCIATED DEFINITIONS*** of operators fns of the library for ***eoReal*** evolution inside EO. | |
eoGenOp< eoEsSimple < eoMinimizingFitness > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsSimple< eoMinimizingFitness > > &_init) |
eoGenOp< eoEsStdev< double > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsStdev< double > > &_init) |
eoGenOp< eoEsStdev < eoMinimizingFitness > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsStdev< eoMinimizingFitness > > &_init) |
eoGenOp< eoEsFull< double > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsFull< double > > &_init) |
eoGenOp< eoEsFull < eoMinimizingFitness > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoEsFull< eoMinimizingFitness > > &_init) |
eoPop< eoEsSimple< double > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsSimple< double > > &) |
This file contains ***INSTANCIATED DEFINITIONS*** of pop. | |
eoPop< eoEsSimple < eoMinimizingFitness > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsSimple< eoMinimizingFitness > > &) |
eoPop< eoEsStdev< double > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsStdev< double > > &) |
eoPop< eoEsStdev < eoMinimizingFitness > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsStdev< eoMinimizingFitness > > &) |
eoPop< eoEsFull< double > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsFull< double > > &) |
eoPop< eoEsFull < eoMinimizingFitness > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoEsFull< eoMinimizingFitness > > &) |
eoContinue< eoEsSimple< double > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsSimple< double > > &_eval) |
This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns of the library for evolution of ***ES genotypes*** inside EO. | |
eoContinue< eoEsSimple < eoMinimizingFitness > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsSimple< eoMinimizingFitness > > &_eval) |
eoContinue< eoEsStdev< double > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsStdev< double > > &_eval) |
eoContinue< eoEsStdev < eoMinimizingFitness > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsStdev< eoMinimizingFitness > > &_eval) |
eoContinue< eoEsFull< double > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsFull< double > > &_eval) |
eoContinue< eoEsFull < eoMinimizingFitness > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsFull< eoMinimizingFitness > > &_eval) |
eoCheckPoint< eoEsSimple < double > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsSimple< double > > &_eval, eoContinue< eoEsSimple< double > > &_continue) |
This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns of the library for evolution of ***ES genotypes*** inside EO. | |
eoCheckPoint< eoEsSimple < eoMinimizingFitness > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsSimple< eoMinimizingFitness > > &_eval, eoContinue< eoEsSimple< eoMinimizingFitness > > &_continue) |
eoCheckPoint< eoEsStdev < double > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsStdev< double > > &_eval, eoContinue< eoEsStdev< double > > &_continue) |
eoCheckPoint< eoEsStdev < eoMinimizingFitness > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsStdev< eoMinimizingFitness > > &_eval, eoContinue< eoEsStdev< eoMinimizingFitness > > &_continue) |
eoCheckPoint< eoEsFull< double > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsFull< double > > &_eval, eoContinue< eoEsFull< double > > &_continue) |
eoCheckPoint< eoEsFull < eoMinimizingFitness > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoEsFull< eoMinimizingFitness > > &_eval, eoContinue< eoEsFull< eoMinimizingFitness > > &_continue) |
eoAlgo< eoEsSimple< double > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsSimple< double > > &_eval, eoContinue< eoEsSimple< double > > &_ccontinue, eoGenOp< eoEsSimple< double > > &_op, eoDistance< eoEsSimple< double > > *_dist=NULL) |
This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns of the library for evolution of ***eoEs genotypes*** inside EO. | |
eoAlgo< eoEsSimple < eoMinimizingFitness > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsSimple< eoMinimizingFitness > > &_eval, eoContinue< eoEsSimple< eoMinimizingFitness > > &_ccontinue, eoGenOp< eoEsSimple< eoMinimizingFitness > > &_op, eoDistance< eoEsSimple< eoMinimizingFitness > > *_dist=NULL) |
eoAlgo< eoEsStdev< double > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsStdev< double > > &_eval, eoContinue< eoEsStdev< double > > &_ccontinue, eoGenOp< eoEsStdev< double > > &_op, eoDistance< eoEsStdev< double > > *_dist=NULL) |
eoAlgo< eoEsStdev < eoMinimizingFitness > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsStdev< eoMinimizingFitness > > &_eval, eoContinue< eoEsStdev< eoMinimizingFitness > > &_ccontinue, eoGenOp< eoEsStdev< eoMinimizingFitness > > &_op, eoDistance< eoEsStdev< eoMinimizingFitness > > *_dist=NULL) |
eoAlgo< eoEsFull< double > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsFull< double > > &_eval, eoContinue< eoEsFull< double > > &_ccontinue, eoGenOp< eoEsFull< double > > &_op, eoDistance< eoEsFull< double > > *_dist=NULL) |
eoAlgo< eoEsFull < eoMinimizingFitness > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoEsFull< eoMinimizingFitness > > &_eval, eoContinue< eoEsFull< eoMinimizingFitness > > &_ccontinue, eoGenOp< eoEsFull< eoMinimizingFitness > > &_op, eoDistance< eoEsFull< eoMinimizingFitness > > *_dist=NULL) |
void | run_ea (eoAlgo< eoEsSimple< double > > &_ga, eoPop< eoEsSimple< double > > &_pop) |
This file contains ***INSTANCIATED DEFINITIONS*** of run funs of the library for evolution of ***ES genotypes*** inside EO. | |
void | run_ea (eoAlgo< eoEsSimple< eoMinimizingFitness > > &_ga, eoPop< eoEsSimple< eoMinimizingFitness > > &_pop) |
void | run_ea (eoAlgo< eoEsStdev< double > > &_ga, eoPop< eoEsStdev< double > > &_pop) |
void | run_ea (eoAlgo< eoEsStdev< eoMinimizingFitness > > &_ga, eoPop< eoEsStdev< eoMinimizingFitness > > &_pop) |
void | run_ea (eoAlgo< eoEsFull< double > > &_ga, eoPop< eoEsFull< double > > &_pop) |
void | run_ea (eoAlgo< eoEsFull< eoMinimizingFitness > > &_ga, eoPop< eoEsFull< eoMinimizingFitness > > &_pop) |
void | make_help (eoParser &_parser) |
Generation of the status file, and output of the help message if needed. | |
template<class EOT > | |
eoEsChromInit< EOT > & | do_make_genotype (eoParser &_parser, eoState &_state, EOT) |
Initialize genotype. | |
template<class EOT > | |
eoGenOp< EOT > & | do_make_op (eoParameterLoader &_parser, eoState &_state, eoInit< EOT > &_init) |
template<class EOT > | |
eoGenOp< EOT > & | do_make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< EOT > &_init) |
eoRealInitBounded< eoReal < double > > & | make_genotype (eoParser &_parser, eoState &_state, eoReal< double > _eo) |
This file contains ***INSTANCIATED DEFINITIONS*** of eoReal Init fns It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. | |
eoRealInitBounded< eoReal < eoMinimizingFitness > > & | make_genotype (eoParser &_parser, eoState &_state, eoReal< eoMinimizingFitness > _eo) |
eoGenOp< eoReal< double > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoReal< double > > &_init) |
This file contains ***INSTANCIATED DEFINITIONS*** of operators fns of the library for ***eoReal*** evolution inside EO. | |
eoGenOp< eoReal < eoMinimizingFitness > > & | make_op (eoParser &_parser, eoState &_state, eoRealInitBounded< eoReal< eoMinimizingFitness > > &_init) |
eoPop< eoReal< double > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoReal< double > > &) |
This file contains ***INSTANCIATED DEFINITIONS*** of pop. | |
eoPop< eoReal < eoMinimizingFitness > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoReal< eoMinimizingFitness > > &) |
eoContinue< eoReal< double > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoReal< double > > &_eval) |
This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns of the library for evolution of ***REAL vectors*** inside EO. | |
eoContinue< eoReal < eoMinimizingFitness > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoReal< eoMinimizingFitness > > &_eval) |
eoCheckPoint< eoReal< double > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoReal< double > > &_eval, eoContinue< eoReal< double > > &_continue) |
This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns of the library for evolution of ***eoReal*** inside EO. | |
eoCheckPoint< eoReal < eoMinimizingFitness > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoReal< eoMinimizingFitness > > &_eval, eoContinue< eoReal< eoMinimizingFitness > > &_continue) |
eoAlgo< eoReal< double > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoReal< double > > &_eval, eoContinue< eoReal< double > > &_ccontinue, eoGenOp< eoReal< double > > &_op, eoDistance< eoReal< double > > *_dist=NULL) |
This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns of the library for evolution of ***eoReal*** inside EO. | |
eoAlgo< eoReal < eoMinimizingFitness > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoReal< eoMinimizingFitness > > &_eval, eoContinue< eoReal< eoMinimizingFitness > > &_ccontinue, eoGenOp< eoReal< eoMinimizingFitness > > &_op, eoDistance< eoReal< eoMinimizingFitness > > *_dist=NULL) |
void | run_ea (eoAlgo< eoReal< double > > &_ga, eoPop< eoReal< double > > &_pop) |
This file contains ***INSTANCIATED DEFINITIONS*** of run funs of the library for evolution of ***eoReal*** inside EO. | |
void | run_ea (eoAlgo< eoReal< eoMinimizingFitness > > &_ga, eoPop< eoReal< eoMinimizingFitness > > &_pop) |
eoInit< eoBit< double > > & | make_genotype (eoParser &_parser, eoState &_state, eoBit< double > _eo, float _bias=0.5) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO. | |
eoInit< eoBit < eoMinimizingFitness > > & | make_genotype (eoParser &_parser, eoState &_state, eoBit< eoMinimizingFitness > _eo, float _bias=0.5) |
eoGenOp< eoBit< double > > & | make_op (eoParser &_parser, eoState &_state, eoInit< eoBit< double > > &_init) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO. | |
eoGenOp< eoBit < eoMinimizingFitness > > & | make_op (eoParser &_parser, eoState &_state, eoInit< eoBit< eoMinimizingFitness > > &_init) |
eoPop< eoBit< double > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoBit< double > > &) |
This file contains all ***INSTANCIATED DEFINITIONS*** of population init of the library for ***BISTRING*** evolution inside EO. | |
eoPop< eoBit < eoMinimizingFitness > > & | make_pop (eoParser &_parser, eoState &_state, eoInit< eoBit< eoMinimizingFitness > > &) |
eoContinue< eoBit< double > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoBit< double > > &_eval) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO. | |
eoContinue< eoBit < eoMinimizingFitness > > & | make_continue (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoBit< eoMinimizingFitness > > &_eval) |
eoCheckPoint< eoBit< double > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoBit< double > > &_eval, eoContinue< eoBit< double > > &_continue) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO. | |
eoCheckPoint< eoBit < eoMinimizingFitness > > & | make_checkpoint (eoParser &_parser, eoState &_state, eoEvalFuncCounter< eoBit< eoMinimizingFitness > > &_eval, eoContinue< eoBit< eoMinimizingFitness > > &_continue) |
eoAlgo< eoBit< double > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoBit< double > > &_eval, eoContinue< eoBit< double > > &_ccontinue, eoGenOp< eoBit< double > > &_op, eoDistance< eoBit< double > > *_dist=NULL) |
This file contains all ***INSTANCIATED DEFINITIONS*** of pop. | |
eoAlgo< eoBit < eoMinimizingFitness > > & | make_algo_scalar (eoParser &_parser, eoState &_state, eoEvalFunc< eoBit< eoMinimizingFitness > > &_eval, eoContinue< eoBit< eoMinimizingFitness > > &_ccontinue, eoGenOp< eoBit< eoMinimizingFitness > > &_op, eoDistance< eoBit< eoMinimizingFitness > > *_dist=NULL) |
void | run_ea (eoAlgo< eoBit< double > > &_ga, eoPop< eoBit< double > > &_pop) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO. | |
void | run_ea (eoAlgo< eoBit< eoMinimizingFitness > > &_ga, eoPop< eoBit< eoMinimizingFitness > > &_pop) |
Automatic builders are functions that automagically builds most commons instances for you.
This file contains all ***INSTANCIATED*** declarations of all components of the library for ***BISTRING*** evolution inside EO.
This file contains all ***INSTANCIATED*** declarations of all components of the library for ***std::vector<RealValues>*** evolution inside EO.
(c) Maarten Keijzer, Marc Schoenauer and GeNeura Team, 2001
This file contains all ***INSTANCIATED*** declarations of all components of the library for ***ES-like gnptype*** evolution inside EO.
All the options you needs are set in the command-line parser. Those functions all start with the "do_make_" prefix.
It should be included in the file that calls any of the corresponding fns
The corresponding ***INSTANCIATED*** definitions are contained in the different .cpp files in the src/es dir, while the TEMPLATIZED code is define in the different make_XXX.h files either in hte src/do dir for representation independant functions, or in the src/es dir for representation dependent stuff.
See also real.h for the similar declarations of eoReal genotypes i.e. ***without*** mutation parameters attached to individuals
Unlike most EO .h files, it does not (and should not) contain any code, just declarations
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: http://eodev.sourceforge.net todos@geneura.ugr.es, http://geneura.ugr.es Marc.Schoenauer@polytechnique.fr mkeijzer@dhi.dk
It should be included in the file that calls any of the corresponding fns
The corresponding ***INSTANCIATED*** definitions are contained in the different .cpp files in the src/es dir, while the TEMPLATIZED code is define in the different make_XXX.h files either in hte src/do dir for representation independant functions, or in the src/es dir for representation dependent stuff.
See also es.h for the similar declarations of ES-like genotypes i.e. ***with*** mutation parameters attached to individuals
Unlike most EO .h files, it does not (and should not) contain any code, just declarations
It should be included in the file that calls any of the corresponding fns
The corresponding ***INSTANCIATED*** definitions are contained in ga.cpp while the TEMPLATIZED code is define in the different makeXXX.h files
Unlike most EO .h files, it does not (and should not) contain any code, just declarations
eoCheckPoint<EOT>& do_make_checkpoint | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoValueParam< unsigned long > & | _eval, | ||
eoContinue< EOT > & | _continue | ||
) |
CHANGE (March 2008): now receiving an eoValueParam instead of an eoEvalFuncCounter.
This function is just interested in the value of the parameter calculated on the evaluation function, not in the actual function itself!!
existing stats as of today, April 10. 2001
eoBestFitnessStat : best value in pop - type EOT::Fitness eoAverageStat : average value in pop - type EOT::Fitness eoSecondMomentStat: average + stdev - type std::pair<double, double> eoSortedPopStat : whole population - type std::string (!!) eoScalarFitnessStat: the fitnesses - type std::vector<double>
Definition at line 55 of file make_checkpoint.h.
References eoMonitor::add(), eoFileSnapshot::add(), eoParameterLoader::createParam(), eoParser::isItThere(), eoFunctorStore::storeFunctor(), and eoValueParam< ValueType >::value().
Referenced by make_checkpoint().
eoCheckPoint<EOT>& do_make_checkpoint | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< EOT > & | _eval, | ||
eoContinue< EOT > & | _continue | ||
) |
existing stats as of today, April 10. 2001
eoBestFitnessStat : best value in pop - type EOT::Fitness eoAverageStat : average value in pop - type EOT::Fitness eoSecondMomentStat: average + stdev - type std::pair<double, double> eoSortedPopStat : whole population - type std::string (!!) eoScalarFitnessStat: the fitnesses - type std::vector<double> eoDFCSTat : FDC wrt best in pop or absolute best - type double requires an eoDistance. See eoFDCStat.h also computes all elements for the FDC scatter plot
Definition at line 48 of file make_checkpoint_FDC.h.
References eoMonitor::add(), eoFileSnapshot::add(), eoParameterLoader::createParam(), eoParser::isItThere(), eoFunctorStore::storeFunctor(), and eoValueParam< ValueType >::value().
eoReplacement<EOT>& make_general_replacement | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoHowMany | _elite = eoHowMany(0) , |
||
bool | _strongElitism = false , |
||
eoHowMany | _surviveParents = eoHowMany(0.0) , |
||
eoParamParamType & | _reduceParentType = eoParamParamType("Deterministic") , |
||
eoHowMany | _surviveOffspring = eoHowMany(1.0) , |
||
eoParamParamType & | _reduceOffspringType = eoParamParamType("Deterministic") , |
||
eoParamParamType & | _reduceFinalType = eoParamParamType("Deterministic") |
||
) |
Helper function that creates a replacement from the class eoReduceMergeReduce using 6 parameters (after the usual eoState and eoParser)
eoHowMany _elite the number of elite parents (0 = no elitism) see below bool _strongElitism if elite > 0, std::string elitism or weak elitism strong = elite parents survive, whatever the offspring weak - elite patents compete AFTER replacement with best offspring eoHowMany _surviveParents number of parents after parents recuction eoParamParamType & _reduceParentType how the parents are reduced eoHowMany _surviveOffspring number of offspring after offspring recuction eoParamParamType & _reduceOffspringType how the offspring are reduced eoParamParamType & _reduceFinalType how the final population is reduced to initial population size
Definition at line 138 of file make_general_replacement.h.
References eoParameterLoader::createParam(), and eoFunctorStore::storeFunctor().
eoPop<EOT>& do_make_pop | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoInit< EOT > & | _init | ||
) |
Templatized version of parser-based construct of the population + other initializations that are NOT representation-dependent.
It must then be instantiated, and compiled on its own for a given EOType (see e.g. ga.h and ga.pp in dir ga)
Definition at line 57 of file make_pop.h.
References eoPop< EOT >::append(), eoParser::getORcreateParam(), eoState::load(), eoState::registerObject(), eoRng::reseed(), eoState::takeOwnership(), and eoValueParam< ValueType >::value().
Referenced by make_pop().
eoRealInitBounded<eoEsSimple<double> >& make_genotype | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEsSimple< double > | _eo | ||
) |
Init functions.
This file contains ***INSTANCIATED DEFINITIONS*** of eoReal Init fns It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/make_real.h while the TEMPLATIZED code is define in make_genotype_real.h
It is instanciated in src/es/make_genotype_real.cpp - and incorporated in the ga/libga.a
It returns an eoInit<EOT> that can later be used to initialize the population (see make_pop.h).
It uses a parser (to get user parameters) and a state (to store the memory) the last argument is to disambiguate the call upon different instanciations.
WARNING: that last argument will generally be the result of calling the default ctor of EOT, resulting in most cases in an EOT that is not properly initialized*** The following function merely call the templatized do_* functions
Definition at line 61 of file make_genotype_es.cpp.
References do_make_genotype().
eoGenOp<eoEsSimple<double> >& make_op | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoRealInitBounded< eoEsSimple< double > > & | _init | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of operators fns of the library for ***eoReal*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in es.h in src/es dir while the TEMPLATIZED code is define in make_op.h in the es dir The following function merely call the templatized do_* functions above
Definition at line 51 of file make_op_es.cpp.
eoPop<eoEsSimple<double> >& make_pop | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoInit< eoEsSimple< double > > & | _init | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of pop.
init. fns of the library for evolution of ***ES genotypes*** indis inside EO. It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/es.h while the TEMPLATIZED code is define in make_pop.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 54 of file make_pop_es.cpp.
References do_make_pop().
eoContinue<eoEsSimple<double> >& make_continue | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoEsSimple< double > > & | _eval | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns of the library for evolution of ***ES genotypes*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/es.h while the TEMPLATIZED code is define in make_continue.h in the src/do dir The following function merely call the templatized do_* functions
Definition at line 54 of file make_continue_es.cpp.
eoCheckPoint<eoEsSimple<double> >& make_checkpoint | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoEsSimple< double > > & | _eval, | ||
eoContinue< eoEsSimple< double > > & | _continue | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns of the library for evolution of ***ES genotypes*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/es.h while the TEMPLATIZED code is define in make_checkpoint.h in the src/do dir The following function merely call the templatized do_* functions
Definition at line 54 of file make_checkpoint_es.cpp.
References do_make_checkpoint().
eoAlgo<eoEsSimple<double> >& make_algo_scalar | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFunc< eoEsSimple< double > > & | _eval, | ||
eoContinue< eoEsSimple< double > > & | _continue, | ||
eoGenOp< eoEsSimple< double > > & | _op, | ||
eoDistance< eoEsSimple< double > > * | _dist | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns of the library for evolution of ***eoEs genotypes*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/es.h while the TEMPLATIZED code is define in make_algo_scalar.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 54 of file make_algo_scalar_es.cpp.
void run_ea | ( | eoAlgo< eoEsSimple< double > > & | _ga, |
eoPop< eoEsSimple< double > > & | _pop | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of run funs of the library for evolution of ***ES genotypes*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/es.h while the TEMPLATIZED code is define in make_run.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 56 of file make_run_es.cpp.
Generation of the status file, and output of the help message if needed.
MUST be called after ALL parameters have been read in order to list them
Warning: this is a plain .cpp file and shoudl NOT be included anywhere, but compiled separately and stored in a library.
It is declared in all make_xxx.h files in representation-dependent dirs but it is NOT representation-dependent itself - that's why it's in utils
Definition at line 47 of file make_help.cpp.
References eoParameterLoader::createParam(), eoParser::printHelp(), eoParser::userNeedsHelp(), and eoValueParam< ValueType >::value().
eoEsChromInit<EOT>& do_make_genotype | ( | eoParser & | _parser, |
eoState & | _state, | ||
EOT | |||
) |
Initialize genotype.
This fuction does the initialization of what's needed for a particular genotype (here, std::vector<double> == eoReal). It could be here tempatied only on the fitness, as it can be used to evolve bitstrings with any fitness. However, for consistency reasons, it was finally chosen, as in the rest of EO, to templatize by the full EOT, as this eventually allows to choose the type of genotype at run time (see in es dir)
It is instanciated in src/es/make_genotyupe_real.cpp and incorporated in the src/es/libes.a
It returns an eoInit<EOT> tha can later be used to initialize the population (see make_pop.h).
It uses a parser (to get user parameters) and a state (to store the memory) the last argument is to disambiguate the call upon different instanciations.
Definition at line 65 of file make_genotype_real.h.
References eoParser::getORcreateParam(), eoFunctorStore::storeFunctor(), and eoValueParam< ValueType >::value().
Referenced by make_genotype().
eoRealInitBounded<eoReal<double> >& make_genotype | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoReal< double > | _eo | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of eoReal Init fns It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e.
object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/make_real.h while the TEMPLATIZED code is define in make_genotype_real.h
It is instanciated in src/es/make_genotype_real.cpp - and incorporated in the ga/libga.a
It returns an eoInit<EOT> that can later be used to initialize the population (see make_pop.h).
It uses a parser (to get user parameters) and a state (to store the memory) the last argument is to disambiguate the call upon different instanciations.
WARNING: that last argument will generally be the result of calling the default ctor of EOT, resulting in most cases in an EOT that is ***not properly initialized*** The following functions merely call the templatized do_* functions
Definition at line 59 of file make_genotype_real.cpp.
References do_make_genotype().
eoGenOp<eoReal<double> >& make_op | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoRealInitBounded< eoReal< double > > & | _init | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of operators fns of the library for ***eoReal*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in es.h in src/es dir while the TEMPLATIZED code is define in make_op.h in the es dir The following function merely call the templatized do_* functions above
Definition at line 51 of file make_op_real.cpp.
eoPop<eoReal<double> >& make_pop | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoInit< eoReal< double > > & | _init | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of pop.
init. fns of the library for evolution of ***eoReal*** indis inside EO. It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/real.h while the TEMPLATIZED code is define in make_pop.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 52 of file make_pop_real.cpp.
References do_make_pop().
eoContinue<eoReal<double> >& make_continue | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoReal< double > > & | _eval | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of continuator fns of the library for evolution of ***REAL vectors*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/real.h while the TEMPLATIZED code is define in make_continue.h in the src/do dir The following function merely call the templatized do_* functions
Definition at line 52 of file make_continue_real.cpp.
eoCheckPoint<eoReal<double> >& make_checkpoint | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoReal< double > > & | _eval, | ||
eoContinue< eoReal< double > > & | _continue | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of checkpoint fns of the library for evolution of ***eoReal*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/real.h while the TEMPLATIZED code is define in make_checkpoint.h in the src/do dir The following function merely call the templatized do_* functions
Definition at line 52 of file make_checkpoint_real.cpp.
References do_make_checkpoint().
eoAlgo<eoReal<double> >& make_algo_scalar | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFunc< eoReal< double > > & | _eval, | ||
eoContinue< eoReal< double > > & | _continue, | ||
eoGenOp< eoReal< double > > & | _op, | ||
eoDistance< eoReal< double > > * | _dist | ||
) |
This file contains ***INSTANCIATED DEFINITIONS*** of select/replace fns of the library for evolution of ***eoReal*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/real.h while the TEMPLATIZED code is define in make_algo_scalar.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 52 of file make_algo_scalar_real.cpp.
This file contains ***INSTANCIATED DEFINITIONS*** of run funs of the library for evolution of ***eoReal*** inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/es/real.h while the TEMPLATIZED code is define in make_run.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 54 of file make_run_real.cpp.
eoInit<eoBit<double> >& make_genotype | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoBit< double > | _eo, | ||
float | _bias | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in ga.h in src/ga dir while the TEMPLATIZED code is define in make_genotype_ga.h The following function merely call the templatized do_* functions above
Definition at line 48 of file make_genotype_ga.cpp.
References do_make_genotype().
eoGenOp<eoBit<double> >& make_op | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoInit< eoBit< double > > & | _init | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in make_op_ga.h while the TEMPLATIZED code is define in make_op.h in the ga dir
Unlike most EO .h files, it does not (and should not) contain any code, just declarations The following function merely call the templatized do_* functions above
Definition at line 53 of file make_op_ga.cpp.
eoPop<eoBit<double> >& make_pop | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoInit< eoBit< double > > & | _init | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of population init of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in ga/make_ga.h while the TEMPLATIZED code is define in make_pop.h in the src/do dir The following function merely call the templatized do_* functions above
Definition at line 53 of file make_pop_ga.cpp.
References do_make_pop().
eoContinue<eoBit<double> >& make_continue | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoBit< double > > & | _eval | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in ga.h while the TEMPLATIZED code is define in make_continue.h in the src/do dir
Unlike most EO .h files, it does not (and should not) contain any code, just declarations The following function merely call the templatized do_* functions above
Definition at line 55 of file make_continue_ga.cpp.
eoCheckPoint<eoBit<double> >& make_checkpoint | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFuncCounter< eoBit< double > > & | _eval, | ||
eoContinue< eoBit< double > > & | _continue | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in make_checkpoint_ga.h while the TEMPLATIZED code is define in make_checkpoint.h in the do dir
Unlike most EO .h files, it does not (and should not) contain any code, just declarations The following function merely call the templatized do_* functions
Definition at line 55 of file make_checkpoint_ga.cpp.
References do_make_checkpoint().
eoAlgo<eoBit<double> >& make_algo_scalar | ( | eoParser & | _parser, |
eoState & | _state, | ||
eoEvalFunc< eoBit< double > > & | _eval, | ||
eoContinue< eoBit< double > > & | _continue, | ||
eoGenOp< eoBit< double > > & | _op, | ||
eoDistance< eoBit< double > > * | _dist | ||
) |
This file contains all ***INSTANCIATED DEFINITIONS*** of pop.
init. of the library for ***BISTRING*** evolution inside EO. It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in src/ga/ga.h while the TEMPLATIZED code is define in make_algo_scalar.h in the src/do dir
Unlike most EO .h files, it does not (and should not) contain any code, just declarations The following function merely call the templatized do_* functions above
Definition at line 55 of file make_algo_scalar_ga.cpp.
This file contains all ***INSTANCIATED DEFINITIONS*** of operators of the library for ***BISTRING*** evolution inside EO.
It should be included in the file that calls any of the corresponding fns Compiling this file allows one to generate part of the library (i.e. object files that you just need to link with your own main and fitness code).
The corresponding ***INSTANCIATED DECLARATIONS*** are contained in make_run_ga.h while the TEMPLATIZED code is define in make_run.h in the do dir
Unlike most EO .h files, it does not (and should not) contain any code, just declarations The following function merely call the templatized do_* functions above
Definition at line 57 of file make_run_ga.cpp.