Skip to content
Snippets Groups Projects
Commit a0054c9c authored by Pedro L. Magalhães's avatar Pedro L. Magalhães
Browse files

Non-hybrid networks now have their nodes set up accordingly.

parent a3e9271e
No related branches found
No related tags found
1 merge request!7Added support for convex price functions using the delta formulation and...
......@@ -633,11 +633,19 @@ class Network(nx.MultiDiGraph):
self.identify_node_types()
# declare variables for the nodes without directed arc limitations
if network_type not in self.NET_TYPES:
raise ValueError('Unknown network type.')
self.network_type = network_type
self.nodes_w_in_dir_arc_limitations = dict()
self.nodes_w_out_dir_arc_limitations = dict()
# set up initial nodes if the network is not hybrid
if self.network_type != self.NET_TYPE_HYBRID:
for node_key in self.nodes():
self._set_up_node(node_key)
# *************************************************************************
# *************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment