ParametricSolution¶
Class Description¶
- class paminco._base.ParametricSolution(*args)[source]¶
List that stores B BreakpointSolutions.
- Parameters
- breakpointssequence of BreakpointSolutions
- Attributes
- flow_ipscipy.interpolate.interpolate.interp1d, optional
Interpolator of edge flows.
- pot_ipscipy.interpolate.interpolate.interp1d, optional
Interpolator of node potentials.
has_potentialsWhether node potentials have been set in breakpoint solutions.
has_costsWhether cost have been set in breakpoint solutions.
arr_param1D array (B, ) of float: parameters of breakpoint solutions.
arr_flow2D array (B, m) of float: edge flows of breakpoint solutions.
arr_cost1D array (B, ) of float: total cost of breakpoint solutions.
arr_potential2D array (B, n) of float: node potential of breakpoint solutions.
dflowGet slope of flow after last breakpoint.
dpiGet slope of potential after last breakpoint.
Attributes¶
Whether node potentials have been set in breakpoint solutions. |
|
Whether cost have been set in breakpoint solutions. |
|
1D array (B, ) of float: parameters of breakpoint solutions. |
|
2D array (B, m) of float: edge flows of breakpoint solutions. |
|
1D array (B, ) of float: total cost of breakpoint solutions. |
|
2D array (B, n) of float: node potential of breakpoint solutions. |
|
Get slope of flow after last breakpoint. |
|
Get slope of potential after last breakpoint. |
Methods¶
Value, Plot and Param¶
|
Interpolate flow at param. |
Interpolate potential at param. |
|
|
Get parameters of all parametric solutions. |
|
Plot flow on edge. |
Save and Load¶
|
Build ParametricSolution from arrays. |
|
Get ParametricSolution as dataframe. |
|
Build ParametricSolution from pandas.DataFrame. |
|
Save ParametricSolution to |
|
Build ParametricSolution from |
|
Generate dict to save object with numpy.savez. |
|
Save object into a single file in uncompressed |
|
Construct object from |