Agent-based wildfire evacuation simulator using SUMO and LLM-driven agents
Project description
Agentic Simulator for Wildfire Evacuations
An agentic simulator for wildfire evacuations that couples SUMO traffic simulation with LLM-driven agents. Agents follow the Protective Action Decision Model (PADM), maintaining probabilistic beliefs about hazard states and making real-time departure, routing, and destination decisions under uncertainty.
Background
Wildfire evacuations in the wildland-urban interface (WUI) are high-risk and time-critical. Existing simulations rely on behaviorally naive models that fail to capture dynamic human cognition — fear, trust in authorities, social influence, and evolving risk perception. This project uses LLM agents to encode psychologically grounded, communicative, and adaptive evacuation behavior, enabling rigorous testing of warning strategies and route policies before crises occur.
Objectives
- Model how information uncertainty ($\sigma_{info}$), communication delays, and social trust ($\theta_{trust}$) affect evacuation decisions
- Compare three information regimes: no-notice, alert-guided, and advice-guided evacuation
- Measure behavioral outcomes (departure timing, route entropy, decision instability) and safety/efficiency trade-offs (hazard exposure vs. travel time)
- Support calibration against historical wildfire after-action reports
Quickstart
Requirements: Python 3.9+, SUMO, OpenAI API key.
# Install the package and its dependencies
pip install -e .
# Set required environment variables
export SUMO_HOME=/path/to/sumo
export OPENAI_API_KEY=your_key_here
# Run a simulation (interactive, with SUMO GUI)
python -m agentevac.simulation.main --sumo-binary sumo-gui --scenario advice_guided --messaging on
# Run headless with metrics collection
python -m agentevac.simulation.main --sumo-binary sumo --scenario no_notice --metrics on
# Record LLM decisions for deterministic replay
python -m agentevac.simulation.main --run-mode record --scenario alert_guided
# Replay a previous run (no API calls)
python -m agentevac.simulation.main --run-mode replay --run-id 20260209_012156
Scenarios: no_notice | alert_guided | advice_guided
Key flags: --messaging on/off, --events on/off, --web-dashboard on/off, --overlays on/off, --metrics on/off
Docker
# Build the image
docker compose build
# Place scenario files in ./scenario/ (Repaired.sumocfg, *.net.xml, *.rou.xml)
mkdir -p scenario outputs
# Run (OPENAI_API_KEY is read from your shell environment)
docker compose run simulation --scenario advice_guided --metrics on
# Override scenario or flags
docker compose run simulation --scenario no_notice --messaging off --metrics on
Run artifacts are written to ./outputs/ on the host.
Parameter Sweep & Calibration
agentevac-study \
--reference reference_metrics.json \
--sigma-values "20,40,60" \
--delay-values "0,5" \
--trust-values "0.3,0.5,0.7" \
--scenario-values "advice_guided" \
--sumo-binary sumo
This runs a grid search over information noise, delay, and trust parameters and fits results against a reference metrics file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentevac-0.1.0.tar.gz.
File metadata
- Download URL: agentevac-0.1.0.tar.gz
- Upload date:
- Size: 100.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e7dec946f2fdc28591a1ba10f6f973157bb8c2ce0be820dd95cebf8a95d7ae0
|
|
| MD5 |
1d3e41831a331eda3abfc64f213fbd94
|
|
| BLAKE2b-256 |
985b7ba04961029ae93f1ff738208e555f83b6f3a239def7fa4cb3ccd59d475a
|
Provenance
The following attestation bundles were made for agentevac-0.1.0.tar.gz:
Publisher:
release.yml on denoslab/AgentEvac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentevac-0.1.0.tar.gz -
Subject digest:
2e7dec946f2fdc28591a1ba10f6f973157bb8c2ce0be820dd95cebf8a95d7ae0 - Sigstore transparency entry: 1044405444
- Sigstore integration time:
-
Permalink:
denoslab/AgentEvac@b241db5aca9c1d1f91cc90b8ba904db345540b9e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/denoslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b241db5aca9c1d1f91cc90b8ba904db345540b9e -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentevac-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentevac-0.1.0-py3-none-any.whl
- Upload date:
- Size: 92.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e8a4b0116a495e20cb9edf5b50db494267c2d8cef625f82f228cce1efd5296d
|
|
| MD5 |
032e5f4a638c5becb67cceb6242c71bc
|
|
| BLAKE2b-256 |
d76e819dcfe72d1b6c2bfe3b0e1996ef0e824301e9bc68d447c2fcb69edae22a
|
Provenance
The following attestation bundles were made for agentevac-0.1.0-py3-none-any.whl:
Publisher:
release.yml on denoslab/AgentEvac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentevac-0.1.0-py3-none-any.whl -
Subject digest:
0e8a4b0116a495e20cb9edf5b50db494267c2d8cef625f82f228cce1efd5296d - Sigstore transparency entry: 1044405591
- Sigstore integration time:
-
Permalink:
denoslab/AgentEvac@b241db5aca9c1d1f91cc90b8ba904db345540b9e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/denoslab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b241db5aca9c1d1f91cc90b8ba904db345540b9e -
Trigger Event:
push
-
Statement type: