How to detect problematic part of the code

6 views (last 30 days)
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);

Answers (0)

Community Treasure Hunt

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

Start Hunting!