GaExponentialScaling
operation calculates scaled fitness value of chromosome by raising fitness value to specified power which is defined by scale factor in parameters. This scaling operation is not based on ranking of chromosome and use GaScaleFactor class for 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. |
GaExponentialScaling
operation calculates scaled fitness value of chromosome by raising fitness value to specified power which is defined by scale factor in parameters. This scaling operation is not based on ranking of chromosome and use GaScaleFactor class for 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::GaExponentialScaling::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::GaExponentialScaling::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::GaExponentialScaling::NeedRescaling | ( | const GaPopulation & | population, | |
const GaScalingParams & | parameters | |||
) | const [virtual] |
More details are given in specification of GaScalingOperation::NeedRescaling method.
This method is thread-safe.
Implements Population::GaScalingOperation.
virtual GaParameters* GACALL Population::ScalingOperations::GaExponentialScaling::MakeParameters | ( | ) | const [inline, virtual] |
More details are given in specification of GaOperation::MakeParameters method.
This method is thread-safe.
Implements Common::GaOperation.
virtual bool GACALL Population::ScalingOperations::GaExponentialScaling::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.