Skip to content
Snippets Groups Projects
Commit 2040a0d0 authored by markn92's avatar markn92
Browse files

wip

parent caaddf6c
No related branches found
No related tags found
1 merge request!1Working np Algorithm
......@@ -13,8 +13,8 @@ Label = namedtuple('Label', ['t_trip', 'beta_u', 'u', 'SoCProfile_u_v'])
class ChargingFunction:
def __init__(self, G: nx.Graph, n: Node, U: SoC):
self.c = charging_cofficient(G, n)
self.U = U
self.c: ChargingCoefficient = charging_cofficient(G, n)
self.U: SoC = U
def __call__(self, t: Time, beta: SoC = 0) -> SoC:
beta += self.c * t
......
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