Hide Comments
Hide Comments

Comments (0)

Defines the interface for a genetic programming component that can execute genetic programs as well as read and write them

noteNote

The IRSGeneticProgramEngine<T> is a generic interface. There can be multiple versions of this interface based on type T.

Namespace: RSGenerics.GeneticProgramEngine

expandingInheritance Hierarchy
expandingSyntax

Delphi

type
  IRSGeneticProgramEngine<T> = interface(IRSGeneticProgramReaderWriter)
  ['{1253496F-8C6A-42E3-9223-1E715CB9491A}']
  end;
 

Type Parameters

T

expandingProperties

 

Name

Description

public property

Instructions

Specifies the Instructions of the engine. This is the total set of functions and terminals (constants and variables) that a genetic program can perform. Every individual's genetic program in the engine shares these instructions.

Top

expandingMethods

 

Name

Description

public method

CreateInstructions(TCollectionItemClass)

Creates the   Instructions collection of the correct class type.

public method

CreateNode(TRSGPInstruction<T>,TRSGPNode<T>)

Creates the genetic program tree node of the specified type and initializes its   Instruction and   Parent properties.

public method

GetInstructions

Returns the   Instructions collection

public method

InstructionNotify(TRSGPInstruction<T>,Classes)

Handles engine changes when an instruction is added or removed

public method

InstructionOperationUpdate(TRSGPInstruction<T>)

Handles engine changes when an instruction's Operation is changed

public method

InstructionUpdate(TRSGPInstruction<T>)

Handles engine changes when an instruction updates

public method

LoadFromFile(string)

Load the genetic programming scenario from a file specified by the filename

alert_cautionWarning

A genetic programming reader/writer reads and writes the metadata about instructions (i.e., name, arity, comment) but does not actually read or write the OnExecute code themselves. After reading a genetic programming scenario, you need to add OnExecute event handlers to instructions.

alert_cautionImportant Note

When reading a genetic programming scenario, the reader will attempt to match currently existing instructions to instruction names in the scenario. IF an instruction is found, the instruction will be preserved (including its OnExecute event).

After reading the scenario, any previous instructions not found in the scenario will be deleted.

public method

LoadFromStream(TStream)

Load the genetic programming scenario from the stream

alert_cautionWarning

A genetic programming reader/writer reads and writes the metadata about instructions (i.e., name, arity, comment) but does not actually read or write the OnExecute code themselves. After reading a genetic programming scenario, you need to add OnExecute event handlers to instructions.

alert_cautionImportant Note

When reading a genetic programming scenario, the reader will attempt to match currently existing instructions to instruction names in the scenario. IF an instruction is found, the instruction will be preserved (including its OnExecute event).

After reading the scenario, any previous instructions not found in the scenario will be deleted.

public method

LoadFromXML(IXMLGeneticProgram)

Overloaded. Load the entire genetic programming scenario from the XML

alert_cautionWarning

A genetic programming reader/writer reads and writes the metadata about instructions (i.e., name, arity, comment) but does not actually read or write the OnExecute code themselves. After reading a genetic programming scenario, you need to add OnExecute event handlers to instructions.

alert_cautionImportant Note

When reading a genetic programming scenario, the reader will attempt to match currently existing instructions to instruction names in the scenario. IF an instruction is found, the instruction will be preserved (including its OnExecute event).

After reading the scenario, any previous instructions not found in the scenario will be deleted.

public method

LoadFromXML(IXMLGPDomainType)

Overloaded. Load the genetic programming domain (instructions, fittest individual, population) from the XML

alert_cautionWarning

A genetic programming reader/writer reads and writes the metadata about instructions (i.e., name, arity, comment) but does not actually read or write the OnExecute code themselves. After reading a genetic programming scenario, you need to add OnExecute event handlers to instructions.

alert_cautionImportant Note

When reading a genetic programming scenario, the reader will attempt to match currently existing instructions to instruction names in the scenario. IF an instruction is found, the instruction will be preserved (including its OnExecute event).

After reading the scenario, any previous instructions not found in the scenario will be deleted.

public method

LoadFromXML(IXMLGPInstructions)

Overloaded. Load the genetic programming instructions from the XML

alert_cautionWarning

A genetic programming reader/writer reads and writes the metadata about instructions (i.e., name, arity, comment) but does not actually read or write the OnExecute code themselves. After reading a genetic programming scenario, you need to add OnExecute event handlers to instructions.

alert_cautionImportant Note

When reading a genetic programming scenario, the reader will attempt to match currently existing instructions to instruction names in the scenario. IF an instruction is found, the instruction will be preserved (including its OnExecute event).

After reading the scenario, any previous instructions not found in the scenario will be deleted.

public method

MaxNodeArity

Returns the maximum node arity (number of children) allowed in the engine

public method

SaveToFile(string)

Saves the genetic programming scenario to a file specified by the filename

alert_cautionWarning

A genetic programming writer writes the metadata about instructions (i.e., name, arity, comment) but does not actually write the OnExecute code themselves.

public method

SaveToStream(TStream)

Saves the genetic programming scenario to a stream

alert_cautionWarning

A genetic programming writer writes the metadata about instructions (i.e., name, arity, comment) but does not actually write the OnExecute code themselves.

public method

SaveToXML(IXMLGeneticProgram)

Overloaded. Saves the genetic programming scenario to XML

alert_cautionWarning

A genetic programming writer writes the metadata about instructions (i.e., name, arity, comment) but does not actually write the OnExecute code themselves.

alert_cautionWarning

What parts of the genetic programming scenario that are written is up to the class implementation. For example, the TRSCustomGeneticProgrammingExecutor<T> does not save the population but only the fittest individual.

public method

SaveToXML(IXMLGPDomainType)

Overloaded. Saves the genetic programming domain (instructions, fittest individual, population) to XML

alert_cautionWarning

A genetic programming writer writes the metadata about instructions (i.e., name, arity, comment) but does not actually write the OnExecute code themselves.

alert_cautionWarning

What parts of the genetic programming scenario that are written is up to the class implementation. For example, the TRSCustomGeneticProgrammingExecutor<T> does not save the population but only the fittest individual.

public method

SaveToXML(IXMLGPInstructions)

Overloaded. Saves the genetic programming instructions to XML

alert_cautionWarning

A genetic programming writer writes the metadata about instructions (i.e., name, arity, comment) but does not actually write the OnExecute code themselves.

public method

SetInstructions(TRSGPInstructions<T>)

Sets the   Instructions property to the new instructions value

Top

expandingSee Also

Reference

TRSCustomGeneticProgramming<T>
TRSCustomGeneticProgrammingExecutor<T>

Comments (0)