The following section details how our information is displayed once results have been obtained.
Plotting results
Playing back results
Once the swarm optimization is complete, the job of playing back the results comes to the forefront. Our main function in replaying plots is called PlaybackPlot. Let's discuss the function in detail:
private void PlaybackPlot()
{
Get our current iteration, as follows:
int iterN = GetCurrentIteration();
_Closing = false;
If we have played back all our points, then leave, as follows:
if (iterN >= maxIter)
return;
PlotStatusN = PlotStatus.Play;
Update the progress bar, as follows:
progressBarX1.Visible = true;
progressBarX1.Minimum = 0;
progressBarX1.Maximum = maxIter;
Go through all iterations...