I am working on Diet Allocation problem. Where we need to provide food piece for protein deficiency. The data is as below:
Data=
[{'Individual_ID': 'A', 'State': 'H1', 'Country_Code': 'C1', 'Present_Protein': 750},
{'Individual_ID': 'B', 'State': 'H1', 'Country_Code': 'C1', 'Present_Protein': 730},
{'Individual_ID': 'C', 'State': 'H2', 'Country_Code': 'C2', 'Present_Protein': 740},
{'Individual_ID': 'D', 'State': 'H3', 'Country_Code': 'C2', 'Present_Protein': 850},
{'Individual_ID': 'E', 'State': 'H3', 'Country_Code': 'C2', 'Present_Protein': 750}]
We can allocate at max one type of supplement to one individual.
Objective = min (cost)
Subjected to individual_protein > Min_requirement
And we have infinite food packet available.
This is plain and simple and I am able to do this easily. Problem start in next part.
Now for part 2: I have constraint over food type. (Example only 1 packet of each food is available). And I have predefined priority (i.e. funding company prefer allocation in particular country over another country and/or particular state over other state and/or particular ind over other indv)..
Can such constraint be added in LP problem? If yes, how?