function [x,fval,exitflag,output] = patsearch_borestore(x0,MeshTolerance_Data,StepTolerance_Data,FunctionTolerance_Data,MaxIterations_Data)
%% This is an auto generated MATLAB file from Optimization Tool.

%% Start with the default options
options = optimoptions('patternsearch');
%% Modify options setting
options = optimoptions(options,'MeshTolerance', MeshTolerance_Data);
options = optimoptions(options,'StepTolerance', StepTolerance_Data);
options = optimoptions(options,'FunctionTolerance', FunctionTolerance_Data);
options = optimoptions(options,'MaxIterations', MaxIterations_Data);
options = optimoptions(options,'Display', 'off');
[x,fval,exitflag,output] = ...
patternsearch(@borestorePloemeur,x0,[],[],[],[],[],[],[],options);

%EXAMPLE - Starting value of D=100 and S=.001, tolerances=1e-40 and
%iterations=10000
%patsearch_borestore([100,.001],1e-40,1e-40,1e-40,10000)