Return values from simulannealbnd other than fval and x
1 次查看(过去 30 天)
显示 更早的评论
I am optimizing an objective function which depend on profit and risk as shown below. I am using simulannealbnd function to optimize decision variable x. I want to plot profit vs risk. I am unable return the values of profit and risk for best value of decision variable x as I simulannealbnd only returns objective and x variables. I shall appreciate any help in this issue.
objective = w1* profit(x) + w2* risk(x);
4 个评论
回答(1 个)
Walter Roberson
2017-6-27
You can use the same techniques described at https://www.mathworks.com/matlabcentral/answers/92701-how-do-i-pass-out-extra-parameters-using-ode23-or-ode45-from-the-matlab-ode-suite
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!