lsqnonlin for double summation cost function

조회 수: 13 (최근 30일)
ar
ar 2020년 8월 23일
편집: Matt J 2020년 8월 24일
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!

채택된 답변

Matt J
Matt J 2020년 8월 24일
편집: Matt J 2020년 8월 24일
No, your objective function is allowed to return a residual array of any dimension.
  댓글 수: 2
ar
ar 2020년 8월 24일
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 2020년 8월 24일
편집: Matt J 2020년 8월 24일
That's fine. There's nothing more you need to do. The shape of your residual array output is absolutely not relevant to anything.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by