Real-time planning: focused replanning
There are many situations where Real-time planning is necessary.
When planning is already over-constrained, ie, all shifts are at full capacity and many visits remain unassigned, adding important visits that must be assigned is challenging.
By default, the initial phase of solving tries to assign every unassigned visit, including lower-priority visits that a previous planning run left unassigned. Attempting to place these lower-priority visits takes a substantial amount of time and leaves less time for more promising optimizations.
To overcome this, you can specify which visits Timefold should focus on during replanning with the replanningFocus field:
{
"modelInput": {
"replanningFocus": {
"visitIds": [
"Visit A",
"Visit B"
]
}
}
}
Timefold considers the visits listed in replanningFocus as candidates to be swapped with already assigned, but less important, visits.
Visits that don’t match the replanning focus are not considered during the initial phase, which saves time.
|
In order for visits included in |
|
|
Next
-
See the full API spec or try the online API.
-
Learn more about field service routing from our YouTube playlist.
-
Learn about real-time planning.
-
Real-time planning with pinned visits.
-
Real-time planning and emergency visits.