예제 #1
0
 /// <summary>
 /// Trace fitness progress of optimization run.
 /// </summary>
 /// <param name="iteration">Iteration number.</param>
 /// <param name="fitness">Best-found fitness for this optimization run.</param>
 protected void Trace(int iteration, double fitness, bool feasible)
 {
     if (FitnessTrace != null)
     {
         FitnessTrace.Add(iteration, fitness, feasible);
     }
 }
예제 #2
0
 /// <summary>
 /// Trace fitness progress of optimization run.
 /// </summary>
 /// <param name="iteration">Iteration number.</param>
 /// <param name="fitness">Best-found fitness for this optimization run.</param>
 protected void Trace(int iteration, double fitness, bool feasible)
 {
     FitnessTrace?.Add(iteration, fitness, feasible);
 }