How to detect problematic part of the code

2 visualizzazioni (ultimi 30 giorni)
Clarisha Nijman
Clarisha Nijman il 16 Gen 2019
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);

Risposte (0)

Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by