Code covered by the BSD License  

Highlights from
Desenvolvimento de Aplicacoes com MATLAB

image thumbnail

Desenvolvimento de Aplicacoes com MATLAB

by

 

Slides and demo files from the webinar "Desenvolvimento de Aplicacoes com MATLAB"

myOptim(x0,lb,ub)
function [x,fval,exitflag,output,lambda,grad,hessian] = myOptim(x0,lb,ub)
% This is an auto generated M-file to do optimization with the Optimization Toolbox.
% Optimization Toolbox is required to run this M-file.

% Copyright 2006 The MathWorks, Inc.

% Start with the default options
options = optimset;
% Modify options setting
options = optimset(options,'Display' ,'iter');
options = optimset(options,'TolFun' ,0.0001);
options = optimset(options,'OutputFcn' ,{ @myOutputFcn });
options = optimset(options,'PlotFcns' ,{  @optimplotfval @(x,itervals,flag) plotFcn(x,itervals,flag) });
options = optimset(options,'LargeScale' ,'off');
[x,fval,exitflag,output,lambda,grad,hessian] = ...
fmincon(@(x) objFcn(x),x0,[],[],[],[],lb,ub,[],options);

Contact us