Hide Comments
Hide Comments

Comments (0)

Saves every individual of the population and its chromosomes to the XML parameter.

Namespace: RSGenerics.GeneticProgramming

expandingSyntax

Delphi

public 
  procedure SaveToXML( const Node: IXMLNode ); overload; override; 
 

Parameters

Node

Type: IXMLNode

Overrides

TRSPopulation.SaveToXML(IXMLNode)
 

expandingExamples

The following example saves the gene descriptions and the population to a stream:

Delphi

procedure SaveToStream(const Stream: TStream);
 var
   GAXML: IXMLGeneticAlgorithm;
 begin
      GAXML := NewGeneticAlgorithm;
      RSGeneticAlgorithm1.Genes.SaveToXML( GAXML.Domain.GenoType );
      RSGeneticAlgorithm1.Population.SaveToXML( GAXML.Domain.Chromosomes );
     GAXML.OwnerDocument.SaveToStream(Stream);
 end;

expandingSee Also

Comments (0)