/** * Extension of GeneticAlgorithm abstraction * * Original sketch by Aaron Steed: * - http://robotacid.com/PBeta/eye4anEye/ * * Genetic Algorithm Library by Aaron Steed: * - http://robotacid.com/PBeta/AILibrary/GA */ /* * 2010-02-12 subpixel v01: * - GeneticAlgorithm.setMutationRate() method replaced by direct access to mutationRate property * - GeneticAlgorithm.setSubInteger() method replaced by direct access to subInteger property */ class Soup extends GeneticAlgorithm{ Soup(){ super(6, 8, 0); // setMutationRate(0.1); mutationRate = 0.1; // setSubInteger(true); subInteger = true; } float scoreFitness(Chromosome o){ return 1.0; } }