bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _milp / _constraints_to_components
function
scipy.optimize._milp:_constraints_to_components
source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_milp.py:13
Signature
def _constraints_to_components(constraints)Summary
Convert sequence of constraints to a single set of components A, b_l, b_u.
Extended Summary
constraints could be
A LinearConstraint
A tuple representing a LinearConstraint
An invalid object
A sequence of composed entirely of objects of type 1/2
A sequence containing at least one object of type 3
We want to accept 1, 2, and 4 and reject 3 and 5.
Aliases
scipy.optimize._milp._constraints_to_components