0

Is there a function/package in python that as evenly as possible distributes a number of points over groups/teams, but with restrictions for every team (type of points, etc.)?

So for example you have red, blue and yellow points. And then 5 teams, but one team can have max 4 blue, and another team needs to have 2 points difference between yellow and blue, etcetera.

Ja123
  • 73
  • 6

1 Answers1

0

For simple optimization problems, you could look into PuLP like already mentioned.

If you are facing more difficult optimization problems with lots of constraints and where performance is also a concern, you might want to look into MiniZinc or OR-Tools which are some of the best open source solutions available for Python.

jacob
  • 160
  • 8