PhysicsOfMobility / ridepy

Simulates a dispatching algorithm serving exogenous transportation requests with a fleet of vehicles. Does not simulate the universe, unlike MATSim. Batteries are included.
https://ridepy.org
MIT License
7 stars 0 forks source link

Improve Graph space performance #272

Open fxjung opened 2 months ago

fxjung commented 2 months ago

Currently, large graph spaces are nowhere near as fast as continuous spaces. Examples:

Distance between random points

Time interpolation between random points

Additionally, caching distances between simulations runs might be sensible, see also #100.

pmarszal commented 2 months ago

I found, that often you also need distances and maybe even shortest paths for certain statistics, e.g. what are possible acceptable requests for a certain state of the system. Pre-computing both distances and Dijkstra-predecessors and being able to just give them to the simulator was quite nice for me.