MATLAB: Lsqnonlin for double summation cost function

bundle adjustmentlsqnonlinmathMATLABnonlinear optimizationoptimization

Hello,
I would like to use lsqnonlin to solve the Bundle Adjustment Problem. As you can see the objective function for this problem is defined using a double summation. It it possible to use lsqnonlin to express this type of problem? It seems as though it can only optimize over a single set of residuals instead of a sum (or double sum) of them.
Thanks!

Best Answer

No, your objective function is allowed to return a residual array of any dimension.
Related Question