examples.dlife.ga.maxones
Class MaxOnesExperiment
java.lang.Object
examples.dlife.ga.maxones.MaxOnesExperiment
public class MaxOnesExperiment
- extends Object
Uses the dlife.ga package to solve the "Max Ones" problem. This
program evolves a dlife.ga.Population of
dlife.ga.Individuals, each composed of 100
dlife.ga.BitGene genes with fitness evaluated as the number of 1
genes and individual possesses.
To run this example double click the dLifeDist/UserScripts/RunExample file (Mac/Linux)
or the dLifeDist/UserScripts/RunExample.bat file (Windows) and enter the
example name:
examples.dlife.ga.maxones.MaxOnesExperiment
The source code for this class is contained in the file:
- Version:
- Jan 7, 2007
- Author:
- Grant Braught, Dickinson College
- See Also:
dlife.ga,
Individual,
BitGene,
RouletteWheel,
FixedPointMutation,
OnePointCrossover,
FixedSizePopulation,
MinFitnessTracker,
AveFitnessTracker,
MaxFitnessTracker
|
Method Summary |
static void |
main(String[] args)
Run the MaxOnesExperiment. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxOnesExperiment
public MaxOnesExperiment()
main
public static void main(String[] args)
- Run the MaxOnesExperiment.
- Parameters:
args - none