Skip to content
Prev 6405 / 15274 Next

!SPAM: Re: optimization

On 07/17/2010 04:56 PM, Ben Nachtrieb wrote:
You'd need to be sure the problem was tractable given the possible numbers of 
calculations.  This number can easily get into the billions or more.

If tractable, it is just a nested loop to test all the parameters. brute force 
optimizers tend to be specific to your problem, and not very reusable, but easy 
to write.

You may also want to consider Burns-style random portfolios or a variant for 
parameters. This would allow you to cover the space and get a representative 
sample.  See Pat Burns' papers.
DEoptim is the best available in R for this at this point, in my opinion.
There is no pre-built parameter optimization mechanism tuned towards trading 
strategy parameters in R at this time.  I've done it with brute force, random 
search (see the random portfolio code in PortfolioAnalytics, it could be 
modified), and DEoptim.  I have not generalized it yet.
With any non-smooth surface, optim will give local minima that may not be the 
global optimum.  See optim()'s performance on Rastrigen, for example.

Regards,

   - Brian