Some changes in names, before too many users have to modify their code :-)

Changed es.h in src/es into make_es.h (was ambiguous with src/es.h)
Changed the interface of make_genotype - now templatized by the EOT
and not the fitness - this is mandatory for ES genoptypes as it allows to
choose the type of gentype at run-time (from existing types, of course!)

Also moved make_help.cpp into utils dir (otherwise you'd had to maintain
a copy into each representation dir!).
This commit is contained in:
evomarc 2001-04-30 13:01:07 +00:00
commit d90286d890
13 changed files with 53 additions and 140 deletions

View file

@ -10,7 +10,6 @@ libga_a_SOURCES = make_algo_scalar_ga.cpp \
make_checkpoint_ga.cpp \
make_continue_ga.cpp \
make_genotype_ga.cpp \
make_help.cpp \
make_op_ga.cpp \
make_pop_ga.cpp \
make_run_ga.cpp

View file

@ -86,7 +86,8 @@ void run_ea(eoAlgo<eoBit<double> >& _ga, eoPop<eoBit<double> >& _pop);
void run_ea(eoAlgo<eoBit<eoMinimizingFitness> >& _ga, eoPop<eoBit<eoMinimizingFitness> >& _pop);
// end of parameter input (+ .status + help)
// that one is not templatized, but is here for the sake of completeness
// that one is not templatized
// Because of that, the source is in src/utils dir
void make_help(eoParser & _parser);
#endif

View file

@ -36,7 +36,7 @@
/////////////////// the bitstring ////////////////
/*
* This fuciont does the initialization of what's needed for a particular
* This fuction does the initialization of what's needed for a particular
* genotype (here, bitstrings).
* It could be here tempatied only on the fitness, as it can be used to evolve
* bitstrings with any fitness.
@ -55,7 +55,6 @@
* 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***
*/
template <class EOT>