bundles / scipy 1.18.0 / scipy / optimize / _milp / _constraints_to_components
function
scipy.optimize._milp:_constraints_to_components
source: /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