Buckets:
| { | |
| "parametrized_description": "A lab has TotalMedicinalIngredients units of medicinal ingredients available to produce NumPillTypes different types of pills. Each pill type i requires RequiredMedicinal[i] units of medicinal ingredients and RequiredFiller[i] units of filler. The lab must produce at least MinimumPills[i] units of pill type i. Additionally, at least MinimumProportion[i] of the total number of pills produced must be of pill type i. The objective is to determine the number of each pill type to minimize the total filler material used.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "TotalMedicinalIngredients": { | |
| "description": "Total units of medicinal ingredients available to produce pills", | |
| "shape": [] | |
| }, | |
| "NumPillTypes": { | |
| "description": "Number of different pill types", | |
| "shape": [] | |
| }, | |
| "RequiredMedicinal": { | |
| "description": "Units of medicinal ingredients required to produce one unit of pill type i", | |
| "shape": [ | |
| "NumPillTypes" | |
| ] | |
| }, | |
| "RequiredFiller": { | |
| "description": "Units of filler required to produce one unit of pill type i", | |
| "shape": [ | |
| "NumPillTypes" | |
| ] | |
| }, | |
| "MinimumPills": { | |
| "description": "Minimum number of pills that must be produced for pill type i", | |
| "shape": [ | |
| "NumPillTypes" | |
| ] | |
| }, | |
| "MinimumProportion": { | |
| "description": "Minimum proportion of total pills that must be of pill type i", | |
| "shape": [ | |
| "NumPillTypes" | |
| ] | |
| } | |
| }, | |
| "variables": { | |
| "PillsProduced": { | |
| "description": "The number of pills produced for each pill type", | |
| "type": "continuous", | |
| "shape": [ | |
| "NumPillTypes" | |
| ] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total medicinal ingredients used cannot exceed TotalMedicinalIngredients.", | |
| "formulation": "\\sum_{i=1}^{NumPillTypes} RequiredMedicinal_i \\times PillsProduced_i \\leq TotalMedicinalIngredients", | |
| "code": { | |
| "gurobipy": "model.addConstr(quicksum(RequiredMedicinal[i] * PillsProduced[i] for i in range(NumPillTypes)) <= TotalMedicinalIngredients)" | |
| } | |
| }, | |
| { | |
| "description": "For each pill type i, at least MinimumPills[i] units must be produced.", | |
| "formulation": "PillsProduced_i \\geq MinimumPills_i \\quad \\forall i = 1, \\dots, NumPillTypes", | |
| "code": { | |
| "gurobipy": "model.addConstrs((PillsProduced[i] >= MinimumPills[i] for i in range(NumPillTypes)), \"MinPills\")" | |
| } | |
| }, | |
| { | |
| "description": "For each pill type i, at least MinimumProportion[i] of the total pills produced must be of pill type i.", | |
| "formulation": "\\text{PillsProduced}_i \\geq \\text{MinimumProportion}_i \\cdot \\sum_{j=1}^{\\text{NumPillTypes}} \\text{PillsProduced}_j, \\quad \\forall i \\in \\{1, \\dots, \\text{NumPillTypes}\\}", | |
| "code": { | |
| "gurobipy": "model.addConstrs((PillsProduced[i] >= MinimumProportion[i] * quicksum(PillsProduced[j] for j in range(NumPillTypes)) for i in range(NumPillTypes)), 'MinimumProportion')" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Minimize the total filler material used, which is the sum of RequiredFiller[i] multiplied by the number of pills produced for each pill type i.", | |
| "formulation": "Min \\sum_{i=1}^{\\text{NumPillTypes}} \\text{RequiredFiller}[i] \\times \\text{PillsProduced}[i]", | |
| "code": { | |
| "gurobipy": "model.setObjective(quicksum(RequiredFiller[i] * PillsProduced[i] for i in range(NumPillTypes)), GRB.MINIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.94 kB
- Xet hash:
- d823050379bdfc708fb6e2b6992f8fe90819b5e348306a751b7466eeaa2a9a4c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.