Single iteration with lsqnonlin (or fsolve), only compute new X0
Show older comments
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 Comments
Matt J
on 29 Jun 2023
Why not just use MaxIterations=1?
John D'Errico
on 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
on 29 Jun 2023
Edited: Sargondjani
on 29 Jun 2023
Torsten
on 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
on 29 Jun 2023
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display 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!