[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lsqnonlin optimset display iter
From: |
Olaf Till |
Subject: |
Re: lsqnonlin optimset display iter |
Date: |
Thu, 23 Jan 2020 21:30:45 +0100 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Thu, Jan 23, 2020 at 02:40:00AM -0600, hydrantomat wrote:
> I am trying to solve an ODE and to fit the resulting function to measured
> data points with the lsqnonlin function. Variation of the parameter "k"
> should fit the function to the data points. This works quite well.
>
> However the optimset function does not display the iterations via
> optimset('Display','iter').
The current implentation of the algorithm doesn't generally print out
something at iteration starts even with this setting.
You can work around with the option "user_interaction" if you use
nonlin_residmin, or with the option "OutputFcn" if you use the
Matlab-compatibility wrapper lsqnonlin. Type (from the Octave prompt)
'optim_doc ("common optimization options")' for information on the
former and 'help lsqnonlin' for the latter.
Olaf
--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
signature.asc
Description: PGP signature