%% Store Additional Evaluation Information
%%
% Create a cost function with a |Log| field in the output, and save it as 
% |sdoExampleCostFunctionWithLog.m|.
%
% <include>sdoExampleCostFunctionWithLog.m</include>
%
%%
% Create an arbitrary |param.Continuous| object.

% Copyright 2015 The MathWorks, Inc.

p = param.Continuous('x',1);
%%
% Specify the parameter space definition for the model parameter.
ps = sdo.ParameterSpace(p);
%%
% Evaluate the cost function.
[y,info] = sdo.evaluate(@(p) sdoExampleCostFunctionWithLog(p),ps);
%%
% The output of |sdo.evaluate| returns the information stored in the |Log|
% field of the cost function.
info.Log
