matsim-org / matsim-libs

Multi-Agent Transport Simulation
www.matsim.org
461 stars 436 forks source link

Fix issues with floating point precision in railsim #3263

Closed rakow closed 1 month ago

rakow commented 1 month ago

Because railsim does a lot of floating point operations that aggregate total distance or current speed over time, it can happen that an accumulation of errors leads to inaccurate results. This PR ensures that distance and speed remains within feasible bounds.

ikaddoura commented 1 month ago

Thanks, @rakow . Now, I found the time to test my application. This pull request fixed the issues I had... Thank you!!