Error In Optimization. "Supplied objective function must return a scalar value."

9 ビュー (過去 30 日間)
niket shah
niket shah 2018 年 11 月 9 日
編集済み: Matt J 2018 年 11 月 9 日
Hey, I am getting this error in my code. please check files. 1. "f_itera_c_4" 2. "chk"
Error: Supplied objective function must return a scalar value.

回答 (1 件)

Matt J
Matt J 2018 年 11 月 9 日
Chk.m does return a non-scalar when H>1.
  2 件のコメント
niket shah
niket shah 2018 年 11 月 9 日
Any fix for it.
Matt J
Matt J 2018 年 11 月 9 日
編集済み: Matt J 2018 年 11 月 9 日
Replace it with the scalar quantity that you are trying to minimize.

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

カテゴリ

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