public Individual(int[] topology, int numberOfEvaluations, MetaHeuristic.MutationType mutation) { foreach (int size in topology) { totalSize *= size; } this.topology = topology; fitness = 0.0f; maxNumberOfEvaluations = numberOfEvaluations; evaluations = new List <float>(numberOfEvaluations); evaluated = false; completedEvaluations = 0; genotype = new float[totalSize]; this.mutation = mutation; }
public HillClimberIndividual(int[] topology, int numberOfEvaluations, MetaHeuristic.MutationType mutation) : base(topology, numberOfEvaluations, mutation) { }