Hide Comments
Hide Comments

Comments (0)

expandingMethods

 

Name

Description

public method

Assign(TPersistent)

Overloaded. Represents method Assign(TPersistent). (Overrides RSGeneticBase.TRSIndividual.Assign(TPersistent).)

public method

AssignDNA(TNode)

Replaces the current   DNA tree with the aDNA parameter. The old DNA tree is deleted and freed.

protected method

CreateDNA

Represents method CreateDNA.

public method

Crossover(TNode,TRSGPIndividual<T>,TNode)

Represents method Crossover(TNode,TRSGPIndividual<T>,TNode).

protected method

DoSelectNode(TNodeList,TGAFloat)

Overloaded. Represents method DoSelectNode(TNodeList,TGAFloat).

public method

Execute(TRSGPContext<T>)

Executes the individual's genetic program (     DNA) using the specified context. The Context provides program state information (including variable values).

The function returns a value of type T

public method

FlattenDNA

Flattens the DNA tree into a list of nodes. Used by the genetic programming component for various uses, such as selecting a node

You should not have to call the FlattenDNA method yourself.

public method

Graft(TNode,TNode)

Replaces old node with the new node. The old node and its children are NOT deleted or freed

public method

LoadFromXML(IXMLIndividualType)

Overloaded. Reads the individual from the XML node, including   DNA

public method

LoadFromXML(IXMLNode)

Overloaded. Reads the individual's data from the XML node (Overrides RSGeneticBase.TRSIndividual.LoadFromXML(IXMLNode).)

public method

SaveToXML(IXMLIndividualType)

Overloaded. Saves the individual to the XML node, including   DNA

public method

SaveToXML(IXMLNode)

Overloaded. Writes the individual's data to the XML node (Overrides RSGeneticBase.TRSIndividual.SaveToXML(IXMLNode).)

public method

SelectNode(Integer,Boolean)

Overloaded. Selects a random node from the   DNA program tree that does not exceed the Size or Depth limit (specified by the Limit parameter). The IsSizeLimit parameter controls which limit is used.

public method

SelectNode(TGAFloat)

Overloaded. Selects a random node from the   DNA program tree. The FunctionProbability parameter controls how much to prefer non-terminals (functions) over terminals (constants, variables, and functions with arity=0)

public method

SelectNode(TGAFloat,TGPGeneticInstructions)

Overloaded. Selects a random node from the   DNA program tree that is of the same instruction types as in the Instructions parameter. The FunctionProbability parameter controls how much to prefer non-terminals (functions) over terminals (constants, variables, and functions with arity=0)

public method

ToString

Returns a string representation of the individual, including its   DNA

Top

Comments (0)