Demand-based scheduling optimizes the overlap between shift supply and staffing demand
Use Cases
- Peak hour coverage - Ensure minimum staffing during busy periods
- Event staffing - Temporary increased coverage for special events
- Flexible scheduling - Define needs without rigid shift boundaries
Basic Demand
Define a demand period with minimum and maximum staffing levels:This example describes the intended behavior once demand-based scheduling is enforced: the solver would assign employees to shifts that overlap with the demand period, ensuring at least 2 people cover the lunch rush from 11:00-14:00. Currently, the
demands array has no effect on the solution — use per-shift min/max staffing levels instead.Demand Properties
Unique identifier for the demand period
Start time of the demand period (ISO 8601 format)
End time of the demand period (ISO 8601 format)
Required skills for this demand period
Minimum number of employees required during this period. Optional — omit for no lower bound.
Maximum number of employees allowed during this period. Optional — omit for no upper bound.