How to detect problematic part of the code

1 回表示 (過去 30 日間)
Clarisha Nijman
Clarisha Nijman 2019 年 1 月 16 日
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 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by