how to store the intermediate result when using fmincon
显示 更早的评论
Dear fellows, I am using fmincon to do optmization. Could you tell me how to look at and store the intermediate result when fmincon is trying different value? Well, I need to give an initial value for fmincon to start, and after that, it will try different value to find the optimized one. I want to check all those values that it tried and the corresponding results. Cheers
采纳的回答
更多回答(3 个)
Alan Weiss
2013-2-5
0 个投票
Alan Weiss
MATLAB mathematical toolbox documentation
Daniel Frisch
2020-10-7
0 个投票
You can use my function outputFcn_global that saves all the intermediate results in a global variable, so you can inspect them later on.
类别
在 帮助中心 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!