Skip to content

Add support for assigning courses when number of teams is not a multiple of 3

Per @qr255's suggestion:

Also, da ja nur einer von zwei (unerwünschten) Fällen eintreten kann, nämlich n=3x+1 oder n=3x+2 und da eine Doppelbelegung von einer/zwei Locations in diesen Fällen notwendig wäre (besser haupt und Nachspeise als vor und Hauptspeise), quasi etwas so in der Art:

  • if n/3 ohne Rest proceed normally
  • if (n+1)/3 ohne Rest clone Nachspeise mit smallest Duration_h and move to Hauptspeisen
  • if (n+2)/3 ohne Rest clone 2 Nachspeisen mit smallest Duration_h and move to Hauptspeisen

und dann noch irgendeine Absicherung im nächsten Schritt, dass die teams sich nicht selber zugeteilt werden

Edited by Jakob Moser