JobShopPuzzleJSSP scheduling & optimizationOpen solver

Dispatching heuristic

SPT heuristic: schedule the shortest available operation first

Shortest Processing Time (SPT) is a simple dispatching rule: whenever several operations are eligible, prefer the operation with the shortest duration.

Try SPT in the solver

How SPT works

The rule repeatedly selects an available operation with minimum processing time and places it at the earliest feasible position while respecting job precedence and machine capacity. Deterministic tie-breaking makes the resulting baseline reproducible.

Strengths and limitations

SPT tends to complete many short operations quickly and is useful as a fast baseline. It does not look ahead at remaining job work or future bottlenecks, so a locally attractive choice can produce a longer overall makespan.

Compare instead of guessing

Apply SPT to the same benchmark as MWKR, EST or bottleneck-first. The Gantt chart and makespan make the consequence of each rule visible immediately.