fmincon with 2 decision variables and multiple value of one parameter in the model
Show older comments
Hi, I am using fmincon to do the constrained optimisation problem with 2 decision variables. Furthermore, I have one variable which is not the decision variable in the model. I wish to check how the value of this variable has an impact on the 2 decision variables. See below in detail.
max m*x(1)+2*x(2)+x(1)*x(2)
s.t. x(1)+x(2)<=18
x(1)>=0
x(2)>=0
check m=2:0.2:3, the optimal solution of x(1) and x(2).
how can I write the range of m in the code.
Thanks
1 Comment
Matt J
on 8 Jul 2013
Looks like QUADPROG would be more appropriate here than FMINCON.
Accepted Answer
More Answers (0)
Categories
Find more on Parallel Computing Toolbox 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!