Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var OnemaxABS = MaxABS(1)
OnemaxABS is a fitness function which returns the absolute difference in an environment from an environment of all ones.
Functions ¶
func AlternatingABS ¶
AlternatingABS is a fitness function which returns the best fitness for alternating ones and zeroes
func FourPeaks ¶
FourPeaks represents a problem where there are four explicit maxima in the search space and two of the maxima can hide the other two.
func OnemaxChance ¶
OnemaxChance is a fitness function which rolls rng on every value in an environment and returns the number of values which were not rolled under.
func Quadratic ¶
Quadratic is similar to Onemax, but specifically wants pairs of digits to be the same, and offers similar but not optimal fitness for pairs of 0s over pairs of 1s
func TrapABS ¶
TrapABS takes in the bitlength t of the trap trap fitnesses follow reward worse fitness for increasing numbers of ones in subgroups of the environment until all elements in the subgroup are one, at which point the reward the best fitness. A graph:
Good fitness | -
|-------- | ----------- | ---------- |------------------------------
Poor Fitness No ones More ones
Types ¶
This section is empty.