|
Hi Eric,
1) "Lots of variables" - how many?
2) is your function smooth? If not, it is recomended using fminsearch
instead of fmincon. However, fminsearch can't handle any constraints
-lb, ub, linear, nonlin. Do you have any one?
3) Eric Bowman wrote:
> objective function once for every design variable, calculates the
> gradients, takes a step, and then evaluates the objective function
> once for every design variable again
Do you supply gradient or not?
Making this will speedup your calculations very much.
Supplying Hess will yield even more speed, but sometimes it's very
hard to obtain analitically, as for 1st derivatives too.
However, Automatic differentiators exist, you may try MADS from
TOMLAB evaluation ver for example, but i tried & i'm not fond of that
one (my speed greately decriased, however, maybe I did something
wrong).
4) I would recomend to try non-smooth ralg from OpenOpt (free MATLAB
toolbox). However, it was reliesed only some days ago & need many
further improvements. On the other hand, our ralg - fminsearch analog
- can handle analitical (sub)gradients, lb-ub constraints &
(currently via hand-turning) non-lin ineq.
On the other hand, I guess, that if your problem is smooth & you can
provide analitical gradent, fmincon will give you faster
convergence.
Feel free to ask me via e-mail or icq 275976670
WBR, D
|