%% Create a Default Evaluation Options Object
% Create an sdo.EvaluateOptions object.

opt = sdo.EvaluateOptions;

%
% Specify handling of cost function evaluation error.

opt.StopOnEvaluateError = 'on';

% Copyright 2012 The MathWorks, Inc.