Portfolio Selection in Python with constraints from a fixed set

Viewed 986

I am working on a project where I am trying to select the optimal subset of players from a set of 125 players (example below)

The constraints are:

a) Number of players = 3

b) Sum of prices <= 30

The optimization function is Max(Sum of Votes)

        Player  Vote  Price
  William Smith  0.67    8.6
Robert Thompson  0.31    6.7
Joseph Robinson  0.61    6.2
Richard Johnson  0.88    4.3
   Richard Hall  0.28    9.7

I looked at the scipy optimize package but I can't find anywhere a way to constraint the universe to this subset. Can anyone point me if there is a library that would do that? Thanks

3 Answers
Related