Bounds

class boulderopal.closed_loop.Bounds(values, bound_type=BoundType.NON_PERIODIC)

A box constraint with which you can define the (inclusive) bounds and their type for each optimizable parameter in your optimization.

Parameters

  • values (np.ndarray) – The per-parameter bounds on the test points. The bounds must be a NumPy array of shape (parameter_count, 2) where the trailing axis are the bounds for each parameter (with the lower bound first, followed by the upper bound).
  • bound_type (BoundType or list [BoundType ] , optional) – The boundary type for the bounds. You can provide a single BoundType to be used for all parameters, or a list with a BoundType for each parameter. Defaults to non-periodic bounds.

Was this useful?