singular matrix in fmincon

6 ビュー (過去 30 日間)
Dinant Kistemaker
Dinant Kistemaker 2015 年 7 月 22 日
編集済み: Matt J 2015 年 7 月 22 日
I get an warning for singularity with calling fmincon. I would like to know what is causing this, however the error occurs in a p-file making it hard to investigate:
Warning: Matrix is close to singular or badly scaled. Results may be
inaccurate. RCOND = 1.553382e-17.
> In backsolveSys (line 17)
In solveKKTsystem (line 15)
In computeTrialStep (line 66)
In barrier (line 357)
In fmincon (line 796)
In Call_Optimize (line 115)
What is computed in backsolveSys?

回答 (1 件)

Matt J
Matt J 2015 年 7 月 22 日
編集済み: Matt J 2015 年 7 月 22 日
It looks like it is solving an ill-condition linear system of equations, similar to the following
>> b=[1; 1e-16]; diag(b)\b
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate.
RCOND = 1.000000e-16.
ans =
1
1

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by