diff options
author | Mike Buland <mike@xagasoft.com> | 2012-07-09 12:01:50 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2012-07-09 12:01:50 -0600 |
commit | 1f7c135934b6604c5409d4b6f34861105c0a64cb (patch) | |
tree | cc421e2e8620b72e202f0eddf2cd5f1478d3bc06 /src/fitnessfunction.h | |
parent | 40ee7ad5aeadeb9823e1cd6e1218a1999c608a65 (diff) | |
download | libgenetic-1f7c135934b6604c5409d4b6f34861105c0a64cb.tar.gz libgenetic-1f7c135934b6604c5409d4b6f34861105c0a64cb.tar.bz2 libgenetic-1f7c135934b6604c5409d4b6f34861105c0a64cb.tar.xz libgenetic-1f7c135934b6604c5409d4b6f34861105c0a64cb.zip |
It works well enough to solve polynomial maxima.
Diffstat (limited to '')
-rw-r--r-- | src/fitnessfunction.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ | |||
1 | #ifndef GENETIC_FITNESS_FUNCTION_H | ||
2 | #define GENETIC_FITNESS_FUNCTION_H | ||
3 | |||
4 | namespace Genetic | ||
5 | { | ||
6 | class Phenotype; | ||
7 | |||
8 | class FitnessFunction | ||
9 | { | ||
10 | public: | ||
11 | FitnessFunction(); | ||
12 | virtual ~FitnessFunction(); | ||
13 | |||
14 | virtual double operator()( Phenotype *pTest )=0; | ||
15 | }; | ||
16 | }; | ||
17 | |||
18 | #endif | ||