コード例 #1
0
ファイル: Plugin.cs プロジェクト: mthalman/GenFx.NET
 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);
 }