Hide Comments
Hide Comments

TRSGAGenes.SaveToXML(IXMLGenes,TRSGAIndividual) Method

Comments (0)

Saves the specific individual's chromosome values to the XML parameter.

Namespace: RSGeneticAlgorithm

expandingSyntax

Delphi

public
  procedure SaveToXML( const GenesXML: IXMLGenes; const Item: TRSGAIndividual ); overload; virtual;
 

Parameters

GenesXML

Type: IXMLGenes

Item

Type: TRSGAIndividual

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)