ParametricSolution.from_arrays

classmethod ParametricSolution.from_arrays(param, flow, potential=None, cost=None, dflow=None, dpi=None) paminco._base.ParametricSolution[source]

Build ParametricSolution from arrays.

Parameters
paramarray_like (B, )

Parameters at breakpoints.

flowarray_like (B, m)

Edge flow at param.

potentialarray_like (B, n), optional

Node potential at param.

costarray_like (B, ), optional

Total cost of edge flow at param.

dflowarray_like (B, ), optional

Slope of flow after last breakpoint.

dpiarray_like (B, ), optional

Slope of potential after last breakpoint.

Returns
ParametricSolution