September 2018
Intermediate to advanced
328 pages
10h 46m
English
Dimension size is used within the main loop (the final inner loop) to process the optimization for the function selected. 2 is the default value:
![]()
The relevant code is as follows:
// Main Loopfor (int iter = 1; iter < maxIter; iter++){for (int i = 0; i < SwarmSize; i++){for (int j = 0; j < dimSize; j++)
Read now
Unlock full access