// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- //----------------------------------------------------------------------------- // es.h // (c) Maarten Keijzer, Marc Schoenauer and GeNeura Team, 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: todos@geneura.ugr.es, http://geneura.ugr.es Marc.Schoenauer@polytechnique.fr mkeijzer@dhi.dk */ //----------------------------------------------------------------------------- /** This file contains all ***INSTANCIATED*** declarations of all components * of the library for ***ES-like gnptype*** evolution inside EO. * 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 */ #ifndef es_h #define es_h #include #include #include #include #include #include #include #include #include #include // one Sigma per individual #include // one sigmal per object variable #include // full correlation matrix per indi // include all similar declaration for eoReal - i.e. real-valued genotyes // without self-adaptation #include //Representation dependent - rewrite everything anew for each representation ////////////////////////// // the genotypes eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsSimple _eo); eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsSimple _eo); eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsStdev _eo); eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsStdev _eo); eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsFull _eo); eoRealInitBounded > & make_genotype(eoParser& _parser, eoState& _state, eoEsFull _eo); // the operators eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); eoGenOp >& make_op(eoParser& _parser, eoState& _state, eoRealInitBounded >& _init); //Representation INdependent //////////////////////////// // you don't need to modify that part even if you use your own representation // init pop eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); eoPop >& make_pop(eoParser& _parser, eoState& _state, eoInit >&); // the continue's eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); eoContinue >& make_continue(eoParser& _parser, eoState& _state, eoEvalFuncCounter > & _eval); // the checkpoint eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); eoCheckPoint >& make_checkpoint(eoParser& _parser, eoState& _state, eoEvalFuncCounter >& _eval, eoContinue >& _continue); // the algo eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); eoAlgo >& make_algo_scalar(eoParser& _parser, eoState& _state, eoEvalFunc >& _eval, eoContinue >& _ccontinue, eoGenOp >& _op, eoDistance >* _dist = NULL); // run void run_ea(eoAlgo >& _ga, eoPop >& _pop); void run_ea(eoAlgo >& _ga, eoPop >& _pop); void run_ea(eoAlgo >& _ga, eoPop >& _pop); void run_ea(eoAlgo >& _ga, eoPop >& _pop); void run_ea(eoAlgo >& _ga, eoPop >& _pop); void run_ea(eoAlgo >& _ga, eoPop >& _pop); // end of parameter input (+ .status + help) // that one is not templatized, but is here for completeness void make_help(eoParser & _parser); #endif