GaMinFitnessComparator
can be used when objective of evolution is to minimize fitness value.
More...
#include <D:/Temp/vs/gal/source/FitnessComparators.h>
Inherits Chromosome::GaFitnessComparator.
Public Member Functions | |
virtual int GACALL | operator() (float fitness1, float fitness2) const |
Detailed description can be found in specification of GaFitnessComparator::operator (). |
GaMinFitnessComparator
can be used when objective of evolution is to minimize fitness value.
This class is abstract and has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class, but because all built-in crossover operations are stateless they are thread-safe.
virtual int GACALL Chromosome::FitnessComparators::GaMinFitnessComparator::operator() | ( | float | fitness1, | |
float | fitness2 | |||
) | const [inline, virtual] |
Detailed description can be found in specification of GaFitnessComparator::operator ().
Implements Chromosome::GaFitnessComparator.