baybe.constraints.validation.validate_cardinality_constraint_parameter_bounds¶
- baybe.constraints.validation.validate_cardinality_constraint_parameter_bounds(constraint: ContinuousCardinalityConstraint, parameters: Collection[NumericalContinuousParameter])[source]¶
Validate that all parameters of a continuous cardinality constraint include zero.
- Parameters:
constraint (
ContinuousCardinalityConstraint
) – A continuous cardinality constraint.parameters (
Collection
[NumericalContinuousParameter
]) – A collection of parameters, including those affected by the constraint.
- Raises:
ValueError – If one of the affected parameters does not include zero.
ExceptionGroup – If several of the affected parameters do not include zero.
- Return type: