IlBaldo/NLP4LP-bucket / data /127 /problem_info.json
IlBaldo's picture
download
raw
4.26 kB
{
"parametrized_description": "A patient must consume oranges and grapefruits to satisfy minimum vitamin requirements. Each orange provides VitaminCPerOrange units of vitamin C and VitaminAPerOrange units of vitamin A, contributing SugarPerOrange grams of sugar. Each grapefruit provides VitaminCPerGrapefruit units of vitamin C and VitaminAPerGrapefruit units of vitamin A, contributing SugarPerGrapefruit grams of sugar. The patient must obtain at least MinVitaminC units of vitamin C and at least MinVitaminA units of vitamin A. Additionally, the number of oranges consumed must be at least MinOrangeToGrapefruitRatio times the number of grapefruits. The objective is to minimize the total sugar intake.",
"keywords": [
"N.A."
],
"parameters": {
"VitaminCPerOrange": {
"description": "Units of vitamin C per orange",
"shape": []
},
"VitaminAPerOrange": {
"description": "Units of vitamin A per orange",
"shape": []
},
"SugarPerOrange": {
"description": "Grams of sugar per orange",
"shape": []
},
"VitaminCPerGrapefruit": {
"description": "Units of vitamin C per grapefruit",
"shape": []
},
"VitaminAPerGrapefruit": {
"description": "Units of vitamin A per grapefruit",
"shape": []
},
"SugarPerGrapefruit": {
"description": "Grams of sugar per grapefruit",
"shape": []
},
"MinVitaminC": {
"description": "Minimum required units of vitamin C",
"shape": []
},
"MinVitaminA": {
"description": "Minimum required units of vitamin A",
"shape": []
},
"MinOrangeToGrapefruitRatio": {
"description": "Minimum ratio of oranges to grapefruits indicating preference",
"shape": []
}
},
"variables": {
"NumberOfOranges": {
"description": "The number of oranges the patient consumes",
"type": "continuous",
"shape": [
"Integer"
]
},
"NumberOfGrapefruits": {
"description": "The number of grapefruits the patient consumes",
"type": "continuous",
"shape": [
"Integer"
]
}
},
"constraints": [
{
"description": "The patient must obtain at least MinVitaminC units of vitamin C.",
"formulation": "VitaminCPerOrange \\times NumberOfOranges + VitaminCPerGrapefruit \\times NumberOfGrapefruits \\geq MinVitaminC",
"code": {
"gurobipy": "model.addConstr(VitaminCPerOrange * NumberOfOranges + VitaminCPerGrapefruit * NumberOfGrapefruits >= MinVitaminC)"
}
},
{
"description": "The patient must obtain at least MinVitaminA units of vitamin A.",
"formulation": "VitaminAPerOrange \\cdot NumberOfOranges + VitaminAPerGrapefruit \\cdot NumberOfGrapefruits \\geq MinVitaminA",
"code": {
"gurobipy": "model.addConstr(VitaminAPerOrange * NumberOfOranges + VitaminAPerGrapefruit * NumberOfGrapefruits >= MinVitaminA)"
}
},
{
"description": "The number of oranges consumed must be at least MinOrangeToGrapefruitRatio times the number of grapefruits.",
"formulation": "NumberOfOranges \\geq MinOrangeToGrapefruitRatio \\times NumberOfGrapefruits",
"code": {
"gurobipy": "model.addConstr(NumberOfOranges >= MinOrangeToGrapefruitRatio * NumberOfGrapefruits)"
}
}
],
"objective": {
"description": "Total sugar intake is calculated as SugarPerOrange times the number of oranges plus SugarPerGrapefruit times the number of grapefruits. The objective is to minimize the total sugar intake.",
"formulation": "Min \\, SugarPerOrange \\times NumberOfOranges + SugarPerGrapefruit \\times NumberOfGrapefruits",
"code": {
"gurobipy": "model.setObjective(SugarPerOrange * NumberOfOranges + SugarPerGrapefruit * NumberOfGrapefruits, GRB.MINIMIZE)"
}
}
}

Xet Storage Details

Size:
4.26 kB
·
Xet hash:
af2bc6c1653dfdca371b4e11d0b62bb7e637b58fac34f8793b9789e67071fe7a

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