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

조회 수: 12 (최근 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
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 CenterFile Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by