Optimizing nonlinear functions with size variant input arguments

4 ビュー (過去 30 日間)
Veniamin Stryzheus
Veniamin Stryzheus 2019 年 2 月 21 日
コメント済み: Matt J 2019 年 2 月 22 日
I am trying to use the fminsearch() function to create the optimization and I am getting the following error: "Assignment has more non-singleton rhs dimensions than non-singleton subscripts". Does anyone know what could be causing such an error?

採用された回答

Walter Roberson
Walter Roberson 2019 年 2 月 22 日
That error would happen if your objective function returns a non-scalar.
  2 件のコメント
Veniamin Stryzheus
Veniamin Stryzheus 2019 年 2 月 22 日
Yes, that was the problem. Thanks for the feedback and help!
Matt J
Matt J 2019 年 2 月 22 日
You should Accept-click Walter's answer to certify that it solved your problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by