Skip to content
Snippets Groups Projects
Commit 5ea6e001 authored by markn92's avatar markn92
Browse files

intial tests

parent 9ef9a606
No related branches found
No related tags found
No related merge requests found
from .routing import shortest_path
\ No newline at end of file
import networkx as nx
def shortest_path(G: nx.Graph, s, t, b_0: float, b_t: float, U: float):
"""
Calculates shortest path using the CHarge algorithm.
:param G: Input Graph
:param s: Start Node identifier
:param t: End Node identifier
:param b_0: Start SoC
:param b_t: End SoC
:param U: Capacity
:return:
"""
pass
from .routing import shortest_path
\ No newline at end of file
import networkx as nx
def shortest_path(G: nx.Graph, s, t, b_0: float, b_t: float, U: float):
"""
Calculates shortest path using a generalized gas station algorithm.
:param G: Input Graph
:param s: Start Node identifier
:param t: End Node identifier
:param b_0: Start SoC
:param b_t: End SoC
:param U: Capacity
:return:
"""
pass
...@@ -9,6 +9,8 @@ edge_case = { ...@@ -9,6 +9,8 @@ edge_case = {
'b_0': 0, 'b_0': 0,
'b_t': 0, 'b_t': 0,
'U': 4, 'U': 4,
's': 0,
't': 2,
'nodes': [ 'nodes': [
Node('s', charging_coeff=1), Node('s', charging_coeff=1),
Node('a', charging_coeff=2), Node('a', charging_coeff=2),
......
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