Package org.uncommons.watchmaker.framework.termination

Examples of org.uncommons.watchmaker.framework.termination.TargetFitness


                                                                                 new RouletteWheelSelection(),
                                                                                 new MersenneTwisterRNG());
        engine.addEvolutionObserver(new EvolutionLogger());
        return engine.evolve(100, // 100 individuals in the population.
                             5, // 5% elitism.
                             new TargetFitness(0, false));
    }
View Full Code Here


                                                                             new EvolutionPipeline<Node>(operators),
                                                                             evaluator,
                                                                             new RouletteWheelSelection(),
                                                                             new MersenneTwisterRNG());
        engine.addEvolutionObserver(new EvolutionLogger<Node>());
        return engine.evolve(1000, 5, new TargetFitness(0d, evaluator.isNatural()));
    }
View Full Code Here

                                                                                                   new MersenneTwisterRNG());
        engine.setSingleThreaded(true); // Performs better for very trivial fitness evaluations.
        engine.addEvolutionObserver(new EvolutionLogger<BitString>());
        return engine.evolve(100, // 100 individuals in each generation.
                             0, // Don't use elitism.
                             new TargetFitness(length, true)); // Continue until a perfect match is found.       
    }
View Full Code Here

                                                                               100,
                                                                               TimeUnit.MILLISECONDS));
                engine.addEvolutionObserver(statusBar);
                return engine.evolve(populationSize,
                                     eliteCount,
                                     new TargetFitness(0, false), // Continue until a perfect solution is found...
                                     abortControl.getTerminationCondition()); // ...or the user aborts.
            }


            @Override
View Full Code Here

TOP

Related Classes of org.uncommons.watchmaker.framework.termination.TargetFitness

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.