Single iteration with lsqnonlin (or fsolve), only compute new X0
Mostra commenti meno recenti
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 Commenti
Matt J
il 29 Giu 2023
Why not just use MaxIterations=1?
John D'Errico
il 29 Giu 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
il 29 Giu 2023
Modificato: Sargondjani
il 29 Giu 2023
Torsten
il 29 Giu 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
il 29 Giu 2023
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Solver Outputs and Iterative Display in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!