Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::parameters::slp_parameters Struct Reference

Public Attributes

std::size_t code_length {0}
double p_address {1.0}

Member Data Documentation

◆ code_length

std::size_t ultra::parameters::slp_parameters::code_length {0}

The number of genes (maximum length of an evolved program in the population).

Code length have to be chosen before population is created and cannot be changed afterwards.

Note
A length of 0 means undefined (auto-tune).

◆ p_address

double ultra::parameters::slp_parameters::p_address {1.0}

Upper bound for the probability of referencing a preceding instruction.

An endpoint is sampled once per individual construction or mutation call from [0.1, p_address) when p_address > 0.1; otherwise p_address is used directly. At gene index i, the probability is the endpoint multiplied by i / code_length. A value of 0 disables addresses.


The documentation for this struct was generated from the following file: