matrix is close to singular or badly scaled, what do you interpret by this error.

조회 수: 1 (최근 30일)
Abhinav
Abhinav 2017년 7월 21일
댓글: Matt J 2017년 7월 21일
I am using MatLab solver 'fmincon' for an optimization problem. Everything seems to be working good except I got one error warning:
matrix is close to singular or badly scaled. Results may be inaccurate.
RCOND = 1.722247e-17.
My objective function is following:
objective = 0.5*sum(log(sigma2(ind))) + 0.5*(y-yhat)*(S\(y-yhat)');
where S is the matrix with singularity problems. My question is that how do I interpret the final solution If I got this warning. Should I discard this solution or keep it? What are probable solution for improving this situation. I have tried the suggestions on other questions such as using backslash instead of 'inv'. But nothing seems to work.
  댓글 수: 1
Matt J
Matt J 2017년 7월 21일
Why are you using a singular S? I would think that fixing the singularity problems would be the best solution.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Least Squares에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by