title: Hungarian method variant
body: <p>I have some workers and tasks, and want to assign the best workers for each task, that's a typical use for Hungarian method. </p>
  
  <p>But let's add that tasks happen at certain day/time, and I want to add in consideration that for a given worker, I'd like his tasks to be as close in time as possible.</p>
  
  <p>Is there an algorithm where I could set a priority between the two different goals?</p>
  
  <p>edit: let's try a simple example. I have 3 tasks happening respectively at 1:00, 2:00 and 3:00. I have 2 workers for my tasks. If I consider only the quality of the work, I assign worker 1 on slots 1 and 3, and worker 2 on slot 2. But then the 1st worker has a hole in his schedule, So I'd like to put a "weight" value so that I have an equilibrium between the total quality and the will to have compact work hours.</p>
  
  <p>Thanks,
  Guillaume</p>