There are nested loops, as a result, they call a function for calculating data, whose input parameters are 2 index parameters in loops. How can I maximize the parallelization of the passage through cycles? In fact, I have a complete search of two parameters.
double optResult = 0; double result = 0; for (int i = 5; i < 50; i = i + 5) { for (int j = 5; j < 50; j = j + 5) { if (i < j) { optResult = OptimStart(i,j); if (optResult > result) { result = optResult; } } } }