IlBaldo/NLP4LP-bucket / data /128 /problem_info.json
IlBaldo's picture
download
raw
4.48 kB
{
"parametrized_description": "A university research lab produces two types of diabetes medicine, medicine A and medicine B. Each dose of medicine A requires ImportedMaterialPerDoseA units of imported material and MRNAPerDoseA units of mRNA. Each dose of medicine B requires ImportedMaterialPerDoseB units of imported material and MRNAPerDoseB units of mRNA. The lab has a maximum of MaxImportedMaterial units of imported material and MaxMRNA units of mRNA available. The production of medicine A is limited to MaxDosesA doses, and the number of doses of medicine B must exceed the number of doses of medicine A. The objective is to maximize the total number of people treated, where each dose of medicine A treats TreatmentPerDoseA individuals and each dose of medicine B treats TreatmentPerDoseB individuals.",
"keywords": [
"N.A."
],
"parameters": {
"ImportedMaterialPerDoseA": {
"description": "Amount of imported material required to produce one dose of medicine A",
"shape": []
},
"MRNAPerDoseA": {
"description": "Amount of mRNA required to produce one dose of medicine A",
"shape": []
},
"ImportedMaterialPerDoseB": {
"description": "Amount of imported material required to produce one dose of medicine B",
"shape": []
},
"MRNAPerDoseB": {
"description": "Amount of mRNA required to produce one dose of medicine B",
"shape": []
},
"MaxImportedMaterial": {
"description": "Maximum available units of imported material",
"shape": []
},
"MaxMRNA": {
"description": "Maximum available units of mRNA",
"shape": []
},
"MaxDosesA": {
"description": "Maximum number of doses of medicine A that can be produced",
"shape": []
},
"TreatmentPerDoseA": {
"description": "Number of people treated by one dose of medicine A",
"shape": []
},
"TreatmentPerDoseB": {
"description": "Number of people treated by one dose of medicine B",
"shape": []
}
},
"variables": {
"DosesA": {
"description": "The number of doses of medicine A produced",
"type": "continuous",
"shape": []
},
"DosesB": {
"description": "The number of doses of medicine B produced",
"type": "continuous",
"shape": []
}
},
"constraints": [
{
"description": "The total imported material used by medicines A and B cannot exceed MaxImportedMaterial units.",
"formulation": "ImportedMaterialPerDoseA \\times DosesA + ImportedMaterialPerDoseB \\times DosesB \\leq MaxImportedMaterial",
"code": {
"gurobipy": "model.addConstr(ImportedMaterialPerDoseA * DosesA + ImportedMaterialPerDoseB * DosesB <= MaxImportedMaterial)"
}
},
{
"description": "The total mRNA used by medicines A and B cannot exceed MaxMRNA units.",
"formulation": "MRNAPerDoseA \\times DosesA + MRNAPerDoseB \\times DosesB \\leq MaxMRNA",
"code": {
"gurobipy": "model.addConstr(MRNAPerDoseA * DosesA + MRNAPerDoseB * DosesB <= MaxMRNA)"
}
},
{
"description": "The number of doses of medicine A produced cannot exceed MaxDosesA.",
"formulation": "DosesA \\leq MaxDosesA",
"code": {
"gurobipy": "model.addConstr(DosesA <= MaxDosesA)"
}
},
{
"description": "The number of doses of medicine B produced must exceed the number of doses of medicine A.",
"formulation": "DosesB \\geq DosesA + 1",
"code": {
"gurobipy": "model.addConstr(DosesB >= DosesA + 1)"
}
}
],
"objective": {
"description": "Maximize the total number of people treated, which is the sum of TreatmentPerDoseA times the number of doses of medicine A and TreatmentPerDoseB times the number of doses of medicine B.",
"formulation": "Max TreatmentPerDoseA \\times DosesA + TreatmentPerDoseB \\times DosesB",
"code": {
"gurobipy": "model.setObjective(TreatmentPerDoseA * DosesA + TreatmentPerDoseB * DosesB, GRB.MAXIMIZE)"
}
}
}

Xet Storage Details

Size:
4.48 kB
·
Xet hash:
4891163e8fc65b6bd39bcc7d4f3913f5accd66a9198f8aacd783381d177873ff

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