Skip to content

faq 68091919

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

customized controller for individual vehicle

by Yinhao Zhu on 2016-06-17 13:00:56


Hi there,

Is it possible to implement a specific controller for each vehicle in MATsim?

From vehicle control system perspective...

 

Thanks.


Comments: 2


Re: customized controller for individual vehicle

by Kai Nagel on 2016-06-17 15:03:40

One option is inserting your own "mobsim agents", see the classes RunAgentSourceExample or RunOwnMobsimAgentUsingRouterExample or RunOwnMobsimAgentWithPerceptionExample .  (You can find them either in your IDE, or via http://matsim.org/javadoc → main distribution.)

Another option is using the dvrp contrib, see http://matsim.org/extensions → dvrp.  Michał Maciejewski, the maintainer of that contrib, might say more about that option.  I hear that people have used it and were happy with it.  It is essentially a wrapper around what is explained in the above examples, but with a more "normal" user interface.

Hope this helps, let us know.

 

 

 


Re: customized controller for individual vehicle

by Michal Maciejewski on 2016-06-20 09:25:11

Hi, You will find more info on the DVRP extension (version 0.7.0) in Chapter 23 of the MATSim book (http://www.matsim.org/the-book). The main use case is real-time coordination of a fleet of vehicles. Of course, controlling each vehicle individually (no centralised decision making) is also possible.

Clone this wiki locally