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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by