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

4 views (last 30 days)
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)

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

Community Treasure Hunt

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

Start Hunting!