Optimal way to parse parameters (fmincon).
Show older comments
Hi there,
My question is very straightforward: for a function that depends on multiple parameters, say f(a,b,c), what is the optimal way to parse the fixed parameters (in this example "b" and "c") when calling fmincon.
I found this link with three suggestions: http://www.mathworks.com/help/optim/ug/passing-extra-parameters.html#bripxyy
However, in my experiments using "global" actually improved performance slightly.
To give you a background, I ran several Monte Carlo experiments (10MM) where each run calls fmincon once. Thus, even a slight performance improvement might reduce the computational time substantially.
Thanks,
Accepted Answer
More Answers (0)
Categories
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!