fsolve: Is there a limit to how many equations can be solved?
8 views (last 30 days)
Show older comments
Hello, I would like to know what is the maximum number of equations that can be input into fsolve.
Thanks, Ben
0 Comments
Answers (2)
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.
0 Comments
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.
0 Comments
See Also
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!