예제 #1
0
 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;
 }
예제 #2
0
 public HillClimberIndividual(int[] topology, int numberOfEvaluations, MetaHeuristic.MutationType mutation) : base(topology, numberOfEvaluations, mutation)
 {
 }