Skip to main content

EventRetentionScenario

Robotics scenarios · Implementation: mlsysim/engine/scenario_definitions/robotics/supervision.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Event-triggered retention: pre_trigger before and post_trigger after each of events_per_day events, against keeping the whole operating_day.

Notes

Equation: Retained duration equals events_per_day*(pre_trigger+post_trigger); its share divides by operating-day duration.

Assumptions: Every event creates a distinct counted retention window of the same length.

Excludes: Merging overlapping windows, encoding overhead, and daily retention capped to the operating day.

References

Derivation: Retained duration equals events_per_day*(pre_trigger+post_trigger); its share divides by operating-day duration. This is declared scenario accounting rather than a fitted empirical law.

Examples

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.WarehouseEventTriggeredRetention
>>> value = scenario.window
>>> str(value.units)
's'

Attributes

Name Description
events_per_day
kept_per_day Daily retained minutes, counting each event window independently even if windows
kept_share Retained event-window time divided by operating-day duration, dimensionless.
operating_day
post_trigger
pre_trigger
reduction Continuous-retention duration divided by event-retention duration, requiring nonzero
window Seconds retained around each event, adding pre-trigger and post-trigger duration.

pre_trigger

Type: Quantity.

Declared default: required.

post_trigger

Type: Quantity.

Declared default: required.

events_per_day

Type: int.

Declared default: required.

operating_day

Type: Quantity.

Declared default: required.

window

engine.scenario_types.EventRetentionScenario.window

Seconds retained around each event, adding pre-trigger and post-trigger duration.

Equation: (pre_trigger + post_trigger).to('s').

kept_per_day

engine.scenario_types.EventRetentionScenario.kept_per_day

Daily retained minutes, counting each event window independently even if windows overlap.

Equation: (events_per_day * window).to('minute').

kept_share

engine.scenario_types.EventRetentionScenario.kept_share

Retained event-window time divided by operating-day duration, dimensionless.

Equation: (kept_per_day / operating_day).to('').magnitude.

reduction

engine.scenario_types.EventRetentionScenario.reduction

Continuous-retention duration divided by event-retention duration, requiring nonzero retained time.

Equation: 1 / kept_share.

Back to top