matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
75 stars 173 forks source link

How to introduce new facility in MATSim? #153

Open saxenism opened 5 years ago

saxenism commented 5 years ago

I want to introduce a new facility in MATSim simulations. Specifically, it's electric vehicle charging stations. Would just adding it in facilites.xml file suffice or would I have to make changes elsewhere too?

jfbischoff commented 5 years ago

Consider using the Electric Vehicle contribution, which can handle vehicle discharging, charging and many other EV related functionality: https://github.com/matsim-org/matsim/tree/master/contribs/ev There's also a runnable example https://github.com/matsim-org/matsim/blob/master/contribs/ev/src/main/java/org/matsim/contrib/ev/example/RunEVExample.java

ngagnediop commented 5 years ago

Please can you give again the good link for the example because this (https://github.com/matsim-org/matsim/blob/master/contribs/ev/src/main/java/org/matsim/contrib/ev/example/RunEVExample.java) doesn't run

michalmac commented 5 years ago

This one should work: https://github.com/matsim-org/matsim/blob/master/contribs/ev/src/main/java/org/matsim/contrib/ev/example/RunEvExample.java