__init__ (**kwds)
|
Pass kwds to update the options attribute after setting defaults |
adj_lists (G[, excludeEdges, nodes, multi])
|
Returns an adjacency list and a reverse adjacency list of node indexes for a MultiDiGraph. |
all_cycles (G)
|
This function finds all the cycles in a directed graph. |
arc_to_edge (G)
|
Returns a mapping from arcs to edges for a graph |
cacher (key, fcn, *args)
|
|
calculation_order (G[, roots, nodes])
|
Rely on tree_order to return a calculation order of nodes |
check_tear_set (G, tset)
|
Check whether the specified tear streams are sufficient. |
check_value_fix (port, var, default, fixed, ...)
|
Try to fix the var at its current value or the default, else error |
combine_and_fix (port, name, obj, evars, fixed)
|
For an extensive port member, combine the values of all expanded variables and fix the port member at their sum. |
compute_err (svals, dvals, tol_type)
|
Compute the diff between svals and dvals for the given tol_type |
create_graph (model)
|
Returns a networkx MultiDiGraph of a Pyomo network model |
cycle_edge_matrix (G)
|
Return a cycle-edge incidence matrix, a list of list of nodes in each cycle, and a list of list of edge indexes in each cycle. |
edge_to_idx (G)
|
Returns a mapping from edges to indexes for a graph |
fixed_inputs ()
|
|
generate_first_x (G, tears)
|
|
generate_gofx (G, tears)
|
|
idx_to_edge (G)
|
Returns a mapping from indexes to edges for a graph |
idx_to_node (G)
|
Returns a mapping from indexes to nodes for a graph |
indexes_to_arcs (G, lst)
|
Converts a list of edge indexes to the corresponding Arcs |
load_guesses (guesses, port, fixed)
|
|
load_values (port, default, fixed, use_guesses)
|
|
node_to_idx (G)
|
Returns a mapping from nodes to indexes for a graph |
pass_edges (G, edges)
|
Call pass values for a list of edge indexes |
pass_single_value (port, name, member, val, fixed)
|
Fix the value of the port member and add it to the fixed set. |
pass_tear_direct (G, tears)
|
Pass values across all tears in the given tear set |
pass_tear_wegstein (G, tears, x)
|
Set the destination value of all tear edges to the corresponding value in the numpy array x. |
pass_values (arc, fixed_inputs)
|
Pass the values from one unit to the next, recording only those that were not already fixed in the provided dict that maps blocks to sets. |
run (model, function)
|
Compute a Pyomo Network model using sequential decomposition |
run_order (G, order, function[, ignore, ...])
|
Run computations in the order provided by calling the function |
scc_calculation_order (sccNodes, ie, oe)
|
This determines the order in which to do calculations for strongly connected components. |
scc_collect (G[, excludeEdges])
|
This is an algorithm for finding strongly connected components (SCCs) in a graph. |
select_tear_heuristic (G)
|
This finds optimal sets of tear edges based on two criteria. |
select_tear_mip (G, solver[, solver_io, ...])
|
This finds optimal sets of tear edges based on two criteria. |
select_tear_mip_model (G)
|
Generate a model for selecting tears from the given graph |
set_guesses_for (port, guesses)
|
Set the guesses for the given port |
set_tear_set (tset)
|
Set a custom tear set to be used when running the decomposition |
solve_tear_direct (G, order, function, tears, ...)
|
Use direct substitution to solve tears. |
solve_tear_wegstein (G, order, function, ...)
|
Use Wegstein to solve tears. |
source_dest_peer (arc, name[, index])
|
Return the object that is the peer to the source port's member. |
sub_graph_edges (G, nodes)
|
This function returns a list of edge indexes that are included in a subgraph given by a list of nodes. |
tear_diff_direct (G, tears)
|
Returns numpy arrays of values for src and dest members for all edges in the tears list of edge indexes. |
tear_set (G)
|
|
tear_set_arcs (G[, method])
|
Call the specified tear selection method and return a list of arcs representing the selected tear edges. |
tear_upper_bound (G)
|
This function quickly finds a sub-optimal set of tear edges. |
tree_order (adj, adjR[, roots])
|
This function determines the ordering of nodes in a directed tree. |