Turned bonary_value into the onemax (not pow that exploded for even only
moderately small size of genome!) Turned it into a double (it was a float) as floats are dead and should dissappear
This commit is contained in:
parent
f41cd957c0
commit
d686b37c1f
4 changed files with 11 additions and 19 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <iostream>
|
||||
|
||||
#include <ga/make_ga.h>
|
||||
#include <eoEvalFuncPtr.h>
|
||||
#include "binary_value.h"
|
||||
#include <apply.h>
|
||||
|
||||
|
|
@ -21,7 +22,7 @@ int main(int argc, char* argv[])
|
|||
//////////////////////////////////////////////////////
|
||||
|
||||
// The evaluation fn - encapsulated into an eval counter for output
|
||||
eoEvalFuncPtr<EOT, float> mainEval( binary_value<EOT> );
|
||||
eoEvalFuncPtr<EOT, double> mainEval( binary_value<EOT> );
|
||||
eoEvalFuncCounter<EOT> eval(mainEval);
|
||||
|
||||
// the genotype - through a genotype initializer
|
||||
|
|
|
|||
Reference in a new issue