---
schema_version: "1"
id: d6546f5a16ae3ae23349007a587cb3faf0b922d2344225f5694c9c8d11f27ae6
title: Setting Up Priority Values With Enhanced Scheduling and Optimization
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/pfs_scheduling_priority_optimization_with_enhanced.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.pfs_scheduling_priority_optimization_with_enhanced.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ebc10847d945902607a60250a73887944f8a779657707c8a53dea3dc5853a44e
description: When the optimization engine calculates the score for a schedule, it considers the penalty applied to each appointment that can’t be scheduled. When the engine compares two schedules, the one with the lowest total penalty is preferred.
products:
  - Field Service
release: "264"
---
# Setting Up Priority Values With Enhanced Scheduling and Optimization

When the optimization engine calculates the score for a schedule, it considers the penalty applied to each appointment that can’t be scheduled. When the engine compares two schedules, the one with the lowest total penalty is preferred.

The total penalty for not scheduling an appointment is composed of two parts:

- Base penalty. The penalty value assigned when an appointment isn’t scheduled. This value is calculated as the sum of all service objective weights configured in the scheduling policy + 100. For example, if a scheduling policy is configured with objective weights.
    - Minimize Travel: 100
    - Schedule ASAP: 20
    - Preferred Resource: 50The weight of the base objective is (100+20+50) + 100 = 270. This formula makes sure that the penalty for not scheduling an appointment is always higher than the penalty for scheduling an appointment.
- Priority penalty. The penalty value is based on the priority value. The priority penalty value is calculated as the sum of all service objective weights configured in the scheduling policy x 50 x the percentage corresponding to the priority value).

When you use a 1 to-10 priority scale, the penalty percentage values assigned to priority values are nonlinear.

 
| Priority Value | Penalty |
| --- | --- |
| 1 | 100% |
| 2 | 80% |
| 3 | 60% |
| 4 | 20% |
| 5 | 15% |
| 6 | 10% |
| 7 | 8% |
| 8 | 6% |
| 9 | 4% |
| 10 | 2% |

When you use a 1 to 100 scale, the penalty percentage values assigned to priority values are linear.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20863e186">Priority Value</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20863e189">Penalty</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">1</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">100%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">2</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">99%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">3</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">98%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">4</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">97%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">5</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">96%</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d20863e186 d20863e189 ">Etc</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">97</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">4%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">98</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">3%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">99</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">2%</td>

        </tr>
        <tr class="">
          <td data-label="Priority Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e186 ">100</td>

          <td data-label="Penalty" class="slds-cell-wrap" style="vertical-align:top;" headers="d20863e189 ">1%</td>

        </tr>
      </tbody>
    </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/images/icon_note.png)

Note

Any priority value outside the scale is given a penalty percentage value of 0%.

For example, if an appointment has a priority of 3 and the scheduling policy is configured with these the following objective weights.

- Minimize Travel: 100
- Schedule ASAP: 20
- Preferred Resource: 50

The total penalty for not scheduling the appointment is base penalty + priority penalty. Using a 1 to-100 scale:

- Base penalty = (100+20+50) + 100 = 270
- Priority penalty = (100+20+50) X 50 X 0.98 = 8,330

The total penalty for not scheduling the appointment = 270 + 8,330 = 8,600.

The total penalty calculation provides the optimizer guidance on which appointments are more important to schedule and which appointments can be left off the schedule when there’s no availability to schedule all appointments. Consider a lower priority appointment with priority 53. The total penalty for not scheduling that appointment is ((100+20+50) + 100) + ((100+20+50) X 50 X 0.48) = 4,350.

Because the penalty for not scheduling a priority 3 appointment is higher than the penalty for not scheduling a priority 60 appointment, the engine prefers a schedule where the priority 3 appointment is scheduled.

The nonlinear penalty percentage for the 1 to-10 scale and the broader 1 to-100 scale is designed to handle scenarios where scheduling multiple lower-priority appointments is more valuable than scheduling a single higher-priority appointment. For example, a priority 1 appointment incurs a penalty of 8,770 for not being scheduled, while a priority 3 appointment incurs a penalty of 8,600. While the penalty for not scheduling a priority 3 appointment is less than the penalty for scheduling a priority 1 appointment, the penalty for not scheduling two priority 3 appointments is higher (8,600x2=17,200 which is greater than 8,770) and preferred over one priority 1 appointment.

Using the scale of priority values, you can choose values for service appointments so that a higher-priority appointment can still outweigh multiple lower-priority appointments. For example, assuming scheduling an emergency appointment is more important than scheduling two installation appointments. You can set the priority value for the emergency to 1 and the priority value for an installation appointment to 53. The penalty incurred for scheduling an emergency at priority 1 is 8,770 and the penalty incurred for scheduling two installation appointments at priority 53 is 8,700, such that the penalty incurred for scheduling the emergency is higher than the total penalty incurred for scheduling two install appointments.