Getting Started

This page takes you from an installed simulator to a running simulation, then shows how a scenario is put together so you can build your own.

1. Install

Complete Installation: the simulator alone, or LOFT-Sim together with LOFT-Edit if you will build scenarios in the editor.

2. Run the sample scenario

Run loft-sim from the root of the LOFT-Sim checkout: the bundled scenarios and example configurations are referenced relative to it.

loft-sim run

Without arguments, loft-sim run executes the flagship sample scenario, example/scenarios/sample_demo/, and opens the browser viewer. The first viewer run downloads the pinned web-UI bundle once and caches it; loft-sim ui fetch does the same ahead of time. The scenario is a compact medical and research logistics network over the University of Michigan North Campus: four vertiports, merging and diverging corridors, contingency landing sites, three built-in vehicle types and a CNS infrastructure layer. The Glossary explains these and the other terms the documentation uses.

LOFT-Sim browser viewer running the sample scenario, with vehicle, network and simulation panels
The browser viewer streams live telemetry: the network over the base map, vehicles and route envelopes, run metrics, and details for the selected vehicle.

For a reproducible, output-only run use headless mode:

loft-sim run --nogui

Headless runs print progress and finish by listing the files they wrote. For the sample scenario those land in example/scenarios/sample_demo/outputs/, which Git ignores. See Output Files for what each file contains.

Other useful forms of the same command:

Task Command
Run a different scenario loft-sim run -c example/scenarios/default/config/simulation_config.xml
Choose the viewer explicitly loft-sim run --visualization web (default), --visualization none (headless)
Print every effective setting loft-sim dump-effective-config -c example/scenarios/default/config/simulation_config.xml
Run independent random-seed replications loft-sim batch -c example/tutorials/cases/config_batch_smoke.xml --batch-runs 4 --batch-workers 2 --batch-output-dir outputs/examples/batch_smoke

The complete command reference is on the Simulation CLI page.

3. Understand what a scenario contains

Every scenario is one self-contained folder, the same unit LOFT-Edit exports:

example/scenarios/sample_demo/
  config/
    simulation_config.xml    # wires the inputs below together; run time, outputs
    demand_config.xml        # flight requests: flows, arrival models, vehicle types
    operation_strategy.xml   # strategic, tactical and contingency policy selection
    additional.xml           # optional: geometry smoothing, measured corridor overrides
  network/
    airspace_network.osm     # the digital airspace network (corridors, vertiports, nodes, routes)
    infrastructure.osm       # optional: CNS sites (communication, navigation, surveillance)

simulation_config.xml names every other input, so pointing loft-sim run -c at it is enough. Paths inside it are resolved relative to the file, which is what keeps a scenario folder portable. The bundled scenarios also reference a shared base map, example/basemap/ann_arbor_north_campus.osm; it is viewer decoration only and is never read by the simulation.

The separation matters: the network describes what and where the airspace resources are, demand describes who wants to fly, and the operation strategy describes how the resources are managed. Changing one file while holding the others fixed is how policy comparisons stay comparable. The Configuration section documents each file.

4. Try the shipped scenarios and cases

Scenario Use it for
example/scenarios/sample_demo/ The flagship export from LOFT-Edit and the most feature-complete input set. What a bare loft-sim run executes.
example/scenarios/default/ The recommended-defaults showcase. The tutorials draw their inputs from here.
example/scenarios/case_study/ The paper’s case-study network, demand and operation strategy.
example/scenarios/m_air/ A long-corridor regional network from Ann Arbor to Detroit; runs headless, inputs still being completed.

example/tutorials/cases/ holds one configuration per feature, each run with loft-sim run -c <file> --nogui: stochastic demand (config_poisson.xml), 4D volume reservation (config_4d_volume.xml), capacity-limited departure (config_capacity_limited_departure.xml), a CNS-degraded environment (config_cns_degraded.xml), a vehicle-type override and a batch smoke test. example/tutorials/aci/ holds three Python scripts that drive the simulator through the Airspace Control Interface. Example Cases lists every case and script with its command, and the Tutorials teach the same ACI calls step by step.

5. Build your own scenario

Scenarios are built in LOFT-Edit, a JOSM-based editor maintained in its own repository. The design workflow has five stages: define the study area on an OpenStreetMap base map, create the airspace elements, smooth the corridor geometry, place the support services, then validate and export.

LOFT-Edit design workflow: map-based element creation with attributes, corridor-geometry smoothing, and the five-stage pipeline from study area to validation and export
The LOFT-Edit design workflow on the Ann Arbor case-study network: element creation (left), smoothed corridor geometry (right), and the five stages from study area to export.
  1. If you installed the simulator alone, clone LOFT-Edit next to your LOFT-Sim checkout and install both into one environment, as described under Installation; you can keep the LOFT-Sim clone you already have. Then verify the setup with loft-edit doctor.
  2. Follow the End-to-End Workflow in the LOFT-Edit manual: create a project, draw the network, create corridors, vertiports and routes, add demand, write the simulation configuration, validate, and export a package.
  3. Run the exported package from the simulator repository root:
loft-sim validate -c path/to/my_package/config/simulation_config.xml
loft-sim run -c path/to/my_package/config/simulation_config.xml

Keep the package folder together: the paths written into its simulation_config.xml are relative to that file.

Next steps

  • Tutorials: a first run, the configuration files, and runtime control through the ACI.
  • Simulation: architecture, the default model library, the viewer, batch replication and outputs.
  • Configuration: the reference for every input file.
  • ACI: observe and control a running simulation from Python.
  • LOFT-Edit: the editor manual.
  • Troubleshooting & FAQ: answers to common problems with installation, runs and outputs.