Single iteration with lsqnonlin (or fsolve), only compute new X0
Ältere Kommentare anzeigen
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 Kommentare
Matt J
am 29 Jun. 2023
Why not just use MaxIterations=1?
John D'Errico
am 29 Jun. 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
am 29 Jun. 2023
Bearbeitet: Sargondjani
am 29 Jun. 2023
Torsten
am 29 Jun. 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
am 29 Jun. 2023
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!