rl-institut / simbev

MIT License
10 stars 4 forks source link

Run simbev from import-csv #3

Closed mosc5 closed 3 years ago

mosc5 commented 3 years ago

building the wrapper in branch Szenario-Import

nesnoj commented 3 years ago

Hey @Mosc5! In eGo^n I'm working with the GOGS version of simBEV.

I assume this issue is about bringing back the CSV region definition of the GOGS version?! That would be quite helpful! If I find time I can do it, will see..

mosc5 commented 3 years ago

Hey @nesnoj, I'm not familiar with the differences in these versions. My idea for this issue was to run SimBEV with a scenario input csv that contains data such as numbers of cars per car type for different regions (in my case separated by area code). This way we could run many simulations with just one input file instead of having to change the config manually each time. Does this match what you were thinking of?

nesnoj commented 3 years ago

Yepp, that's exactly it. We already have it on GOGS for the outdated version of simBEV. The file looks like this:

LK_AGS AGS RegioStaR7 BEV_mini BEV_medium BEV_luxury PHEV_mini PHEV_medium PHEV_luxury
0 1001 1001000 LR_Zentr 2181 4340 1485 1351 2689 920
1 1002 1002000 SR_Gross 5788 10672 3269 3584 6612 2024
2 1003 1003000 SR_Gross 5096 9690 2974 3156 6004 1841
... ... ... ... ... ... ... ... ... ...

There's some legacy stuff in here - to my mind the LK_AGS (Landkreis) could be skipped and the AGS (Gemeinde = Amtlicher Gemeindeschlüssel) should be renamed to something more generic such as region_id or whatever resulting in:

region_id RegioStaR7 BEV_mini BEV_medium BEV_luxury PHEV_mini PHEV_medium PHEV_luxury
1001000 LR_Zentr 2181 4340 1485 1351 2689 920
1002000 SR_Gross 5788 10672 3269 3584 6612 2024
1003000 SR_Gross 5096 9690 2974 3156 6004 1841
... ... ... ... ... ... ... ...

Just as an idea..

nesnoj commented 3 years ago

@Mosc5 @timroepcke I'll take care of this feature..