Package jcgp.backend.population

Examples of jcgp.backend.population.Population


    resources.setFunctionSet(new SymbolicRegressionFunctions());
  }

  @Before
  public void setUp() throws Exception {
    population = new Population(resources);
  }
View Full Code Here


  public void preinitialisedChromosomeTest() {
    // the original chromosome that will be cloned
    Chromosome oc = new Chromosome(resources);

    // initialise a population with a copy of it
    population = new Population(oc, resources);
    // check that the first parent chromosome is identical to, but not the same instance as, the one given
    assertTrue("Incorrect chromosome in population.", population.get(0).compareGenesTo(oc) && population.get(0) != oc);
  }
View Full Code Here

    setEvolutionaryStrategy(0);
    setMutator(0);
    setProblem(0);

    // create a new population
    population = new Population(resources);
  }
View Full Code Here

    if (resources.arity() < 1) {
      resources.println("[CGP] Error: arity is smaller than 1. Check that at least one function is enabled");
      return;
    }
    finished = false;
    population = new Population(resources);
    resetStatisticsValues();
    resources.setCurrentGeneration(1);
    resources.setCurrentRun(1);
    resources.println("*********************************************************");
    resources.println("[CGP] New experiment: " + problem.toString());
View Full Code Here

TOP

Related Classes of jcgp.backend.population.Population

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.