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

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 日

0 投票

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.

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

カテゴリ

ヘルプ センター および File ExchangeProblem-Based Optimization Setup についてさらに検索

質問済み:

2018 年 11 月 9 日

編集済み:

2018 年 11 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by