EvolutionSeedOptions

Options & Configuration · AiDotNet.Configuration

The starting points a program-evolution run begins from, expressed as plain source text.

For Beginners

Put your existing, working program here — even a slow or naive one. Evolution improves what it is given, so a reasonable starting program reaches a good answer far sooner than starting from nothing. Several entries are useful when you already have genuinely different approaches worth keeping apart, because the search will develop each of them instead of merging them into one.

How It Works

A search has to start somewhere. For a program-evolution run that somewhere is one or more complete programs, and this is the configuration-file-friendly way to supply them: every entry becomes one seed genome, in order. The typed counterpart, ConfigureEvolutionSeeds<TGenome>, takes genome objects instead and is what a caller with a custom genome type uses; this type exists so the same thing can be said in YAML, where a genome object cannot be written down but a program can.

Seeds configured here are added ahead of any already listed on ProgramEvolutionOptions.SeedPrograms, so a configuration file can extend a program’s built-in seeds rather than having to restate them. Duplicates are harmless: the engine recognises a repeated candidate and does not spend budget scoring it twice.

Constructors

Constructor Summary
EvolutionSeedOptions()

Properties

Property Summary
IList<string> ProgramSources { get; set; } Gets or sets the seed program sources, one per starting candidate.

Methods

Method Summary
EvolutionSeedOptions SnapshotAndValidate() Validates every entry and returns an independent copy.