activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

mandatory_scheduling tour choice fails if no time window for second tour

Open toliwaga opened this issue 8 years ago • 3 comments

mandatory_scheduling fails with no non-zero probability alternatives for both work and school tours if the first tour chosen is the last possible tour of the day and so all alternatives are -999

For now, I simply assigned tours starting before previous tour ends -100 isntead of -999

# FIXME - Subsequent tour must start after previous tour ends,(tour_num > 1) & (start < end_previous),-999
Subsequent tour must start after previous tour ends,(tour_num > 1) & (start < end_previous),-100

toliwaga avatar Oct 28 '16 22:10 toliwaga

non_mandatory_scheduling has the same problem, and I am implementing the same patch in configs/tour_departure_and_duration_nonmandatory.csv until we have a more satisfactory solution.

toliwaga avatar Oct 28 '16 23:10 toliwaga

The CT-RAMP has the same issue. We treated it this way: if the 1st tour is scheduled to the last time period, all subsequent tours are scheduled to last time periods too. By setting a util of -100, essentially you allowed scheduling 2nd or 3rd tours before the first tour.

wusun2 avatar Oct 28 '16 23:10 wusun2

correct. we're just parking this issue here for now until we correct these models.

bstabler avatar Nov 03 '16 20:11 bstabler