module documentation

A collection of boundary (AKA box constraints) handling classes.

Class BoundaryHandlerBase quick hack versatile base class.
Class BoundDomainTransform create a callable with unbounded domain from a function with bounded domain,
Class BoundNone no boundaries
Class BoundPenalty Compute a bound penalty and update coordinate-wise penalty weights.
Class BoundTransform Handle boundaries by a smooth, piecewise linear and quadratic transformation into the feasible domain.
Function none_to_inf replace any None by inf or -inf.
Function normalize_bounds return [lower_bounds, upper_bounds] such that each of them
Class _BoundDomainPenalty [WIP early] function wrapper for penalty boundary handler, looks kinda complex
def none_to_inf(bounds, copy=True):

replace any None by inf or -inf.

This code was never tested and is not in use.

def normalize_bounds(bounds, copy=True):

return [lower_bounds, upper_bounds] such that each of them

is either a nonempty list or None.

copy only makes a shallow copy.

On input, bounds must be a list of length 2.