Population::ScalingOperations::GaExponentialScaling Class Reference

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.

List of all members.

Public Member Functions

virtual GAL_API float GACALL operator() (const GaScaledChromosome &chromosome, const GaPopulation &population, const GaScalingParams &parameters) 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 &parameters) 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 &parameters) const
 More details are given in specification of GaOperation::CheckParameters method.


Detailed Description

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.


Member Function Documentation

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.

Returns:
This method returns 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.

Returns:
Method returns true if scale factor in operation parameters has changed.

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.

Returns:
Method returns new instance of GaScaleFactorParams class.

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.

Returns:
Method always returns true.

Implements Common::GaOperation.


The documentation for this class was generated from the following files:

Genetic Algorithm Library
Coolsoft Software Development