Agile Artificial Intelligence in Pharo by Alexandre Bergel

Agile Artificial Intelligence in Pharo by Alexandre Bergel

Author:Alexandre Bergel
Language: eng
Format: epub
ISBN: 9781484253847
Publisher: Apress


In particular, the algorithm can be run if it has a fitnessBlock, a createGeneBlock, and a numberOfGenes. Moreover, it should not have been previously run (i.e., the logs variable has to be empty).

When the engine is asked to perform a crossover operation, it simply delegates it to the operation object:GAEngine>>crossover: partnerA with: partnerB

"Perform a crossover operation between the two arguments"

^ crossoverOperator crossover: partnerA with: partnerB

Similarly, when the engine is asked to mutate an individual, it simply delegates it to the corresponding operator:GAEngine>>mutate: individual

"Mutate the child provided as an argument"

^ mutationOperator mutate: individual



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.