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.
TL;DR
pip install agentevac
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.11+, SUMO, OpenAI API key.
# Install from PyPI
pip install agentevac
# Or install in development mode from source
git clone https://github.com/denoslab/AgentEvac.git
cd AgentEvac
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.
Metadata
Release files for agentevac 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentevac-0.2.1.tar.gz | 99.8 kB | With provenance | Details for agentevac-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentevac-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for agentevac-0.2.1-py3-none-any.whl |
Total release size: 191.7 kB
Release files / agentevac-0.2.1.tar.gz
| Download URL | agentevac-0.2.1.tar.gz |
|---|---|
| Size | 99.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5878e4bf85be4d1b1f6389392d03161dccb7af62a033591d07d4c3bb329f05a4
|
|
BLAKE2b-256 checksum How to use checksums |
76aee7c1c6b7abe854ef453b7ebd87923ae2ff88ffcf778addc8569f6679d3f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.
Transparency logRelease files / agentevac-0.2.1-py3-none-any.whl
| Download URL | agentevac-0.2.1-py3-none-any.whl |
|---|---|
| Size | 91.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
029df1c4a0e13f9938bacb8bbc66685779ee012d73fd043ecbbf4df76389d377
|
|
BLAKE2b-256 checksum How to use checksums |
c8492292081f7e095437ceecf826d78c1e94ae86afb4a51d5f18a6ba820d01b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.
Transparency logSecurity for agentevac 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for agentevac-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.