필터 지우기
필터 지우기

i am trying to use fmincon for optimization problem i am getting below error

조회 수: 1 (최근 30일)
MAMATHA YADAVALLI
MAMATHA YADAVALLI 2018년 5월 24일
편집: Torsten 2018년 5월 25일
suppose my objective function named as objfun.m and i have to optimize four variables in that.i written objective function in that.and confun.m have the all the constraints.in my main function i called two functions.it shows error.
  댓글 수: 3
MAMATHA YADAVALLI
MAMATHA YADAVALLI 2018년 5월 25일
Error using fmincon (line 284) Row dimension of Aeq is inconsistent with length of beq.
Error in fig2_main (line 88) [alpha_opt,Q1e,Q2e,QR1e,fval] = fmincon(@objfun,alpha_opt,Q1e,Q2e,QR1e,[],[],[],[],[],[],@confuneq,options);
Torsten
Torsten 2018년 5월 25일
편집: Torsten 2018년 5월 25일
Use
[guess,fval] = fmincon(@objfun,x0,[],[],[],[],[],[],@confuneq, options);
instead of
[guess,fval] = fmincon(@objfun,x0,[],[],[],[],[],options,@confuneq);
Best wishes
Torsten.

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

답변 (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