protected EncodedIndividual <Element> CreateIndividual(List <Element> genotype = null) { if (genotype == null) { genotype = generator.Create(Evaluation.iSize); } return(new EncodedIndividual <Element>(genotype, this.seed)); }
protected Individual <Element> CreateIndividual(List <Element> genotype = null) { if (genotype == null) { genotype = generator.Create(evaluation.iSize); } return(new Individual <Element>(genotype)); }
protected override bool RunIteration(long itertionNumber, DateTime startTime) { List <bool> solution = generator.Create(Evaluation.iSize); greedyOptimizer.setSolution(solution); greedyOptimizer.Run(); solution = greedyOptimizer.Result.BestSolution; return(CheckNewBest(solution, Evaluation.dEvaluate(solution))); }
private bool RunIteration(long itertionNumber, DateTime startTime) { List <double> solution = generator.Create(evaluation.iSize); return(CheckNewBest(solution, evaluation.tEvaluate(solution))); }
protected override bool RunIteration(long itertionNumber, DateTime startTime) { List <Element> solution = generator.Create(evaluation.iSize); return(CheckNewBest(solution, evaluation.dEvaluate(solution))); }