Пример #1
0
 private void Algorithm_FitnessEvaluated(object sender, EnvironmentFitnessEvaluatedEventArgs e)
 {
     this.OnFitnessEvaluated(e.Environment, e.GenerationIndex);
 }
Пример #2
0
 /// <summary>
 /// Raises the <see cref="FitnessEvaluated"/> event.
 /// </summary>
 /// <param name="e"><see cref="EnvironmentFitnessEvaluatedEventArgs"/> to be passed to the <see cref="FitnessEvaluated"/> event.</param>
 private void OnFitnessEvaluated(EnvironmentFitnessEvaluatedEventArgs e)
 {
     this.FitnessEvaluated?.Invoke(this, e);
 }