Skip to content

Core concepts ​

grABM models individuals whose explicit schedules and choices interact through a shared network and limited destination capacity. The aggregate result emerges from those individual actions. It does not infer a daily routine from demographic labels or generate continuous pedestrian physics.

Foundations at a glance ​

ConceptMeaning in grABMRead more
AgentOne resolved individual, with preferences, placement, and a daily schedule.Profiles
Profile and cohortA profile defines behavior; a cohort creates a count of people using that profile and placement rules.Population and inheritance
Graph and facilityThe graph supplies movement connectivity; a facility supplies activities at an access node.Space and routing
Agenda and decisionAn agenda specifies scheduled activities; a decision asks whether and where to do an activity at a particular time.Schedules and decisions
EventA timed state change, such as arrival, processed in a stable queue.Event-based simulation
Occupancy and reservationA person physically present versus a slot committed to an incoming or returning person.Capacity
ObservationAn aggregate of recorded activity within a reporting interval.Reading results
Seed and provenanceReproducible random choices and metadata identifying the executed input and result.Determinism

Scenario and run ​

Scenario holds immutable population, demographic profiles, mobility, and behavior configuration. Simulation combines it with a graph and facilities. Each call to run() supplies seed and time settings and starts fresh execution state.

RunResult contains input: { graph, facilities, scenario, run }, resolved agents, trips, observations, diagnostics, warnings, and provenance. Analytics, playback, and storage use this self-contained data without needing a running simulation.

Units and topology ​

  • Positions and edge lengths use metres; speeds use metres/second.
  • Schedules, run times, penalties, dwell, and playback time use minutes.
  • Edge throughput capacity uses persons/hour; facility capacity uses persons.
  • Facilities reference an access node. Edges explicitly specify direction and modes.
  • A drawn geometric crossing does not imply a connected graph. Scenario creation determines topology.

Population and needs ​

Population may contain explicit agents, synthetic cohorts, or both. Cohorts resolve into agents deterministically, using explicit profiles, schedules, and home/gateway tags. Household membership and authored activity needs are supported contracts. A household record does not by itself synthesize linked tours or escort behavior. Hosts author needs and decisions; recorded need outcomes distinguish fulfillment from movement.

Time and capacity ​

The engine advances between events rather than stepping every person every minute. Fixed protected anchors constrain discretionary decisions. Free-flow travel, dwell, and the next anchor must fit; capacity is reserved before departure and occupied on arrival.

Nominal capacity is used for utilization. Hard commitment capacity uses the configured maximum ratio; absent a ratio, the default is 1.0. Values above 100% represent reported overload, not extra nominal capacity.

Playback advances over already recorded results. Its speed does not change simulation outcomes. At five simulated minutes per real second, a 24-hour result takes 288 seconds at 1× speed.

Ownership ​

ConcernOwner
Source parsing, units, population assumptionsScenario creation
Event execution, deterministic resultEngine
Canvas, camera, renderer, render loopHost application
Replay scene objects and their disposalReplay layer
Database, authentication, storage policyHost application

Continue with event-based simulation, reading results, and library architecture.

Documentation for the grABM library.