add_nonstationary_generator
Model arrival processes with time-varying rates using cyclic schedules. Define multiple time windows each with its own arrival rate for realistic simulations of peaks and off-peak periods.
Instructions
Add a NonStationaryGenerator — arrival rate changes over cyclic time windows.
Each time window has its own arrival rate. The schedule repeats cyclically.
Use this for:
Morning rush (rate 20/h, 2h) + afternoon (rate 5/h, 6h)
Factory: day shift (rate 10/min, 8h) + night shift (rate 3/min, 16h)
Call center: peak hours vs off-peak
Args: name: Name for this generator (e.g., "CoffeeShop", "CallCenter") schedule: List of time windows. Each dict: {"duration": float (seconds), "rate": float (arrivals/sec)} Example: [{"duration": 7200, "rate": 0.33}, {"duration": 21600, "rate": 0.083}] batch_size: Tokens per arrival (default: 1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| schedule | Yes | ||
| batch_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |