Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Problem with "lsqnonlin" function in matlab
Replies: 6   Last Post: Sep 10, 2011 8:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
fsalehi

Posts: 13
Registered: 8/30/11
Re: Problem with "lsqnonlin" function in matlab
Posted: Sep 1, 2011 3:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

spasmous <spasmous@gmail.com> wrote in message <d247a374-7fc4-4772-b19b-d800332e51cd@t30g2000prm.googlegroups.com>...
> On Aug 30, 12:34 am, "fsalehi " <fsal...@gmail.com> wrote:
> > I  have a problem with 'lsqnonlin' function in matlab. I used it to optimizing this function:
> >
> >     objfun = @(z) y - ( z(5).*exp(-z(1).*(t-z(7)).^2).*cos(2*pi.*z(2).*(t-z(7))+z(3)) + z(6).*exp(-z(1).*(t-z(8)).^2).*cos(2*pi.*z(2).*(t-z(8))+z(4)) );
> >
> > % y is my signal and I optimize a guassian pulse function for Model Base Estimation
> >
> > options = optimset(options, 'MaxFunEvals', 10000, 'TolX', 1e-3, 'TolFun', 1e-2, 'MaxIter', 800, 'LargeScale', 'on', 'LevenbergMarquardt', 'on', 'DiffMaxChange', 1e-7, 'DiffMinChange', 1e-10, 'Display', 'off', 'Diagnostics', 'off');
> >

>
> i would try Display 'iter' to see what is happening. TolFun seems kind
> of large and DiffMaxChange kind of small. Aslo I'm not sure
> LargeScale, LevMarq and bound constraints are all compatible either.


I'm not sure too. but I dont know what setting I should use?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.