フィルターのクリア

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 Center および File ExchangeSolver 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