fmincon converges to solution using interior-point but not using sqp

조회 수: 3 (최근 30일)
Deepa Maheshvare
Deepa Maheshvare 2020년 3월 31일
댓글: Deepa Maheshvare 2020년 4월 2일
Hi All,
I am solving an optimization problem using fmincon. The solver converges to a solution using interior-point algorithm but fails when I use sqp.
line 9 in the file attached:
opts_fmin = optimoptions('fmincon','Display','iter', 'Algorithm', 'sqp-legacy'); %interior-point
Could someone help me in understanding why this happens?
The error that I get is in the computation of objective function after 70 iterations
Matrix dimensions must agree.
Error in cse_03_19_20/objfun (line 39)
f = sum((phi(:) - phi_tilde(:)).^2);
Error in evalObjAndConstr
Error in sqpLineSearch
MATLAB version used: 2020a
  댓글 수: 5
Deepa Maheshvare
Deepa Maheshvare 2020년 4월 1일
Would it help if I specify bounds on the control variables ? I want these values to be >0 , but I don't reaaly have upper bounds.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by