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.