How to detect problematic part of the code

조회 수: 2 (최근 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 CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by