How to detect problematic part of the code
6 ビュー (過去 30 日間)
古いコメントを表示
Dear all,
in running my 300-lines code I encountered an error, saying that I do have nan inf in the input and I do not understand the underlying codes(functions). How can I determine which parameter of my code (fminimax) function causes that problem? Can somebody give me some feedback? thank you in advance. This is the error:
Error using svd
Input to SVD must not contain NaN or Inf.
Error in pinv (line 18)
[U,S,V] = svd(A,'econ');
Error in qpsub (line 462)
projSD = pinv(projH)*(-Zgf);
Error in nlconst (line 628)
= qpsub(HESS,gf,AN,-GT,[],[],XN,eq,-1, ...
Error in fminimax (line 492)
nlconst(ffun,xnew,l,u,full(A),B,full(Aeq),Beq,cfun,options,defaultopt, ...
Error in HomcChinFlagNewConvOneType4 (line 229)
[OptArgumShort, ~,~,exitflagShort] = fminimax(@(x)
CsShortParker*x,x0,AleqShortParker,bleqShortParker(:),AeqShortParker.',beqShortParker,lbShortParker,ubShortParker);
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!