|
GeneticAlgorithm
0.5 (beta)
A python framework for rapid GA prototyping
|
Go to the source code of this file.
Classes | |
| class | GADemo.NumOnes |
| An evaluation operator that computes the number of ones in a segment whose data can be converted to binary using the bin() function. More... | |
Namespaces | |
| namespace | GADemo |
Variables | |
| GADemo.maximize = False | |
| This code runs only when this script is executed as main. | |
| tuple | GADemo.ch = Core.Genotype(segments=[GenotypeLibrary.BinaryChromosomeSegment(nBits=i*10) for i in range(1,4)]) |
| tuple | GADemo.p = Core.Population(schema=ch, popSize=100, genSize=20, maximize=maximize, mutation_probability=0.01) |
| tuple | GADemo.ga |