
Why there is no good production planning software
Production planning, more precisely the optimal scheduling of orders on machines while considering shift times, dependencies of work steps, as well as delivery dates, is NP-hard.
But what does this NP-hardness mean?
If you want to find a sequence for 1,000 orders that is optimal regarding certain framework conditions, you proceed as follows:
- As the first order, you select one of the 1,000 orders
- The second order is selected from the 999 remaining orders
- The third order from the remaining 998 orders
- etc.
The plan is then evaluated, i.e., a score is assigned, which includes, for example, how punctually the individual orders can be delivered. This is done with all possible 1,000! (one thousand factorial) plans.
As you can see, after just 2 assigned orders, there are 1,000*999 combinations that must be checked - that is almost a million. With the third order, there are already a billion combinations. All combinations of the 1,000 jobs are a gigantic number:
A software for production planning can therefore only ever provide an approximation to represent:
- In 90% of all planning software, no automatic optimization is performed
- The customer is offered a graphical interface for manual sorting
- The computer only sorts to a limited extent: Either only individual positions are shifted, or individual swaps are tried for hours
For us, this also means: We will not be able to deliver the optimal rescheduling of orders with the optimal (gapless) utilization of machine capacities.
Nevertheless, there is a glimmer of hope: SAT Solver.
SAT Solvers are programs that can solve "tricky tasks." You provide the solver with a logical equation, such as:
Rearrange all orders.
Each order may only run on specific machines.
The machines only run during normal "shift times".
All delivery dates must be met - if not, the number of delay days should be minimized.
The SAT Solver then searches for a solution to the task that meets all criteria.
SAT Solving is feasible for up to about 32 orders. Note: arranging 32 jobs involves at least 263130836933693530167218012160000000 combinations. Even so, 32 orders are extremely few in everyday production. The SAT Solver solves them in 1s. The 64-order batch already takes 10s and the 128 orders take several minutes.
The solution here is to only input the most important 32 orders into the SAT Solver: those that block machines for a very long time, as well as those that cost money if delivery dates cannot be met.
The remaining "non-critical" jobs are then appended in their order sequence. Furthermore, the plan can be recalculated after each job is completed to correct the actual time vs. planned time deviation.
Once such production planning software is set up, a lot of things can be achieved with it:
- Consideration of shifts and shift handovers
- Observance of maintenance intervals
- Consideration of machine capabilities and alternative options
- Delivery dates and delivery date management (incl. minimization of contractual penalties)
- Real-time adjustment of planning to the actual status
Conclusion: Production planning software is tricky. The optimal production plan is only achievable for small order quantities. The more orders there are, the more compromises must be made. Nevertheless, an automatic assignment, if programmed correctly, is significantly more accurate than human "gut feeling".
Do you want more advice on ERPs, production planning, and software? Then contact us.