bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _constraints / new_bounds_to_old
function
scipy.optimize._constraints:new_bounds_to_old
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_constraints.py:461
Signature
def new_bounds_to_old(lb, ub, n)Summary
Convert the new bounds representation to the old 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 -np.inf/np.inf they are replaced by None.
Aliases
scipy.optimize._constraints.new_bounds_to_old