Improve shuffle by SR algorithm
Shuffle by SR algorithm is implemented in a simplistic way (much like XP sort), but it might be possible to improve it by using mu and sigma directly instead of the rating.
Investigate and improve if possible.
Use the TS game quality function. Compute all permutation, or find a way to find one that is "good enough" quickly if that is too costly. Keep the constraint of equal number of players per team (and put the extra odd player in the weaker team), take map bias into account. Maybe add an option to give a closer game quality but with more unbalanced team (see etpub rating balance)?See f.e.: