From a2679e3bc2f407fae6b97908aeebb215c6678ebc Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 17 Jul 2012 09:11:40 -0600 Subject: It all works multi-threaded. It restarts the threads every generation. Maybe not the worst thing every, but it seems like it would be better to stay in the thread and notify the main thread that they're done with that iteration. --- src/fitnessfunction.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fitnessfunction.h') diff --git a/src/fitnessfunction.h b/src/fitnessfunction.h index c41f733..0f852fa 100644 --- a/src/fitnessfunction.h +++ b/src/fitnessfunction.h @@ -12,6 +12,7 @@ namespace Genetic virtual ~FitnessFunction(); virtual double operator()( Phenotype *pTest )=0; + virtual FitnessFunction *clone() const=0; }; }; -- cgit v1.2.3