matsim-vsp / freight-dfg17

GNU General Public License v2.0
0 stars 1 forks source link

Loopback traffic data from MATSim to Jsprit #5

Open kt86 opened 6 years ago

kt86 commented 6 years ago

Derzeit Stau mit TimeDependentNetwork Wie aktuelle Netzwerkdaten aus MATSim-Run zurück an jsprit. Ist es das, was in usecases.chessboard drin ist? --- Edit: Added Translation (KMT, 7 Sep) Notes for Call with Stefan Schröder: Currently we handle some kind of (expected) "congestion" by using a TimeDependendNetwork with NetworkChangeEvents for considering e.g. the rush-hour. Q: How to get current travelTimes in network back from MATSim to jsprit? It is the stuff/example, that can be found in freight.contrib.usecases.chessboard?

JWJoubert commented 6 years ago

@kt86 Please ask in English, otherwise we will not be able to participate.

kt86 commented 6 years ago

@JWJoubert Sorry that it was in German first. I just copied my personal notes for the phonecall with Stefan Schroeder just a few minutes before the call, so I have not had time to translate it before. Now it is in English.

Answer was: Yes it is in there. Next steps for me: Have a look at it and use it in my own scenario.

kainagel commented 5 years ago

One could in fact argue that the matsim design is wrong. link.getTravelTime(timeOfDay) should return the travel time, and if that is congested or not, and how congestion is computed, should be the underlying implementation's problem.

This would, in fact, be a good idea since any implementation that would work on the matsim time-dep network could then also be used for congested routing.

Need to think about this

Implies that for problem here we should solve it on matsim's side: Generate a new network, which includes congestion, that is then fed to jsprit. Use functionality already developed by drt/michał. (Move it to sufficiently central place then, please.)