function checkXConstraintFcnSatisfiability(this)
% Check satisfiability of the XConstraint
%

%   Copyright 2016-2022 The MathWorks, Inc.

N = this.PrivOptions.XConstraintSatisfiabilitySamples;
X = bayesoptim.uniformPointsWithinBounds(N, this.PrivOptions.VarSpec.LBTrans, ...
    this.PrivOptions.VarSpec.UBTrans);
NumFeas = sum(isInputFeasible(this, X));
if NumFeas == 0
    bayesoptim.err('NoFeasiblePoints', N);
elseif NumFeas < .01*N
    bayesoptim.warn('FewFeasiblePoints', N, NumFeas);
end
end
