Proof

model as Minimum-cost bipartite matching

  1. Add dummy jobs with cost 0 to have jobs. ( jobs)

  2. Every machine has jobs.

  3. Connect every Job to slot of machine with cost

  4. Run the jobs in the slots per machine in reveres order.