Forecast-based staffing

Shift optimization for delivery demand

The broader FIRST workflow carries demand through forecast review, configurable labor rules, coverage review, open blocks, driver acceptance, and publication. Within that workflow, FIRST's custom optimizer converts approved in-scope demand into proposed shifts.

Static chart showing hourly demand as a dark step line and solver-produced driver blocks tiled beneath it.

A clear operating flow

How it works

1

Build hourly demand

Review forecast orders by hour and the configured deliveries-per-driver-hour assumption before approving required driver coverage.

2

Account for existing work

Subtract applicable scheduled shifts and restrict the solve to the posting window so the proposal addresses remaining, postable demand.

3

Solve and review blocks

The custom optimizer converts approved in-scope demand into shifts within configured length bounds, then FIRST carries them through review and publication.

Built for daily decisions

What teams can coordinate

Weekly hourly demand grid

Represent staffing need as seven days of hourly integer demand before generating blocks.

Bounded shift lengths

Convert approved in-scope demand into proposed shifts between configured minimum and maximum lengths.

Existing-shift subtraction

Reduce residual demand by applicable scheduled coverage before asking the solver to create additional blocks.

Coverage run view

Review demand, existing coverage, blocks added by the run, open or assigned state, shortfall, surplus, and run statistics.

Move from forecast to approved staffing demand

Shift planning begins with a forecast. FIRST represents expected orders by hour and converts that forecast into drivers needed per hour using a configured deliveries-per-driver-hour value. That creates a seven-day grid of staffing demand for review.

Promotions, weather, events, location changes, menu changes, and recent operating disruptions can make historical patterns less useful. The broader FIRST workflow gives managers a place to review the planning horizon and assumptions before approving demand for shift generation.

Subtract coverage already on the schedule

The API worker looks up existing shifts around the target week and subtracts coverage hour by hour. Demand is clamped at zero so scheduled coverage does not create negative staffing need. This produces the residual grid that the solver needs to address.

The worker also limits the solve to the posting window. Hours outside that scope are zeroed, and flat start and end boundaries prevent generated shifts from beginning before or ending after the postable range. The current linear solver explicitly prevents a shift at the end of Sunday from wrapping around and appearing to cover Monday at the beginning of the same week.

These details matter because a proposed shift is not useful if it falls outside the configured scheduling window. FIRST validates generated shifts against the same scoped demand before they proceed through the surrounding workflow.

Convert approved demand into bounded shifts

FIRST’s custom optimizer accepts approved hourly demand, configured minimum and maximum shift lengths, and posting boundaries. It converts the in-scope demand into proposed shifts that fit those configured bounds.

The surrounding FIRST workflow converts the proposal into timezone-aware schedule records, validates coverage and lengths, and carries the shifts into review.

The optimizer does not guarantee forecast accuracy, labor-rule coverage, driver acceptance, or publication. FIRST handles forecast review, configurable labor rules, open blocks, acceptance, and publication around the optimizer, with manager judgment remaining essential.

Review coverage at hourly resolution

The Dispatch run view follows the visual language used in the graphic above. A dark step line represents demand. Stacked staffing bars distinguish existing shifts from shifts added by the run, including whether a run-added shift is assigned or still open. Red hatching identifies shortfall, while a blue cap and hatch identify staffing above the demand line.

The view also identifies hours outside the run scope, hours already past when the run executed, cutoff and horizon markers, and a Gantt-style strip for shifts added on the selected day. Operators can inspect a shift’s start, end, length, assignment state, surplus hours, and whether it began before the run.

This is a review interface, not a promise that every generated block will be claimed or worked. Managers still need a process for publishing, driver communication, unclaimed blocks, attendance, and day-of changes.

Understand what the run records

FIRST records operational context such as timezone, role, run time, posting window, demand hours, residual demand, existing shifts considered, generated shift count, generated hours, unmet hours, and shift-length range.

The separate run view can compare hour-by-hour demand and coverage and show what the run added. Those records make a staffing proposal auditable in operational terms: the team can see the demand presented, the coverage already present, the added blocks, and any surplus.

Read the planning graphic as an example

The generated animation is an illustrative test fixture, not a customer run. It shows how hourly demand and proposed shifts can be reviewed. Its static frame is available when motion is reduced or unsupported, and its text alternative describes the example without requiring the viewer to interpret color.

Queueing does not remove manager responsibility

Forecasting source includes controls for automatically queueing upcoming runs. Automation can make a repeated planning process easier, but it also increases the importance of stable inputs, posting windows, ownership, and review. A queued run should have a named person responsible for checking the result and responding to a failure.

Document when forecasts refresh, when a run can be queued, when blocks become visible to drivers, and what happens if demand changes. If existing shifts are edited after a run, the manager should understand whether and when another run is appropriate.

Carry shifts through rules and publication

The optimizer converts approved demand into proposed shifts. The broader FIRST workflow applies configurable labor rules, review, open-block handling, driver acceptance, and publication. The organization remains responsible for configuring and reviewing schedules against its policies and applicable requirements.

Use generated blocks as a staffing proposal with transparent coverage context. Ask whether the forecast is reasonable, whether the shift bounds fit the role, whether existing coverage is accurate, whether the posting window is correct, and whether the resulting surplus is acceptable. Preserve those decisions alongside the run when they affect future planning.

Common questions

Frequently asked questions

How does FIRST calculate drivers needed?

The forecasting workflow converts orders per hour into drivers needed per hour using the configured deliveries-per-driver-hour input.

What does the custom optimizer do?

It converts approved in-scope demand into proposed shifts within configured length bounds. Forecast accuracy, labor rules, review, driver acceptance, and publication belong to the broader FIRST workflow.

Does the solver account for shifts already scheduled?

The API worker subtracts applicable existing shifts from hourly demand before solving the remaining in-scope demand.

Does a generated block publish automatically?

Proposed shifts continue through the configured FIRST review, open-block, driver-acceptance, and publication workflow. Confirm account behavior and manager ownership before launch.

Does the optimizer guarantee forecast accuracy or labor compliance?

No. FIRST handles forecast review and configurable labor rules around the optimizer. The organization remains responsible for approving inputs, policy, and publication.

Can the workflow run automatically?

Forecasting controls can queue runs for upcoming weeks. Exact scheduling, permissions, and account availability should be confirmed with FIRST.

What does the coverage chart show?

The Dispatch run view shows hourly demand, existing coverage, run-added assigned and open shifts, shortfall, surplus, scope, and a Gantt-style strip of generated shifts.