Warning when runing fsolve
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I run fsolve, there's a warning:
Warning: Trust-region-dogleg algorithm of FSOLVE cannot handle non-square systems; using Levenberg-Marquardt algorithm instead.
> In fsolve at 303
Solver stopped prematurely.
fsolve stopped because it exceeded the function evaluation limit, options.MaxFunEvals = 1000 (the default value).
How can I fixed that? Thank you!
0 commentaires
Réponse acceptée
Shashank Prasanna
le 3 Fév 2013
The Warning is acceptable. If you are running the code I gave you, you already know it is not a SQUARE system.
As with all iterative problems, you will have to play around with Tolerances to achieve the results you want. Relax the MaxFunEvals that Walter mentioned using OPTIMSET:
I really really advise you read this since you are new to optimization in MATLAB:
3 commentaires
Shashank Prasanna
le 4 Fév 2013
options=optimset('Algorithm','Levenberg-Marquardt');
please see the documentation on optimset
Plus de réponses (1)
Walter Roberson
le 3 Fév 2013
Pass in an options structure that indicates the algorithm and MaxFunEvals that you want to use.
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!