Buckets:
| { | |
| "parametrized_description": "A bodybuilder purchases two types of meals: MealA and MealB. Each MealA contains ProteinTurkey amount of protein, CarbsTurkey amount of carbohydrates, and FatTurkey amount of fat. Each MealB contains ProteinTuna amount of protein, CarbsTuna amount of carbohydrates, and FatTuna amount of fat. The bodybuilder aims to obtain at least MinProtein total protein and at least MinCarbs total carbohydrates. Additionally, no more than MaxTurkeyFraction fraction of the total meals can be MealA. The objective is to minimize the total fat intake.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "ProteinTurkey": { | |
| "description": "Amount of protein in one turkey dinner", | |
| "shape": [] | |
| }, | |
| "CarbsTurkey": { | |
| "description": "Amount of carbohydrates in one turkey dinner", | |
| "shape": [] | |
| }, | |
| "FatTurkey": { | |
| "description": "Amount of fat in one turkey dinner", | |
| "shape": [] | |
| }, | |
| "ProteinTuna": { | |
| "description": "Amount of protein in one tuna salad sandwich", | |
| "shape": [] | |
| }, | |
| "CarbsTuna": { | |
| "description": "Amount of carbohydrates in one tuna salad sandwich", | |
| "shape": [] | |
| }, | |
| "FatTuna": { | |
| "description": "Amount of fat in one tuna salad sandwich", | |
| "shape": [] | |
| }, | |
| "MinProtein": { | |
| "description": "Minimum required total protein", | |
| "shape": [] | |
| }, | |
| "MinCarbs": { | |
| "description": "Minimum required total carbohydrates", | |
| "shape": [] | |
| }, | |
| "MaxTurkeyFraction": { | |
| "description": "Maximum fraction of meals that can be turkey dinners", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "QuantityTurkey": { | |
| "description": "The number of turkey dinners", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "QuantityTuna": { | |
| "description": "The number of tuna salad sandwiches", | |
| "type": "continuous", | |
| "shape": [] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total protein from MealA and MealB must be at least MinProtein.", | |
| "formulation": "ProteinTurkey \\cdot QuantityTurkey + ProteinTuna \\cdot QuantityTuna \\geq MinProtein", | |
| "code": { | |
| "gurobipy": "model.addConstr(ProteinTurkey * QuantityTurkey + ProteinTuna * QuantityTuna >= MinProtein)" | |
| } | |
| }, | |
| { | |
| "description": "The total carbohydrates from MealA and MealB must be at least MinCarbs.", | |
| "formulation": "CarbsTurkey \\cdot QuantityTurkey + CarbsTuna \\cdot QuantityTuna \\geq MinCarbs", | |
| "code": { | |
| "gurobipy": "model.addConstr(CarbsTurkey * QuantityTurkey + CarbsTuna * QuantityTuna >= MinCarbs)" | |
| } | |
| }, | |
| { | |
| "description": "No more than MaxTurkeyFraction fraction of the total meals can be MealA.", | |
| "formulation": "QuantityTurkey \\leq MaxTurkeyFraction \\times \\left( QuantityTurkey + QuantityTuna \\right )", | |
| "code": { | |
| "gurobipy": "model.addConstr(QuantityTurkey <= MaxTurkeyFraction * (QuantityTurkey + QuantityTuna))" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Minimize the total fat intake.", | |
| "formulation": "Min \\ FatTurkey \\cdot QuantityTurkey + FatTuna \\cdot QuantityTuna", | |
| "code": { | |
| "gurobipy": "model.setObjective(FatTurkey * QuantityTurkey + FatTuna * QuantityTuna, GRB.MINIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.69 kB
- Xet hash:
- 4b9641d86d5df59f151858d04962f497ee7e2424b094a91ab9a3e9d26973e2bd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.