Hide Comments
Hide Comments

Comments (0)

expandingMethods

 

Name

Description

public method

Assign(TPersistent)

Represents method Assign(TPersistent). (Overrides RSGeneticBase.TRSCustomGeneticComponent.Assign(TPersistent).)

protected method

CreateGenes(TRSGeneClass)

Creates the Genes collection

protected method

CreatePopulation(TRSIndividualClass)

Creates the population collection (Overrides RSGeneticBase.TRSCustomGeneticComponent.CreatePopulation(TRSIndividualClass).)

protected method

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).)

protected method

DoInitialize

Performs the actual initialization of the Population before evolution occurs.

The method returns number of duplicates fixed.

protected method

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).)

protected method

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).)

protected method

GeneNotify(TRSGAGene,TCollectionNotification)

Called when a gene is added or deleted

protected method

GenesSizeChange

Called when the size of the entire genome has changed

protected method

GeneUpdate(TRSGAGene)

Called when a gene is changed

public method

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).)

public method

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).)

public method

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.
 

public method

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).
 

protected method

PopulationNotify(TRSIndividual,TCollectionNotification)

Called when an individual is added or removed from the   Population (Overrides RSGeneticBase.TRSCustomGeneticComponent.PopulationNotify(TRSIndividual,TCollectionNotification).)

public method

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).)

public method

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.
 

public method

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).
 

Top

Comments (0)