September 2018
Intermediate to advanced
328 pages
10h 46m
English
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, as follows:
for (int iter = iterN; iter < maxIter; iter++){
Update the progress bar value, as follows:
progressBarX1.Value = iter;if ...
Read now
Unlock full access