lsqnonlin for double summation cost function

12 ビュー (過去 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 Center および File ExchangeSolver 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