matsim-org / matsim-libs

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

fix: prebooked drt with variable stop durations and group sizes #3290

Closed sebhoerl closed 1 month ago

sebhoerl commented 1 month ago

This PR fixes a bug that appeared in DRT when:

Basically, the per-stop queue simulation did not take into account that requests can have different sizes, and thus it could happen that a large request entered the vehicle before sufficiently many other requests had left the vehicle. This resulted in having more persons than allowed on board temporarily, which, in turn, caused an error in the analysis components.