bundles / scipy 1.17.1 / scipy / optimize / _linprog_util / _format_A_constraints
function
scipy.optimize._linprog_util:_format_A_constraints
Signature
def _format_A_constraints ( A , n_x , sparse_lhs = False ) Summary
Format the left hand side of the constraints to a 2-D array
Parameters
A: 2-D array2-D array such that
A @ xgives the values of the upper-bound (in)equality constraints atx.n_x: intThe number of variables in the linear programming problem.
sparse_lhs: boolWhether either of
A_uborA_eqare sparse. If true return a coo_array instead of a numpy array.
Returns
: np.ndarray or sparse.coo_array2-D array such that
A @ xgives the values of the upper-bound (in)equality constraints atx.
Aliases
-
scipy.optimize._linprog_util._format_A_constraints