Hello,
I am trying to generate all combinations of sums taking 5 values from one set of numbers, and 1 value from another set of numbers, with an additional constraint. I am trying to determine the combinations of 5 "Drivers and 1 "Team" that will generate the highest sum of 'Value' with the constraint that the sum of their 'Salary' remains equal to or less than 100. Here is the data:
So my constraints are:
a.) Must use exactly 5 drivers
b.) Must use only 1 Team
c.) Salary sum of the 6 must be equal to or less than 100
Determine:
A list of all combinations such that I can sort by highest TOTAL VALUE given the 100 salary limit. It would be nice for each combination generated, to see what their respective salary sum is as well.
Any help would be appreciated!
I am trying to generate all combinations of sums taking 5 values from one set of numbers, and 1 value from another set of numbers, with an additional constraint. I am trying to determine the combinations of 5 "Drivers and 1 "Team" that will generate the highest sum of 'Value' with the constraint that the sum of their 'Salary' remains equal to or less than 100. Here is the data:
So my constraints are:
a.) Must use exactly 5 drivers
b.) Must use only 1 Team
c.) Salary sum of the 6 must be equal to or less than 100
Determine:
A list of all combinations such that I can sort by highest TOTAL VALUE given the 100 salary limit. It would be nice for each combination generated, to see what their respective salary sum is as well.
Any help would be appreciated!