matsim-org / matsim-code-examples

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

Simulation of private autonomous vehicles #320

Open JackyAsp opened 4 years ago

JackyAsp commented 4 years ago

We would like to simulate private autonomous vehicles including their empty rides (e.g. from work to home and from home to work without a passenger). Do we have to use the taxi or parking contrib therefore or does there exist another suitable module for this purpose?

tschlenther commented 4 years ago

Which operation pattern do you assume? Or, in other words, which rides do you assume to be empty? Why would the vehicle travel back to the home location empty? If you want to simulate autonomous parking (empty vehicle searching for parking space) use the parking contrib. If you really want to make the empty vehicle go to a specific location, use the dvrp (and more specifically: probably the taxi) contrib.

JackyAsp commented 4 years ago

Thank you very much for your response. We just wanted to simulate a scenario in which a vehicle has to drive home or somewhere else, because there does not exist any parking lot e.g. at work. I think we are going to use the parking contrib therefore.

jfbischoff commented 4 years ago

If that is your only purpose, you could consider creating "shadow agents" that mirror exactly such behavior. This might be much easier on the programming side than struggling with the parking contrib. E.g., there is an agent doing a h-w-h trip... then you create a second agent who has the w-h-w trip at the corresponding time... you may want to check out this publication: https://depositonce.tu-berlin.de/handle/11303/9270.