function finDiffFlags = getFinDiffFlags(options, sizes)
%GETFINDIFFFLAGS Build finite difference flags

%   Copyright 2023 The MathWorks, Inc.

finDiffFlags.fwdFinDiff = strcmpi(options.FinDiffType,'forward');
finDiffFlags.scaleObjConstr = false; % No scaling in checkGradients
finDiffFlags.chkFunEval = false;     % No check in checkGradients, it is done in checkfun@processFuncX0
finDiffFlags.chkComplexObj = false;  % No check for complex values for checkGradients

% No bounds for gradient validation
finDiffFlags.hasLBs = false(sizes.nVar, 1);
finDiffFlags.hasUBs = false(sizes.nVar, 1);
end

