lsqnonlin for double summation cost function

12 visualizaciones (últimos 30 días)
ar
ar el 23 de Ag. de 2020
Editada: Matt J el 24 de Ag. de 2020
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!

Respuesta aceptada

Matt J
Matt J el 24 de Ag. de 2020
Editada: Matt J el 24 de Ag. de 2020
No, your objective function is allowed to return a residual array of any dimension.
  2 comentarios
ar
ar el 24 de Ag. de 2020
Thank you - do you mind expanding on how that would help my case?
I'm currently approaching this problem by just returning m*n components in my residual function.
Matt J
Matt J el 24 de Ag. de 2020
Editada: Matt J el 24 de Ag. de 2020
That's fine. There's nothing more you need to do. The shape of your residual array output is absolutely not relevant to anything.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by