[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lsqnonlin optimset display iter
From: |
hydrantomat |
Subject: |
Re: lsqnonlin optimset display iter |
Date: |
Fri, 24 Jan 2020 01:00:03 -0600 (CST) |
Hello GoSim,
thank you for your answer. I tried to add the receiving parameters. Indeed I
got the number of iterations, but what I originally wanted to get was the
output in the command window for every Iteration. This works well with the
following example:
[x]=fminbnd('cos',3,4,optimset('TolX',1e-12,'Display','iter','MaxIter',6))
there I get the following.
Func-count x f(x) Procedure
1 3.61803 -0.88863 initial
2 3.23607 -0.99554 golden
3 3.13571 -0.99998 parabolic
4 3.14130 -1.00000 parabolic
5 3.14159 -1.00000 parabolic
6 3.14159 -1.00000 parabolic
I hope this will also be possible for lsqnonlin, because I need other
options of optimset as well (MaxIter,etc.). And I am not sure they are
working correctly if 'Display' does not.
Thanks in advance
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html