feat add cache management to forges

- Disabled by default, because dangerous on statefull operators.
- More doc.
This commit is contained in:
Johann Dreo 2020-04-20 15:26:51 +02:00
commit 13d62d0445
2 changed files with 72 additions and 10 deletions

View file

@ -85,6 +85,11 @@ class eoAlgoFoundryEA : public eoAlgoFoundry<EOT>
eoAlgoFoundryEA( eoPopEvalFunc<EOT>& eval, size_t max_gen ) :
eoAlgoFoundry<EOT>(5),
index_of(),
continuators(true), // Always re-instanciate continuators, because they hold a state.
crossovers(false),
mutations(false),
selectors(false),
replacements(false),
_eval(eval),
_max_gen(max_gen)
{ }