fminuncout1.m
来自「关于遗传算法(GA)的相关内容介绍(英文资料)以及算法工具箱」· M 代码 · 共 26 行
M
26 行
function stop = fminuncOut1(X, optimvalues, state)
stop = false;
figure1 = gcf;
if strcmpi(state,'done')
annotation1 = annotation(figure1,'arrow',[0.7506 0.7014],[0.3797 0.625]);
% Create textbox
annotation2 = annotation(...
figure1,'textbox',...
'Position',[0.6857 0.2968 0.1482 0.0746],...
'FontWeight','bold',...
'String',{'start point'},...
'FitHeightToText','on');
% Create arrow
annotation3 = annotation(figure1,'arrow',[0.4738 0.3489],[0.1774 0.2358]);
% Create textbox
annotation4 = annotation(...
figure1,'textbox',...
'Position',[0.4732 0.1444 0.2411 0.06032],...
'FitHeightToText','off',...
'FontWeight','bold',...
'String',{'FMINCON solution'});
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?