outputFcn_global

版本 1.0.2 (66.0 KB) 作者: Daniel Frisch
OutputFcn for Matlab Optimizers to capture intermediate optimization results.
620.0 次下载
更新时间 2020/10/7

查看许可证

outputFcn_global()

OutputFun for optimizers (fminunc, fmincon etc), saving intermediate results
in global variable "outputFcn_global_data" for later access.

It is not supposed for live updates during optimization but for
later inspection, which is much more efficient.

Usage
options = optimoptions( ... , 'OutputFcn',@outputFcn_global );
[XOpt,fval,exitflag,output] = fminunc(@fun, X0, options);
outputFcn_global_data(k).x

See also the supplied example file.

引用格式

Daniel Frisch (2024). outputFcn_global (https://www.mathworks.com/matlabcentral/fileexchange/80831-outputfcn_global), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!

outputFcn_global

版本 已发布 发行说明
1.0.2

Updated documentation

1.0.1

Added image

1.0.0