%% Optimize Model Response
% Create design variables.

p = param.Continuous('x',1);

%
% Specify optimization options.

opts = sdo.OptimizeOptions;
opts.GradFcn = 'on';

%
% Optimize the parameter.

[pOpt,opt_info] = sdo.optimize(@(p) sdoExampleCostFunction(p),p,opts);

% Copyright 2015 The MathWorks, Inc.