Skip to content

Reading results and reproducing runs ​

A resolved run() means execution completed. It does not mean every person reached every desired activity. Inspect movement, activity fulfillment, and constraints together.

What a result contains ​

Result fieldQuestion it answers
inputWhat normalized graph, facilities, scenario, and run settings were executed? Defaults are explicit here.
agentsWhich individuals were resolved, with what effective demographics, preferences, placement, and schedules?
tripsWho attempted to travel where, when, by which mode, and with what outcome and edge traversals?
needOutcomesHow were authored activity needs fulfilled? A completed movement alone does not prove sufficient activity participation.
facilityBucketsHow did facility occupancy, reservations, arrivals, departures, and activity starts change?
edgeBucketsHow many traversals entered and exited each edge, with what travel time and flow pressure?
diagnosticBucketsWhich causes, cohorts, activities, modes, and outcomes explain events in each time bucket?
decisions, warningsWhat prevented demand from being served, or needs attention in the modeled network?
diagnostics, provenanceHow much work was processed, and which input, engine, ordering, and random streams produced it?

Results are self-contained plain data. Use analytics to derive metrics, playback to view recorded travel, and persistence to save and restore them. They contain no resumable event queue and no complete event log.

Trips, activities, and demand ​

A trip's completed outcome means the agent arrived. It does not mean its dwell has finished or every authored need was met. unreachable and capacity-rejected indicate failed travel; cancelled can describe an unfinished trip at the run horizon.

decisions contains concise decision and trip outcomes: reason, schedule reference, selected destination, and candidate-filter counts. Voluntary staying is distinct from closure, unavailable activity, capacity, unreachable routes, insufficient time, or a protected activity. It is not unmet demand. Aggregate diagnostic buckets derive from these records. A trip can contribute both a started and a completed outcome; counts are not unique people. This is not a complete engine event log.

The demo's agent inspector separates intended schedules from recorded trips and outcomes. Select a moving dot in either graph view or use the searchable agent list.

Low movement can mean long activities, missing decisions, unreachable destinations, capacity constraints, or people outside the modeled area. Check effective agent schedules and constraint outcomes before interpreting it as low demand.

Observation buckets ​

Buckets start at run.startMinute, with the configured interval and a duration that must divide the run duration exactly. An event on an interior bucket boundary belongs to the next bucket; the final endpoint is clamped to the last bucket.

Facility occupancy and reservations are values after that bucket's recorded deltas. They are not time-weighted averages or within-bucket maxima. A person who arrives and leaves in one bucket can contribute an arrival and a departure without increasing its ending occupancy. capacityRatio uses (occupancy + reservations) / nominal capacity, so a high commitment ratio is not necessarily a crowded room at that instant.

Edge entries and exits are counts, not people currently standing on an edge. freeFlowMinutes and actualMinutes sum traversal durations attributed to the entry bucket; they are not mean trip durations. Diagnostic counts aggregate event outcomes; a single trip can contribute both started and completed, so summing all outcomes does not give a unique-person count.

Playback uses recorded traversal timing to place moving people between nodes. Its smooth frames should not be interpreted as a continuous physical interaction model. Reporting resolution is independent of the congestion window.

Determinism and randomness ​

Randomness is seeded. Repeating the same normalized input and seed with the same engine reproduces the run, and every run starts from fresh mutable state. A different seed changes only behavior that draws random values; entirely fixed inputs may produce the same trips even though the input and result hashes change.

Named streams separate population, schedule sampling, anchor assignment, and destination choice. Fixed schedule values need no draw; triangular distributions sample bounded variation. Destination and anchor selections use seeded weighted sampling. Legacy mode choice minimizes cost; mobility.travelChoice opts into seeded probabilistic mode selection. Inspect the saved policy rather than inferring behavior from a stream label. See travel policies.

Streams separate random sequences, not the model's causal dependencies. Changing population or schedules can change draw order, capacity competition, and downstream choices. The same seed does not guarantee unchanged individual trips after a scenario edit. Stable event ordering also makes explicit agent order significant.

provenance.inputHash identifies normalized input. runHash identifies the generated result, including its provenance. Keep the engine version and saved input alongside these hashes; a hash is not a calibration certificate or proof that a scenario is valid for a real-world decision. Optional source metadata records application provenance.

Compare scenarios responsibly ​

For a controlled comparison, keep population assumptions, run window, observation interval, behavior settings, analytics options, and engine version aligned except for the variable being studied. Use the same set of several seeds for each alternative, and inspect variation as well as average scores.

Check network warnings, completed and unmet demand, occupancy commitments, and peak causes before interpreting a score. Demographic labels do not create behavior unless profiles explicitly provide it. Household membership does not create joint tours. The built-in rules are synthetic and uncalibrated: calibration requires observed data relevant to the decision, and validation should use evidence beyond the fitted data.

See behavior and limitations for current model boundaries and profiles for explicit demographic and behavioral assumptions.

Conditioned journey accounting ​

For externally supplied local demand, trip.conditionedJourney retains the source ID/revision, scope, vehicle contribution and optional source-purpose, primary-mode and initial-observation labels. The trip's activity and routed mode describe the executed local leg; a source transit trip can therefore have a walking local leg. agents[].conditionedPresence records actual local presence intervals; playback hides agents between visits. See conditioned journeys.

Keep personEntries, vehicleEntries and unknownVehicleContributionPersonEntries distinct in edge reports. A supplied passenger with unknown vehicle allocation is retained as a person movement, not counted as another known car or declared to have zero congestion contribution.

Compare against the original supplied ledger, including unresolved records and journeys that never started. Completed trip records alone are not the coverage denominator. Agreement with supplied modes, purposes or departure times is input reproduction; it does not independently validate those choices. Same-facility journeys reuse an occupied place and must not be interpreted as a second occupant.

Documentation for the grABM library.