I'm working on an optimization problem that and I am having trouble figuring out how to set up some of the constraints required.
To make it easier for me to explain, I'm going to describe a scenario that closely matches the problem I am facing: Let's assume I am organizing a karate tournament and 100 people enter. Those 100 people have skill levels that are uniformly distributed across the type of belt they wear with Black belts being the most skilled.
Belt Skill Level: Black > Red > Brown > Purple > Blue > Green > Orange > Yellow > White
For this tournament, I want no more than 10% of contestants to have White belts, no more than 20% of contestants to have Yellow OR White Belts, no more than 30% of contestants to have Orange Or Yellow or White belts, ... , and no more than 95% of contestants to have a Red Belt or below (implying I want at least 5% of entrants to have a black belt).
My question to stack exchange is how do I go about setting up a constraint like this? This just happens to be one piece of a larger problem that I am trying to solve using Python.
Thanks for the help!