Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.

15 ビュー (過去 30 日間)
Kartik Loya
Kartik Loya 2019 年 3 月 7 日
コメント済み: Kartik Loya 2019 年 3 月 7 日
This is the quadrotor dynamic problem in which i am trying to minimise power and desired final distance error using fmincon. Can anyone help me in determining what is the problem inmy nonlinear constraints. Thank you. I have attatched files.
Error in nlc (line 16)
c(1:4*T,1) = X(20*(T+1)+1:20*(T+1)+4*T,1)+vb;
Error in fmincon (line 633)
[ctmp,ceqtmp] = feval(confcn{3},X,varargin{:});
Error in mainfcn (line 15)
X=fmincon(@obj,Xg,A,b,Aeq,beq,lb,ub,@nlc);
Caused by:
Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.
  2 件のコメント
Torsten
Torsten 2019 年 3 月 7 日
You must give a value to T in mainfcn.m before calling "fmincon".
Kartik Loya
Kartik Loya 2019 年 3 月 7 日
thank you. @Torsten.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeNonlinear Control についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by