The pseudo-code of the solver algorithm is shown below.
It is basically a loop over all demands in order of priority.
Delete the existing operation-plans, if they aren’t locked
Identify the clusters to be planned
Categorize the demand to be planned by cluster and sort them by priority
Create parallel threads for the planning
In each planning thread:
Select a cluster to solve
If no cluster is left to be planned
Exit the planning thread
Loop through all demands in the cluster
Solve the demand