image thumbnail

Optimization with MATLAB and the Genetic Algorithm and Direct Search Toolbox

by

 

10 Nov 2004 (Updated )

M-files used in the webinar held on September 16, 2004.

fminuncOut1(X, optimvalues, state)
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

Contact us