I have a data set of players' skill ranking, age and sex and would like to create evenly matched teams.
- Teams will have the same number of players (currently 8 teams of 12 players).
- Teams should have the same or similar male to female ratio.
- Teams should have similar age curve/distribution.
I would like to try this in Haskell but the choice of coding language is the least important aspect of this problem.