JobShopPuzzleJSSP scheduling & optimizationOpen solver

Dispatching heuristic

MWKR heuristic: prioritize the job with most work remaining

Most Work Remaining (MWKR), also called Longest Remaining Processing Time, gives priority to an available operation whose job still has the greatest total processing time left.

Try MWKR in the solver

How MWKR works

For each eligible operation, the rule sums the durations of that operation and all later operations in the same job. It selects the job with the largest remaining workload, then inserts its current operation at the earliest feasible position.

Why it can help

MWKR tries to prevent long jobs from being postponed behind many short tasks. This broader job-level view can improve makespan on some JSSP instances, but it is still greedy and does not guarantee an optimum.

Test the effect visually

Compare MWKR with SPT on FT06 or a larger Lawrence instance. Select any operation in the Gantt chart to highlight the full job route across all machines.