JuliaNLSolvers / NLsolve.jl

Julia solvers for systems of nonlinear equations and mixed complementarity problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

x can become NaN

jwscook opened this issue · comments

I've found that x can become NaN during a run, but the solve is not terminated. This line

if !any(isnan, x_previous) && chebyshev(x, x_previous) <= xtol
appears to be related and seems to indicate that NaNs are acceptable, and presumably may turn back to regular numbers. Is this right?

I would not expect them to. That should stop if it sees NaN. I'm not sure why it's written like that. Thanks.

No probs 😄

#244 should fix this