Skip to content

Developers

MILES combines Python stages with three Java engines. This section documents the code: which classes and scripts MILES adds or changes, how they are wired, and how to extend them.

  • Population code

    The CVAE library and the post-processing steps.

  • SILO engine changes

    Residential location, car ownership and workplace choice in the engine.

  • MAST engine

    The abm.models.maryland package: generation, destinations, mode choice.

  • MATSim runner

    RunBaltimoreToll: scoring, value of time, tolls.

  • Pipeline

    Orchestration, plans converter, skims and accessibility.

  • Estimation package

    One folder and notebook per model, with Biogeme.

Conventions

  • Coordinate system: EPSG:26985.
  • Skims: gzipped CSV FROM,TO,VALUE.
  • Coefficients live in CSV files read by the engines; every file is written by a script from the estimation results, never by hand.
  • Unit checks compare engine utilities with Biogeme's \(X\beta\) (landuse/checks/check_*.py, activity/checks/check_engine_utilities.py).
  • Paths: each script keeps the project root in a constant at its top (ROOT or V).