In your case, problem dimension = number of variables = 125. number of solution =...
There's a method specifically for that: const float* bestSolution = optimizer.getBestSolution(0);...
YN: Fixing a bug with calling SolutionSet::getH...