function HyperparameterOptimizationOptions = updateMaxObjectiveEvaluations(BOInfo, HyperparameterOptimizationOptions)
% helper function to assign specific default MaxObjectiveEvaluations depending on type of fit function 

    %   Copyright 2023 The MathWorks, Inc.

    if isempty(HyperparameterOptimizationOptions.MaxObjectiveEvaluations) && ~strcmp(HyperparameterOptimizationOptions.Optimizer,'gridsearch')
        HyperparameterOptimizationOptions.MaxObjectiveEvaluations = BOInfo.DefaultMaxObjectiveEvaluations;
    end
end


