MATLAB: Fmincon: Does ScaleProblem affect FiniteDiff​erenceStep​Size

finitedifferencestepsizefminconoptimizationOptimization Toolboxscaleproblem

Hi
I understand that the ScaleProblem option scales the objective and the constraints. But does it also affect the FiniteDifferenceStepSize?
If it doesn't affect the FiniteDifferenceStepSize, then is it better to scale the parameters manually if they have different scales?

Best Answer

No, ScaleProblem and FIniteDifferenceStepSize are unrelated. You can use TypicalX to inform the finite differencing of the typical magnitudes of the different unknown variables.
In my opinion, though, it is always good to manually scale the variables if you can so that the objective have similar second derivatives w.r.t. all the parameters near the optimal solution. This should improve problem conditioning, convergence speed, and finite differencing accuracy.