Single iteration with lsqnonlin (or fsolve), only compute new X0
Afficher commentaires plus anciens
I want lsqnonlin (or fsolve) to only carry out one iteration, ie. compute the new X, and then stop. No further function evaluations.
So ideally I dont even want it to compute the new values of the objective function, but I definitely do not want extra function evaluations for the jacobian or first order optimality conditions at the new guess for X.
(My question is similar to an earlier question by me:
... but now function evaluations are even more expensive, and i want to use lsqnonlin, so i also dont know how to update X (which is easy for the Newton Raphson step if you know the Jacobian), so the suggestions made there dont help me for this case.
5 commentaires
Matt J
le 29 Juin 2023
Why not just use MaxIterations=1?
John D'Errico
le 29 Juin 2023
Do you just want to compute a jacobian at the start point? What does this possibly gain you? And why are you asking the very same question you already asked? Does asking it multiple times mean you will get better answers? What does one step of lsqnonlin possibly gain you?
Sargondjani
le 29 Juin 2023
Modifié(e) : Sargondjani
le 29 Juin 2023
Torsten
le 29 Juin 2023
But you loose all information about the Jacobian in the iteration point and it will take much more effort in recomputing it in the next call to lsqnonlin than to continue the iterations.
Sargondjani
le 29 Juin 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!