Can we pass a data structure to fmincon? If yes, how?

I was trying to formulate a constrained non-linear optimization. My objective function uses a lot of parameters which I have stored as a structure. I don't want to use global variables. Can anyone please suggest how should I go about it?

Answers (1)

See this section of the documentation on passing parameters.
Alan Weiss
MATLAB mathematical toolbox documentation

Asked:

on 12 Oct 2013

Answered:

on 14 Oct 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!