bundles / scipy 1.18.0 / scipy / optimize / _constraints / new_bounds_to_old
function
scipy.optimize._constraints:new_bounds_to_old
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