You are here:
How Does Workforce Scheduling Optimization Work?
Workforce Scheduling optimization scores candidate schedules against your scheduling policy and appointment priorities, then applies the highest-scoring result. Optimization is relevant to field work only.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise and Unlimited Editions |
Why You Should Optimize
Public sector field operations rarely follow a predictable pattern. A batch of restaurant inspections due before a permit deadline. An urgent welfare check that requires both a caseworker and a benefits specialist at the same address. A compliance inspector with the right certification suddenly unavailable for a scheduled site visit. Each situation demands a fast, accurate scheduling decision — and in agencies managing dozens of workers across large geographic territories, those decisions compound quickly.
Manual scheduling struggles to keep up. Even skilled dispatchers face practical limits when balancing worker skills, territory coverage, constituent urgency, regulatory deadlines, and travel efficiency.
Workforce Scheduling’s optimization engine handles this complexity for you. Whether your agency handles licensing and permitting inspections, social program home visits, emergency response deployments, or investigative field work, the engine generates schedules that reflect your priorities and constraints — minimizing travel time, reducing overtime, preventing missed visits, and keeping your operations aligned with service-level agreements.
The Optimization Process
Schedule optimization is built from a few components that you can configure to fit your business needs.
| Component | Description |
|---|---|
| Scheduling policy | A flexible, code-free way to configure a set of rules and objectives that guide the schedule optimizer. Use a scheduling policy to promote or de-emphasize factors such as business priorities, travel time, and customer preferences. When you optimize your team’s schedule, you select a guiding scheduling policy. |
| Work rule | A rule that refines the list of candidates for a service appointment by filtering out service resources that don’t match the rule. For example, the Match Skill rule ensures that service appointments are assigned only to service resources with the required skills. A scheduling policy can have one or more work rules. |
| Service objective | A configurable directive that guides the engine to create an optimal schedule based on your scheduling priorities. You can weight service objectives to prioritize one over another. The engine scores every candidate schedule against the active service objectives; the highest-scoring schedules are preferred. |
For every optimization run, Workforce Scheduling repeats these steps until all in-scope appointments are placed or the schedule is full.
- Collect data. The engine reads the service appointments, service territories, and service resources in scope for the run’s time horizon.
- Order by priority. The engine orders in-scope appointments by their Scheduling Priority value and evaluates them highest-first. When a service appointment is created and there’s no explicit priority set by the user, the priority is inherited from the parent Work Order or Work Order Line Item via fixed mapping: Critical=1, High=75, Medium=90, Low=100. When you create a new appointment (Visit) in the scheduling flow, you set the Visit Priority field, which uses the same mapping. You can assign dynamic priorities, such as values that increase as due dates approach. Optimization considers priority values when it schedules appointments to time slots. See Appointment Scheduling Priority for Optimization for the full priority model, including dynamic priorities and priority-penalty math.
- Filter candidates with work rules. The engine compares each appointment’s details — territory, required skills, arrival window — to the scheduling policy’s work rules, and removes resources that don’t qualify. For example, resources without the required skill, resources outside the territory, or resources unavailable during the appointment’s window.
- Score with service objectives. The optimization engine searches for available time slots between a service appointment’s earliest start permitted and due date (or arrival window start and end dates if they’re available) within the time horizon. The engine scores each remaining combination of time-slot and candidate-resource against the scheduling policy’s service objectives (travel time, resource utilization, customer preferences) and picks the highest-scoring pair.
How Rule Violations Are Handled
The engine tries to eliminate rule violations by rescheduling or unscheduling appointments that break a work rule. To keep a violating appointment in place, pin the appointment or move it to a status that pin criteria protect. See Configure Optimization for Field Work in Workforce Scheduling for how to configure pin criteria.
How In-Flight Appointments Are Handled
Appointments that have already started — those with Scheduled Start time in the past — are treated as pinned. The optimizer doesn’t move or unschedule them. Downstream travel time can still change if the appointment that follows shifts. Appointments that haven’t started yet can still be rescheduled during a run to find a higher-scoring placement or resolve an overlap.
What Time Horizon the Engine Uses
The optimization horizon is the time window the engine considers, both for input data and for placing appointments. It includes active resources, operating hours, shifts, and in-scope appointments. Each optimization type uses a different horizon.
- Global Optimization uses the date range you specify at trigger time, up to 30 days.
- In-Day Optimization runs against the current day and the day that follows.
- Resource Schedule Optimization runs against a single resource’s day.
Longer horizons give the engine more room to improve the schedule, but they also increase runtime. Match the horizon to what you actually need to reoptimize.
See Also
- Optimize Your Schedule in Workforce Scheduling
- What’s Workforce Scheduling Optimization?
- Create and Manage Scheduling Policies in Workforce Scheduling
- Create and Manage Work Rules in Workforce Scheduling
- Create and Manage Service Objectives in Workforce Scheduling
- Prioritizing Service Appointments for Optimization
