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).
Namespace: RSGeneticAlgorithm
Delphi |
public |
Parameters
GAXML
Type: IXMLGeneticAlgorithm
Reference•RSGeneticAlgorithm.TRSCustomGeneticAlgorithm.LoadFromXML(IXMLGADomainType) •TRSCustomGeneticAlgorithm.SaveToML(IXMLGADomainType) •RSGeneticAlgorithm.TRSCustomGeneticAlgorithm.LoadFromXML(IXMLGeneticAlgorithm) •RSGeneticAlgorithm.TRSCustomGeneticAlgorithm.SaveToXML(IXMLGeneticAlgorithm) •SaveToFile •RSGeneticAlgorithm.TRSCustomGeneticAlgorithm.SaveToStream(TStream) |