From 1f7c135934b6604c5409d4b6f34861105c0a64cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 9 Jul 2012 12:01:50 -0600 Subject: It works well enough to solve polynomial maxima. --- src/fitnessfunction.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/fitnessfunction.h (limited to 'src/fitnessfunction.h') diff --git a/src/fitnessfunction.h b/src/fitnessfunction.h new file mode 100644 index 0000000..c41f733 --- /dev/null +++ b/src/fitnessfunction.h @@ -0,0 +1,18 @@ +#ifndef GENETIC_FITNESS_FUNCTION_H +#define GENETIC_FITNESS_FUNCTION_H + +namespace Genetic +{ + class Phenotype; + + class FitnessFunction + { + public: + FitnessFunction(); + virtual ~FitnessFunction(); + + virtual double operator()( Phenotype *pTest )=0; + }; +}; + +#endif -- cgit v1.2.3