GaWindowScaling
operation calculates scaled fitness value of chromosome by subtracting fitness value of worst chromosome from fitness value of chromosome which is scaled. This operation can work with minimization or maximization of fitness values, as well as negative fitness values. This scaling operation is not based on ranking of chromosome and doesn't require any parameters.
More...
#include <D:/Temp/vs/gal/source/ScalingOperations.h>
Inherits Population::GaScalingOperation.
Public Member Functions | |
virtual GAL_API float GACALL | operator() (const GaScaledChromosome &chromosome, const GaPopulation &population, const GaScalingParams ¶meters) const |
More details are given in specification of GaScalingOperation::operator () method. | |
virtual bool GACALL | IsRankingBased () const |
More details are given in specification of GaScalingOperation::IsRankingBased method. | |
virtual GAL_API bool GACALL | NeedRescaling (const GaPopulation &population, const GaScalingParams ¶meters) const |
More details are given in specification of GaScalingOperation::NeedRescaling method. | |
virtual GaParameters *GACALL | MakeParameters () const |
More details are given in specification of GaOperation::MakeParameters method. | |
virtual bool GACALL | CheckParameters (const GaParameters ¶meters) const |
More details are given in specification of GaOperation::CheckParameters method. |
GaWindowScaling
operation calculates scaled fitness value of chromosome by subtracting fitness value of worst chromosome from fitness value of chromosome which is scaled. This operation can work with minimization or maximization of fitness values, as well as negative fitness values. This scaling operation is not based on ranking of chromosome and doesn't require any parameters.
This class has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class. Because this genetic operation is stateless all public method are thread-safe.
float Population::ScalingOperations::GaWindowScaling::operator() | ( | const GaScaledChromosome & | chromosome, | |
const GaPopulation & | population, | |||
const GaScalingParams & | parameters | |||
) | const [virtual] |
More details are given in specification of GaScalingOperation::operator () method.
This method is thread-safe.
Implements Population::GaScalingOperation.
virtual bool GACALL Population::ScalingOperations::GaWindowScaling::IsRankingBased | ( | ) | const [inline, virtual] |
More details are given in specification of GaScalingOperation::IsRankingBased method.
This method is thread-safe.
false
.Implements Population::GaScalingOperation.
bool Population::ScalingOperations::GaWindowScaling::NeedRescaling | ( | const GaPopulation & | population, | |
const GaScalingParams & | parameters | |||
) | const [virtual] |
More details are given in specification of GaScalingOperation::NeedRescaling method.
This method is thread-safe.
true
if the fitness value of the worst chromosomes in population has changed.Implements Population::GaScalingOperation.
virtual GaParameters* GACALL Population::ScalingOperations::GaWindowScaling::MakeParameters | ( | ) | const [inline, virtual] |
More details are given in specification of GaOperation::MakeParameters method.
This method is thread-safe.
NULL
.Implements Common::GaOperation.
virtual bool GACALL Population::ScalingOperations::GaWindowScaling::CheckParameters | ( | const GaParameters & | parameters | ) | const [inline, virtual] |
More details are given in specification of GaOperation::CheckParameters method.
This method is thread-safe.
true
.Implements Common::GaOperation.