필터 지우기
필터 지우기

Warning of complex arguments and Armijo failure?

조회 수: 2 (최근 30일)
Uday padidela
Uday padidela 2014년 9월 22일
댓글: Matt J 2014년 9월 25일
Hello everyone, Can anyone tell me what does this error mean?
Armijo failure, too many reductions
1.0e+04 *
0 2.6314 0 0 0
0.0001 2.2707 0.0001 0.0001 0.0002
0.0002 1.4105 0.0001 0.0001 0
0.0003 0.3922 0.0002 0.0000 0
0.0004 0.1087 0.0003 0.0000 0
0.0005 0.0368 0.0012 0.0000 0
0.0006 0.0132 0.0010 0.0000 0
0.0007 0.0055 0.0014 0.0000 0
0.0008 0.0053 0.0022 0.0001 0.0003
0.0009 0.0053 0.0007 0.0001 0.0019
Warning: Imaginary parts of complex X and/or Y arguments ignored > In myoz at 203

답변 (1개)

Matt J
Matt J 2014년 9월 22일
편집: Matt J 2014년 9월 22일
Not with any firm authority. You show no code, and the warning message you've shown is thrown by a function myoz() that isn't a stock MATLAB function.
However, it may help to know that the Armijo rule is used in some function minimization algorithms to search for a sufficiently large step downhill along some search direction. It involves trying successively smaller steps until a sufficient descent criterion is satisfied. The warning message seems to say that it has tried many more step reductions than it thinks should be required, and still not been able to satisfy the criterion.
The 2nd warning is letting you know that complex values are being generated somewhere. Since you are presumably minimizing a function, the function should be real-valued, so complex values are probably not what you want.
  댓글 수: 4
Uday padidela
Uday padidela 2014년 9월 25일
Okay I have nsoli and oz file .
[sol, it_hist, ierr] = nsoli(x,'oz',tol);
In the above line it shows that nsoli is a file with function oz and variable x and the tolerances.
If you i can send the codes could you help me to solve this error?
Matt J
Matt J 2014년 9월 25일
Do we even know that it's an error? The messages you've shown are just warnings. In any case, you can use
>>dbstop if warning
to trap the cause.

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

카테고리

Help CenterFile Exchange에서 Data Import에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by