/// <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); } }
/// <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); }