Skip to content

FCFS Allocation

First come first served (FCFS) is a simple method for allocating capacity to customers, and it operates pretty much as you would expect: customers whom arrive first are offered products, no attempt is made to optimize for anything.

This process of capacity allocation will also occur if no RM optimization algorithm is applied, but the explicit FCFS step type allow the user to be intentional about selecting this algorithm, and to attach snapshot filters to the simulation if desired.

example.yaml
rm_systems:
  basic_emsr_b:
    processes:
      DCP:
      - step_type: untruncation
        algorithm: em
        kind: leg
      - step_type: forecast
        algorithm: additive_pickup
        kind: leg
      - step_type: fcfs #(1)!

  1. The step_type for first come, first served is fcfs.

FcfsStep

Bases: RmStep

snapshot_filters class-attribute instance-attribute

snapshot_filters: list[Any] = []