This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / optimize / _constraints / old_bound_to_new

function

scipy.optimize._constraints:old_bound_to_new

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_constraints.py:479

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._biteopt_py.old_bound_to_new