function this = checkAndSetMinWorkerUtilization(this)
%

%   Copyright 2016-2022 The MathWorks, Inc.

if isempty(this.PrivOptions.MinWorkerUtilization)
    this.PrivOptions.MinWorkerUtilization = floor(this.Parallel.NumWorkers * this.PrivOptions.DefaultMinWorkerUtilizationFraction);
elseif this.PrivOptions.MinWorkerUtilization > this.Parallel.NumWorkers
    bayesoptim.warn('MinWorkerUtilizationTooLarge', num2str(this.PrivOptions.MinWorkerUtilization), num2str(this.Parallel.NumWorkers));
    this.PrivOptions.MinWorkerUtilization = this.Parallel.NumWorkers;
end
end
