{ } Raw JSON

bundles / scipy 1.18.0 / scipy / optimize / _constraints / old_bound_to_new

function

scipy.optimize._constraints:old_bound_to_new

source: /scipy/optimize/_constraints.py:475

Signature

def old_bound_to_new(bounds)

Summary

Convert the old bounds representation to the new one.

Extended Summary

The new representation is a tuple (lb, ub) and the old one is a list containing n tuples, ith containing lower and upper bounds on the ith variable. If any of the entries in lb/ub are None they are replaced by -np.inf/np.inf.

Aliases

  • scipy.optimize._constraints.old_bound_to_new