Re: fmincon options playing
- From: John D'Errico <woodchips@xxxxxxxxxxxxxxxx>
- Date: Thu, 06 Apr 2006 13:52:54 GMT
In article <ef2ff48.-1@xxxxxxxxxxxxxxxx>, "Max Touzel" <mtouzel@xxxxxxxxxxx> wrote:
Hi,
I'm trying to make my fmincon optimization more efficient by playing
around with the options, ie. seeing how loose I can make them and
still get a good answer. There are 5 things I am playing with
TolFun,
TolCon,
MaxIter,
MaxFunEvals,
and
the number of times I loop the entire routine (I have the
optimization in a loop where at the end I take the minimum over all
the iteration results).
Is there any convention for doing this. I want high accuracy, so I've
set my tolerances around 10^-15 to 10^-17. MaxIter and MaxFunEvals
are at 10^5. Then there's the loop. Are any of these values
ridiculous? Are they reasonable? I guess what might be most helpful
is a short breakdown of how these options work.
I assume that tolerances definitely increase the processing time
(more than the rest of the options?)
The loop seems like a fast way to go? (i.e. many loops)
Which one (tolerances or loops) would be the better one to make the
dominant part of the routine?
I don't know how MaxIter and MaxFunEvals affect the processing time.
again, is there any method to finding the best set of options? What
should I be looking for? e.g. consistent results and quick processing
time?
Sorry. But it really depends on your problem. If your
parameters are on the order of 1e-15, setting TolX
to 1e-15 may be a poor choice.
Likewise, if you have 100000 parameters to optimize,
then MaxFunEvals will need to be large, especially if
you let it use finite differences to generate the
gradients.
I have a chapter in my tips and tricks doc on some of
these issues, where I show what would happen as you
change some of these parameters.
John
--
The best material model of a cat is another, or preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945
Those who can't laugh at themselves leave the job to others.
Anonymous
.
- Follow-Ups:
- Re: fmincon options playing
- From: Max Touzel
- Re: fmincon options playing
- References:
- fmincon options playing
- From: Max Touzel
- fmincon options playing
- Prev by Date: Debugging C S-Function using MSVS 2005
- Next by Date: Re: A very basic question about FFTs
- Previous by thread: fmincon options playing
- Next by thread: Re: fmincon options playing
- Index(es):
Relevant Pages
|