public void computeRoutes() { //RandomSearch randomSearcher = new RandomSearch (); //solution = randomSearcher.computeRoutes (1000); GeneticSearch geneticSearch = new GeneticSearch(100); solution = geneticSearch.computeRoutes(10000); solution.debugSolution(); }
public bool testFitness() { Chromosome c1 = new Chromosome(new int[] { 4, 0, 1, 2, 5, 3 }); VRPsolution csol = c1.buildSolution(); csol.debugSolution(); // Debug.Log (csol); //Chromosome c1 = new Chromosome (); Debug.Log("Fitness: " + c1.getFitness()); return(true); }