Examples of TruncationSelection


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

     */
    @Test(expectedExceptions = IllegalArgumentException.class)
    public void testNoEvolution()
    {
        new EvolutionaryTravellingSalesman(data,
                                           new TruncationSelection(0.5),
                                           10,
                                           0,
                                           3,
                                           false,
                                           false); // Should throw an IllegalArgumentException as no operators are enabled.
View Full Code Here

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

      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);
      selectionCombo.setRenderer(new DefaultListCellRenderer() {
        @Override
        public Component getListCellRendererComponent(JList list,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.