fsolve: Is there a limit to how many equations can be solved?

8 views (last 30 days)
Hello, I would like to know what is the maximum number of equations that can be input into fsolve.
Thanks, Ben

Answers (2)

Matt J
Matt J on 22 Oct 2015
Edited: Matt J on 22 Oct 2015
Probably very much the same as the number of linear equations that can be solved using mldivide. Fsolve, like other nonlinear equation solvers, works by approximating the system by a sequence of linear equation systems of the same size.
Of course, it also depends on how well you optimize memory usage, e.g., if you use the 'Jacobian' option and supply a sparse Jacobian if applicable, or if you use 'JacobMult' or 'JacobPattern' when using the Trust Region algorithm.

John D'Errico
John D'Errico on 22 Oct 2015
There is no hard limit.
There are soft limits, mostly dependent on your tolerance for how long it will take. My guess is that time will be more of a factor here than memory.

Categories

Find more on Systems of Nonlinear Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!