IlBaldo/NLP4LP-bucket / data /121 /problem_info.json
IlBaldo's picture
download
raw
3.61 kB
{
"parametrized_description": "A zookeeper feeds a gorilla with bananas and mangoes. Each banana contains CalorieBanana calories, PotassiumBanana grams of potassium, and SugarBanana grams of sugar. Each mango contains CalorieMango calories, PotassiumMango grams of potassium, and SugarMango grams of sugar. The gorilla must consume at least MinCalories calories and MinPotassium grams of potassium. At most MaxMangoFraction of the fruits he eats can be mangoes. To prevent excess sugar intake, determine the number of each fruit he should consume to minimize his sugar intake.",
"keywords": [
"N.A."
],
"parameters": {
"CalorieBanana": {
"description": "Amount of calories per banana",
"shape": []
},
"CalorieMango": {
"description": "Amount of calories per mango",
"shape": []
},
"PotassiumBanana": {
"description": "Amount of potassium per banana",
"shape": []
},
"PotassiumMango": {
"description": "Amount of potassium per mango",
"shape": []
},
"SugarBanana": {
"description": "Amount of sugar per banana",
"shape": []
},
"SugarMango": {
"description": "Amount of sugar per mango",
"shape": []
},
"MinCalories": {
"description": "Minimum total calories required",
"shape": []
},
"MinPotassium": {
"description": "Minimum total potassium required",
"shape": []
},
"MaxMangoFraction": {
"description": "Maximum fraction of fruits that can be mangoes",
"shape": []
}
},
"variables": {
"XBanana": {
"description": "The number of bananas consumed by the gorilla",
"type": "continuous",
"shape": [
"Integer"
]
},
"XMango": {
"description": "The number of mangoes consumed by the gorilla",
"type": "continuous",
"shape": [
"Integer"
]
}
},
"constraints": [
{
"description": "The gorilla must consume at least MinCalories calories.",
"formulation": "CalorieBanana \\cdot XBanana + CalorieMango \\cdot XMango \\geq MinCalories",
"code": {
"gurobipy": "model.addConstr(CalorieBanana * XBanana + CalorieMango * XMango >= MinCalories)"
}
},
{
"description": "The gorilla must consume at least MinPotassium grams of potassium.",
"formulation": "PotassiumBanana \\cdot XBanana + PotassiumMango \\cdot XMango \\geq MinPotassium",
"code": {
"gurobipy": "model.addConstr(PotassiumBanana * XBanana + PotassiumMango * XMango >= MinPotassium)"
}
},
{
"description": "At most MaxMangoFraction of the fruits the gorilla eats can be mangoes.",
"formulation": "XMango \\leq MaxMangoFraction \\cdot (XBanana + XMango)",
"code": {
"gurobipy": "model.addConstr(XMango <= MaxMangoFraction * (XBanana + XMango))"
}
}
],
"objective": {
"description": "Minimize the total sugar intake.",
"formulation": "Min \\ SugarBanana \\times XBanana + SugarMango \\times XMango",
"code": {
"gurobipy": "model.setObjective(SugarBanana * XBanana + SugarMango * XMango, GRB.MINIMIZE)"
}
}
}

Xet Storage Details

Size:
3.61 kB
·
Xet hash:
e1d2d5d3851a14fbc29b454be657d4c862c02ce05f735d6d1d6dfb7960aff2d0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.