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