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일
Chk.m does return a non-scalar when H>1.

댓글 수: 2

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 Exchange에서 Problem-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