Skip to content
Snippets Groups Projects
Commit 5810b574 authored by markn92's avatar markn92
Browse files

stats

parent dbbd88d1
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,9 @@ maps:
queries_per_rank: 10
ranks: [2, 4, 6, 8]
setups:
- mu_s: 300 # Start and Target Soc
- mu_s: 40 # Start and Target Soc
mu_t: 0
capacity: 300 # kWh
capacity: 40 # kWh
consumption:
type: distance
consumption_coefficient: 0.1 # kWh/s
consumption_coefficient: 0.5 # kWh/km = Wh/m
......@@ -37,8 +37,9 @@ def apply_conversions(conf):
"""kWh to Wh"""
for setup in conf['setups']:
setup['capacity'] = 1000 * setup['capacity']
setup['consumption']['consumption_coefficient'] = \
1000 * setup['consumption']['consumption_coefficient']
if setup['consumption'].get('type') == 'time':
setup['consumption']['consumption_coefficient'] = \
1000 * setup['consumption']['consumption_coefficient']
setup['mu_s'] = 1000 * setup['mu_s']
setup['mu_t'] = 1000 * setup['mu_t']
return conf
......
This diff is collapsed.
......@@ -57,7 +57,7 @@ def sum_weights(G, path, weight: str) -> float:
def consumption_function_distance_factory(consumption: float) -> ConsumptionFunction:
"""
:param consumption: in kWh/km
:param consumption: in kWh/m
"""
def c(G, u, v):
......
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