Package org.uncommons.watchmaker.framework.selection

Examples of org.uncommons.watchmaker.framework.selection.RouletteWheelSelection


    public void testElitism()
    {
        SteadyStateEvolutionEngine<Integer> steadyState = new SteadyStateEvolutionEngine<Integer>(new StubIntegerFactory(),
                                                                                                  new IntegerAdjuster(10),
                                                                                                  new NullFitnessEvaluator(),
                                                                                                  new RouletteWheelSelection(),
                                                                                                  1,
                                                                                                  true,
                                                                                                  FrameworkTestUtils.getRNG());
        @SuppressWarnings("unchecked")
        List<EvaluatedCandidate<Integer>> population = Arrays.asList(new EvaluatedCandidate<Integer>(1, 1),
View Full Code Here


      innerPanel.add(generationsSpinner);
     
      selectionLabel = new JLabel("Selection Strategy: ");
      innerPanel.add(selectionLabel);
     
      SelectionStrategy<?>[] selectionStrategies = {new RankSelection(), new RouletteWheelSelection(),
                                                    new StochasticUniversalSampling(),
                                                    new TournamentSelection(new Probability(0.95)),
                                                    new TruncationSelection(0.5)};
     
      selectionCombo = new JComboBox(selectionStrategies);
View Full Code Here

TOP

Related Classes of org.uncommons.watchmaker.framework.selection.RouletteWheelSelection

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.