GeneticAlgorithmIndividual

Description for class GeneticAlgorithmIndividual:

This object represents a single individual in a GeneticAlgorithm. To use the class GeneticAlgorithm, you must also implement a custom subclass of this class. Your custom subclass should contain the variables which will represent the genes for the genetic algorithm, and must also implement a few methods used for genetic operators.

At a very minimum, you must implement your own versions of the methods compute-fitness, copy and mutate. If you intend to use the crossover genetic operator, you must also implement the method crossover. If these methods are not implemented by your subclass, the object will trigger a runtime error.

Inherits from Object

Full API documentation for the class GeneticAlgorithmIndividual: