bundles / scipy 1.17.1 / scipy / optimize / _linprog_util / _clean_inputs
function
scipy.optimize._linprog_util:_clean_inputs
Signature
def _clean_inputs ( lp ) Summary
Given user inputs for a linear programming problem, return the objective vector, upper bound constraints, equality constraints, and simple bounds in a preferred format.
Parameters
lp: A `scipy.optimize._linprog_util._LPProblem` consisting of the following fields:c
c
A_ub
A_ub
b_ub
b_ub
A_eq
A_eq
b_eq
b_eq
bounds
bounds
x0
x0
Returns
lp: A `scipy.optimize._linprog_util._LPProblem` consisting of the following fields:c
c
A_ub
A_ub
b_ub
b_ub
A_eq
A_eq
b_eq
b_eq
bounds
bounds
x0
x0
Aliases
-
scipy.optimize._linprog_util._clean_inputs