Simulating a Semi-Flex Transit service
- Python 3.12+
- Bash 5+
- If you don't have a virtual environment create one:
python -m venv .venv - Activate the virtual environment:
source .venv/bin/activate - Create an active queue folder if it does not exist:
mkdir -p ./queues/active - Copy
sample.confinto your active queues directory make as many copies as possible for all different parameters you want to try. i.e.:cat sample.conf > ./queues/active/{first,second,third}.conf - Run the simulation:
./run.sh
| Key | Scenario | Description |
|---|---|---|
| Zero | ScenarioZero | Scenario 0: no short-notice riders are accepted |
| One | ScenarioOne | Scenario 1: short-notice riders are considered case by case |
| AllBelowCutoff | ScenarioAllBelowCuttoff | All Trips below the Cutoff are automatically accepted |
./package-output.sh [FOLDER NAMES ...]