How come fsolve fails to find a solution when the problem script returns the Jacobian (but works when no jacobian is returned) ?
1 次查看(过去 30 天)
显示 更早的评论
I am attempting to solve a system of nonlinear equations. My function script returns the Residual as well as the Jacobian with respect to the solution vector.
Fsolve is able to solve the equation when no Jacobian is returned (i.e only residual is returned) but fails when the jacobian is included. My jacobian is correct. I have compared it to numerically computed jacobian.
How is this possible? The error message says "the problem is locally singular". Which does not make sense since fsolve already solved it.
1 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!