plot for fmincon with multiple value of parameter
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Does any one know how to plot optimal results w.r.t. the value of m, c below my optimisation problem.
Say, I need to plot m at x axis and x(1) at y axis.
f = @(x,m)(-m*x(1)-2*x(2)-x(1)*x(2))
for m=2:0.2:3
[x,fval]=fmincon(@(x)f(x,m),x0,[1,1],18,[],[],[0;0],[Inf;Inf])
end
Thanks
0 commentaires
Réponse acceptée
Shashank Prasanna
le 8 Juil 2013
I posted the answer in your previous questions here:
4 commentaires
Shashank Prasanna
le 9 Juil 2013
You will find all that information for customization right here:
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Performance dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!