|
Assign(TPersistent)
|
Represents method Assign(TPersistent). (Overrides RSGeneticBase.TRSCustomGeneticComponent.Assign(TPersistent).)
|
|
CreateGenes(TRSGeneClass)
|
Creates the Genes collection
|
|
CreatePopulation(TRSIndividualClass)
|
Creates the population collection (Overrides RSGeneticBase.TRSCustomGeneticComponent.CreatePopulation(TRSIndividualClass).)
|
|
DoCrossover(TRSIndividual,TRSIndividual,TRSIndividual,TRSIndividual)
|
Performs the actual crossover operation. The decision to crossover has already been decided by the time this method is called. (Overrides RSGeneticBase.TRSCustomGeneticComponent.DoCrossover(TRSIndividual,TRSIndividual,TRSIndividual,TRSIndividual).)
|
|
DoInitialize
|
Performs the actual initialization of the Population before evolution occurs.
The method returns number of duplicates fixed.
|
|
DoInvert(TRSIndividual)
|
Performs the actual inversion of the individual. The decision to invert the individual has already been made before calling this method. (Overrides RSGeneticBase.TRSCustomGeneticComponent.DoInvert(TRSIndividual).)
|
|
DoMutate(TRSIndividual)
|
Performs the actual mutation of the individual. The decision to mutat the individual has already been made before calling this method. (Overrides RSGeneticBase.TRSCustomGeneticComponent.DoMutate(TRSIndividual).)
|
|
GeneNotify(TRSGAGene,TCollectionNotification)
|
Called when a gene is added or deleted
|
|
GenesSizeChange
|
Called when the size of the entire genome has changed
|
|
GeneUpdate(TRSGAGene)
|
Called when a gene is changed
|
|
LoadFromFile(string)
|
Loads the entire genetic component from the XML file specified by the Filename parameter, including the Genes (genetic algorithms) or Instructions (genetic programming) and the Population. Use the LoadFromFile and SaveToFile methods to stream in and out the genetic component in XML format. The format of the XML is defined in the GeneticAlgorithm.xsd and GeneticProgramming.xsd schema files. (Overrides RSGeneticBase.TRSCustomGeneticComponent.LoadFromFile(string).)
|
|
LoadFromStream(TStream)
|
Loads the entire genetic component from the XML stream specified by the stream parameter, including the Genes (genetic algorithms) or Instructions (genetic programming) and the Population. Use the LoadFromStream and SaveToStream methods to stream in and out the genetic component in XML format. The format of the XML is defined in the GeneticAlgorithm.xsd and GeneticProgramming.xsd schema files. (Overrides RSGeneticBase.TRSCustomGeneticComponent.LoadFromStream(TStream).)
|
|
LoadFromXML(IXMLGADomainType)
|
Overloaded. Loads the Genes and the Population from the IXMLGADomainType interface. Use the LoadFromXML and SaveToXML methods to read and write only the Genes and Population to XML. The format of the XML is defined in the GeneticAlgorithm.xsd schema file. The TRSCustomGeneticAlgorithm component uses the RSGeneticAlgorithmXML.pas unit and its IXMLGADomainType interface to the XML.
Use the overloaded LoadFromXML and SaveToXML methods to read and write the entire TRSCustomGeneticAlgorithm component in XML.
|
|
LoadFromXML(IXMLGeneticAlgorithm)
|
Overloaded. Loads the entire genetic algorithm component from the IXMLGeneticAlgorithm interface, including the Genes and the Population. Use the LoadFromXML and SaveToXML methods to read and write the genetic algorithm component to XML. The format of the XML is defined in the GeneticAlgorithm.xsd schema file. The TRSCustomGeneticAlgorithm component uses the RSGeneticAlgorithmXML.pas unit and its IXMLGeneticAlgorithm interface to the XML.
Use the overloaded LoadFromXML and SaveToXML methods to only read and write the Genes and Population in XML (without the rest of the TRSCustomGeneticAlgorithm properties).
|
|
Mutate(TRSIndividual)
|
Mutates the DNA of the individual. Mutation for genetic algorithms means flipping the bits of the chromosome. For genetic programs, mutation means changing nodes of the program tree.
Note that mutation is not guaranteed to occur but is dependent on the MutationProbability. The function calls the OnMutation event and then DoMutate method.
The Mutate method is called by the Reproduce method. The function returns true if mutation occurred.
|
|
PopulationNotify(TRSIndividual,TCollectionNotification)
|
Called when an individual is added or removed from the Population (Overrides RSGeneticBase.TRSCustomGeneticComponent.PopulationNotify(TRSIndividual,TCollectionNotification).)
|
|
SaveToStream(TStream)
|
Saves the entire genetic component to the XML stream specified by the stream parameter, including the Genes (genetic algorithms) or Instructions (genetic programming) and the Population. Use the LoadFromFile and SaveToFile methods to stream in and out the genetic component in XML format. The format of the XML is defined in the GeneticAlgorithm.xsd and GeneticProgramming.xsd schema files. (Overrides RSGeneticBase.TRSCustomGeneticComponent.SaveToStream(TStream).)
|
|
SaveToXML(IXMLGADomainType)
|
Overloaded. Saves the Genes and the Population to the IXMLGADomainType interface. Use the LoadFromXML and SaveToXML methods to read and write only the Genes and Population to XML. The format of the XML is defined in the GeneticAlgorithm.xsd schema file. The TRSCustomGeneticAlgorithm component uses the RSGeneticAlgorithmXML.pas unit and its IXMLGADomainType interface to the XML.
Use the overloaded LoadFromXML and SaveToXML methods to read and write the entire TRSCustomGeneticAlgorithm component in XML.
|
|
SaveToXML(IXMLGeneticAlgorithm)
|
Overloaded. Saves the entire genetic algorithm component to the IXMLGeneticAlgorithm interface, including the Genes and the Population. Use the LoadFromXML and SaveToXML methods to read and write the genetic algorithm component to XML. The format of the XML is defined in the GeneticAlgorithm.xsd schema file. The TRSCustomGeneticAlgorithm component uses the RSGeneticAlgorithmXML.pas unit and its IXMLGeneticAlgorithm interface to the XML.
Use the overloaded LoadFromXML and SaveToXML methods to only read and write the Genes and Population in XML (without the rest of the TRSCustomGeneticAlgorithm properties).
|