#include <D:/Temp/vs/gal/source/Operation.h>
Inherited by Algorithm::GaStopCriteria, Chromosome::GaCrossoverOperation, Chromosome::GaFitnessComparator, Chromosome::GaFitnessOperation, Chromosome::GaMutationOperation, Population::GaCouplingOperation, Population::GaReplacementOperation, Population::GaScalingOperation, and Population::GaSelectionOperation.
Public Member Functions | |
virtual GaParameters *GACALL | MakeParameters () const =0 |
Allocates memory and makes corresponding operation's parameters object on heap. | |
virtual bool GACALL | CheckParameters (const GaParameters ¶meters) const =0 |
Method checks correctness of parameters. |
virtual GaParameters* GACALL Common::GaOperation::MakeParameters | ( | ) | const [pure virtual] |
Allocates memory and makes corresponding operation's parameters object on heap.
Caller is responsible for allocated memory, freeing of new object should be done by delete keyword. User-defined operation classes inherited by built-in classes should override this method to perform creation of custom operation's parameters objects.
Implemented in Chromosome::GaFitnessComparator, Population::CouplingOperations::GaSimpleCoupling, Population::CouplingOperations::GaCrossCoupling, Population::CouplingOperations::GaInverseCoupling, Population::CouplingOperations::GaRandomCoupling, Population::CouplingOperations::GaBestAlwaysCoupling, Chromosome::CrossoverOperations::GaMultiValueCrossover, Chromosome::CrossoverOperations::GaAddCrossover, Chromosome::CrossoverOperations::GaSubCrossover, Chromosome::CrossoverOperations::GaMidpointCrossover, Chromosome::MutationOperations::GaFlipMutation, Chromosome::MutationOperations::GaInvertMutation, Chromosome::MutationOperations::GaSwapMutation, Population::ReplacementOperations::GaReplaceWorst, Population::ReplacementOperations::GaReplaceRandom, Population::ReplacementOperations::GaReplaceParents, Population::ReplacementOperations::GaReplaceBest, Population::ScalingOperations::GaWindowScaling, Population::ScalingOperations::GaExponentialScaling, Population::ScalingOperations::GaLinearScaling, Population::ScalingOperations::GaNormalizationScaling, Population::SelectionOperations::GaSelectBest, Population::SelectionOperations::GaSelectRandom, Population::SelectionOperations::GaSelectRandomBest, Population::SelectionOperations::GaSelectRouletteWheel, Population::SelectionOperations::GaSelectTournament, Population::SelectionOperations::GaSelectWorst, Algorithm::StopCriterias::GaGenerationCriteria, Algorithm::StopCriterias::GaFitnessCriteria, and Algorithm::StopCriterias::GaFitnessProgressCriteria.
virtual bool GACALL Common::GaOperation::CheckParameters | ( | const GaParameters & | parameters | ) | const [pure virtual] |
Method checks correctness of parameters.
parameters | constant reference to parameters' object on which correctness checking is performed. |
true
if parameters are correct, otherwise it returns false
.Implemented in Chromosome::GaFitnessComparator, Population::CouplingOperations::GaSimpleCoupling, Population::CouplingOperations::GaCrossCoupling, Population::CouplingOperations::GaInverseCoupling, Population::CouplingOperations::GaRandomCoupling, Population::CouplingOperations::GaBestAlwaysCoupling, Chromosome::CrossoverOperations::GaMultiValueCrossover, Chromosome::CrossoverOperations::GaAddCrossover, Chromosome::CrossoverOperations::GaSubCrossover, Chromosome::CrossoverOperations::GaMidpointCrossover, Chromosome::MutationOperations::GaFlipMutation, Chromosome::MutationOperations::GaInvertMutation, Chromosome::MutationOperations::GaSwapMutation, Population::ReplacementOperations::GaReplaceWorst, Population::ReplacementOperations::GaReplaceRandom, Population::ReplacementOperations::GaReplaceParents, Population::ReplacementOperations::GaReplaceBest, Population::ScalingOperations::GaWindowScaling, Population::ScalingOperations::GaExponentialScaling, Population::ScalingOperations::GaLinearScaling, Population::ScalingOperations::GaNormalizationScaling, Population::SelectionOperations::GaSelectBest, Population::SelectionOperations::GaSelectRandom, Population::SelectionOperations::GaSelectRandomBest, Population::SelectionOperations::GaSelectRouletteWheel, Population::SelectionOperations::GaSelectTournament, Population::SelectionOperations::GaSelectWorst, Algorithm::StopCriterias::GaGenerationCriteria, Algorithm::StopCriterias::GaFitnessCriteria, and Algorithm::StopCriterias::GaFitnessProgressCriteria.