public static TSPGenotype randomGenotype(TSP problem) { TSPGenotype g = new TSPGenotype(problem); g.genotype = problem.randomSolutionInt(); return(g); }
public TSPGenotype(TSP problem) { this.problem = problem; this.genotype = problem.randomSolutionInt(); }