Skip to content

Slot weights

supix edited this page May 1, 2017 · 4 revisions

By default, all the slots have a weight equal to 1. Slot weight measures the effort spent by a shifter doing that slot. When all the weights are equal, the engine aims at just assuring that slots are evenly distributed among the shifters. Setting different slot weights enables another metric to be considered: the engine will also try to equalize the overall efforts spent by each shifter within the workshift.

Slot weights can be set as follows.

var problem = ProblemBuilder.Configure()
  ...
  .AssigningWeight(1.8F).ToSlots().From(10).To(13) // night shifts are heavier
  ...

In this case, night shifts are set with a higher weight than the others: more precisely, nights are almost twice challenging than mornings and afternoons.

Clone this wiki locally