Closed fredshone closed 3 years ago
times are now guaranteed to be ordered
Hi @KasiaKoz - would you be able to review some changes Fred and I have made to Elara? The idea is to process the plans output in conjunction with the road pricing input file to work out which agents have paid tolls, how much and on which links.
The logic is essentially:
Fred's added in a sample roadpricing.xml
file and made the changes needed to the elara underbelly (inputs.py
and config.py
) and I've added in a new plan handler and some corresponding unit tests.
Thank you!
@sarah-e-hayes WIP.
I've added a road pricing input. So you can now add road pricing as a requirement to a handler. eg:
requirements = ["road_pricing"]
The road pricing is as follows, note that this is an awkward combination of dicts and list (the cost start times are not necessarily in order). In simulation agents should enter a single toll zone in the morning (links 2-3 and 3-4). In the afternoon agents should enter two toll zones (4-3 and the 2-1).