public void EndUpdateCurrentGeneration() { _currentGeneration.EndUpdate(this); if (_bestChromoSome != _currentGeneration.BestChromoSome) { _bestChromoSome = _currentGeneration.BestChromoSome; BestChromosomeChanged?.Invoke(this, EventArgs.Empty); } }
/// <summary> /// Raises the best chromosome changed event. /// </summary> /// <param name="args">The event arguments.</param> protected virtual void OnBestChromosomeChanged(EventArgs args) { BestChromosomeChanged?.Invoke(this, args); }