![]() |
Ultra 0.9.4
|
Public Attributes | |
| std::size_t | code_length {0} |
| double | p_address {1.0} |
| 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.
| 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.