ECF 1.5
FitnessMax.h
1#ifndef FitnessMax_h
2#define FitnessMax_h
3
4#include "Fitness.h"
5
12class FitnessMax : public Fitness
13{
14public:
16 { }
17 bool isBetterThan(FitnessP other);
18 void write(XMLNode&);
20};
21typedef boost::shared_ptr<FitnessMax> FitnessMaxP;
22
23#endif // FitnessMax_h
Fitness base class.
Definition: Fitness.h:16
Fitness for maximization problems.
Definition: FitnessMax.h:13
bool isBetterThan(FitnessP other)
Mandatory comparison operator.
Definition: FitnessMax.cpp:6
FitnessMax * copy()
object copy (for duplication of an individual)
Definition: FitnessMax.cpp:12
void write(XMLNode &)
Write fitness object to XMLNode.
Definition: FitnessMax.cpp:19