Thanks ahead for your time! I have the following data:
Name Group ID Grade
Bill A 1 89
Jill A 2 70
Bob A 3 99
Chad A 4 5
Molly B 5 12
Bill B 1 100
Jill B 2 88
I am using Pulp to maximize the points, but I only need 1 of group B and 3 of group A. The constraint I am having issues with is generating a list without any duplicated names. So what I'm receiving is this: (2 Bills)
Name Group ID Grade
Bill A 1 89
Jill A 2 70
Bob A 3 99
Bill B 1 100
I have generated the ID column by myself in hopes I'd be able to set up the constraint with it, but I've failed multiple times. The correct solution would be something like: (zero duplicated people)
Name Group ID Grade
Bill A 1 89
Jill A 2 70
Bob A 3 99
Chad A 4 5
Molly B 5 12
I couldn't find anything on here or anywhere else on the web that provided me with advice or a solution. Any help is greatly appreciated :)