Documentation ¶
Index ¶
- func GetCrossover(rnd *rand.Rand, file *oo.File, parent1, parent2 *oo.Individual) (*oo.Individual, *oo.Individual)
- func GetMutation(rnd *rand.Rand, file *oo.File, parent *oo.Individual) *oo.Individual
- func GetParent(rnd *rand.Rand, maxScore int, generation []*oo.Individual, scoreSum int) *oo.Individual
- func Reproduce(rnd *rand.Rand, pos int, maxScore int, generation []*oo.Individual, ...)
- func Run(file *oo.File, initialSolution *oo.Individual, rnd *rand.Rand, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrossover ¶
func GetCrossover(rnd *rand.Rand, file *oo.File, parent1, parent2 *oo.Individual) (*oo.Individual, *oo.Individual)
Putting together the used non-terminals but not throwing any out for the first child and doing the opposite for the second child
func GetMutation ¶
func GetMutation(rnd *rand.Rand, file *oo.File, parent *oo.Individual) *oo.Individual
Mutation by flipping bits with a probability depending on the input size
func GetParent ¶
func GetParent(rnd *rand.Rand, maxScore int, generation []*oo.Individual, scoreSum int) *oo.Individual
Simple roulette wheel selection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.