Thread Subject: LSQCURVEFIT feedback

Subject: LSQCURVEFIT feedback

From: Hugh

Date: 16 Nov, 2009 12:19:02

Message: 1 of 3

Hi there,

I am running an optimisation that has now been running for 2 days!

It is a mammoth calculation so it may be that things are still progressing well, but I would like to know if there is a way to check what stage the optimisation is at in terms of the the number of function evals/iterations carried out.

Is is possible to get this while the optimsation is still running?

Hugh

Subject: LSQCURVEFIT feedback

From: John D'Errico

Date: 16 Nov, 2009 12:34:02

Message: 2 of 3

"Hugh " <h_a_patience@hotmail.com> wrote in message <hdrfvm$1c7$1@fred.mathworks.com>...
> Hi there,
>
> I am running an optimisation that has now been running for 2 days!
>
> It is a mammoth calculation so it may be that things are still progressing well, but I would like to know if there is a way to check what stage the optimisation is at in terms of the the number of function evals/iterations carried out.
>
> Is is possible to get this while the optimsation is still running?
>
> Hugh

Not at this point, no.

John

Subject: LSQCURVEFIT feedback

From: Steve

Date: 16 Nov, 2009 16:05:20

Message: 3 of 3

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hdrgrq$oa7$1@fred.mathworks.com>...
> "Hugh " <h_a_patience@hotmail.com> wrote in message <hdrfvm$1c7$1@fred.mathworks.com>...
> > Hi there,
> >
> > I am running an optimisation that has now been running for 2 days!
> >
> > It is a mammoth calculation so it may be that things are still progressing well, but I would like to know if there is a way to check what stage the optimisation is at in terms of the the number of function evals/iterations carried out.
> >
> > Is is possible to get this while the optimsation is still running?
> >
> > Hugh
>
> Not at this point, no.
>
> John

John is correct, you're kinda out of luck at the moment.

If lsqcurvefit ever quits (or you kill it, as terrible as that would be) and you muster up the courage to start it on another two computational run, you could try turning on its iterative display or using an OutputFcn.

The iterative display may be too much info for you, although it does report the iteration and function eval counts:
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/f12687.html

OutputFcns are functions you code which allow you to programmatically check on quantities such as number of iterations and function counts. You can do whatever you like with these quantities, so perhaps you can periodically report the command line or a file??? See here for more info:
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/brhkghv-56.html

Good luck with that fitting.
-Steve

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
optimization Steve Grikschat 16 Nov, 2009 11:09:08
feedback while ... Hugh 16 Nov, 2009 07:24:04
lsqcurvefit Hugh 16 Nov, 2009 07:24:03
rssFeed for this Thread

Contact us at files@mathworks.com