Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag for initialReroute #39

Open
wants to merge 125 commits into
base: main
Choose a base branch
from
Open

flag for initialReroute #39

wants to merge 125 commits into from

Conversation

tschlenther
Copy link
Contributor

LeipzigRouterPlanAlgorithm reroutes every trip. Currently, we always do that. For policy cases, this is unwanted and potentially a bit problematic, because we do not start from the equilibrium state. Therefore I propose a flag to trigger rerouting prior to the simulation. To account for the car-free area policy cases, I propose in #38 to delete routes from trips that touch a car-free area. Those trips should then be rerouted by PersonPrepareForSim, no need to run our custom LeipzigRouterPlanAlgorithm (which then reroutes everything).

kainagel and others added 30 commits April 13, 2023 10:41
… facilities from file. I cannot say if they are not set up correctly or if that execution path is not fully debugged, but it is something that we rarely use at VSP. The output now is as follows. Can't say if we should stick with the parking activity, or just use car interaction.

2023-04-25T04:45:12,079  WARN LeipzigRouterPlanAlgorithm:62 returning LeipzigPlanRouter
2023-04-25T04:45:12,080  WARN LeipzigRouterPlanAlgorithm:69 === old plan: ===
2023-04-25T04:45:12,083  WARN LeipzigRouterPlanAlgorithm:71 act [type=leisure][coord=null][linkId=80][startTime=undefined][endTime=01:00:00][duration=undefined][facilityId=f_auto_80]
2023-04-25T04:45:12,095  WARN LeipzigRouterPlanAlgorithm:71 leg [mode=walk][depTime=01:00:00][travTime=00:00:00][arrTime=01:00:00][route= startLinkId=80 endLinkId=80 travTime=0.0 dist=0.0]
2023-04-25T04:45:12,095  WARN LeipzigRouterPlanAlgorithm:71 act [type=car interaction][coord=[x=7000.0 | y=7000.0]][linkId=80][startTime=undefined][endTime=undefined][duration=00:00:00][facilityId=null]
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:71 leg [mode=car][depTime=01:00:00][travTime=00:13:19][arrTime=01:13:19][route= startLinkId=80 endLinkId=81 travTime=799.0 dist=7000.0 linkIds=[170, 44, 134, 133, 36, 178] travelCost=2.6666600000000003]
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:71 act [type=car interaction][coord=[x=8000.0 | y=7000.0]][linkId=81][startTime=undefined][endTime=undefined][duration=00:00:00][facilityId=null]
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:71 leg [mode=walk][depTime=01:13:19][travTime=00:00:00][arrTime=01:13:19][route= startLinkId=81 endLinkId=81 travTime=0.0 dist=0.0]
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:71 act [type=leisure][coord=null][linkId=81][startTime=undefined][endTime=undefined][duration=undefined][facilityId=f_auto_81]
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:73 ======
2023-04-25T04:45:12,096  WARN LeipzigRouterPlanAlgorithm:82 fromFacility=[org.matsim.facilities.ActivityFacilityImpl@d84b3a2 ID=f_auto_80| linkID=80| nof_activities=1]
2023-04-25T04:45:12,097  INFO NetworkImpl:419 building QuadTree for nodes: xrange(-1.0,9001.0); yrange(-1.0,9001.0)
2023-04-25T04:45:12,099  INFO NetworkImpl:428 Building QuadTree took 0.001 seconds.
2023-04-25T04:45:12,101  WARN LeipzigRouterPlanAlgorithm:141 === new plan: ===
2023-04-25T04:45:12,101  WARN LeipzigRouterPlanAlgorithm:143 act [type=leisure][coord=null][linkId=80][startTime=undefined][endTime=01:00:00][duration=undefined][facilityId=f_auto_80]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 leg [mode=walk][depTime=01:00:00][travTime=00:00:00][arrTime=01:00:00][route= startLinkId=80 endLinkId=169 travTime=0.0 dist=0.0]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 act [type=parking interaction][coord=null][linkId=169][startTime=undefined][endTime=undefined][duration=00:00:00][facilityId=null]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 leg [mode=car][depTime=01:00:00][travTime=00:13:21][arrTime=01:13:21][route= startLinkId=169 endLinkId=81 travTime=801.0 dist=7000.0 linkIds=[79, 124, 34, 35, 36, 178] travelCost=2.6711066666666667]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 act [type=car interaction][coord=[x=8000.0 | y=7000.0]][linkId=81][startTime=undefined][endTime=undefined][duration=00:00:00][facilityId=null]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 leg [mode=walk][depTime=01:13:21][travTime=00:00:00][arrTime=01:13:21][route= startLinkId=81 endLinkId=81 travTime=0.0 dist=0.0]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:143 act [type=leisure][coord=null][linkId=81][startTime=undefined][endTime=undefined][duration=undefined][facilityId=f_auto_81]
2023-04-25T04:45:12,102  WARN LeipzigRouterPlanAlgorithm:145 ======
# Conflicts:
#	src/test/java/org/matsim/run/prepare/NetworkOptionsTest.java
@tschlenther tschlenther requested a review from rakow November 24, 2023 11:28
@rakow rakow changed the base branch from v1.2 to v1.3 December 5, 2023 10:58
Base automatically changed from v1.3 to main December 11, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants