bundles / scipy latest / scipy / optimize / _linprog_util / _parse_linprog
function
scipy.optimize._linprog_util:_parse_linprog
Signature
def _parse_linprog ( lp , options , meth ) Summary
Parse the provided linear programming problem
Extended Summary
_parse_linprog employs two main steps _check_sparse_inputs and _clean_inputs. _check_sparse_inputs checks for sparsity in the provided constraints (A_ub and ``A_eq) and if these match the provided sparsity optional values.
_clean inputs checks of the provided inputs. If no violations are identified the objective vector, upper bound constraints, equality constraints, and simple bounds are returned in the expected 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
options: dictA dictionary of solver options. All methods accept the following generic options:
maxiter
maxiter
disp
disp
For method-specific options, see
show_options('linprog').
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
options: dict, optionalA dictionary of solver options. All methods accept the following generic options:
maxiter
maxiter
disp
disp
For method-specific options, see
show_options('linprog').
Aliases
-
scipy.optimize._linprog._parse_linprog