Borrar filtros
Borrar filtros

Warning of complex arguments and Armijo failure?

2 visualizaciones (últimos 30 días)
Uday padidela
Uday padidela el 22 de Sept. de 2014
Comentada: Matt J el 25 de Sept. de 2014
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

Respuestas (1)

Matt J
Matt J el 22 de Sept. de 2014
Editada: Matt J el 22 de Sept. de 2014
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 comentarios
Uday padidela
Uday padidela el 25 de Sept. de 2014
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 el 25 de Sept. de 2014
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.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by