IlBaldo/NLP4LP-bucket / data /115 /problem_info.json
IlBaldo's picture
download
raw
3.61 kB
{
"parametrized_description": "A patient takes anxiety medication and anti-depressants sequentially. Each unit of anxiety medication takes TimePerAnxietyUnit time to be effective, while each unit of anti-depressant takes TimePerAntidepressantUnit time to be effective. The patient must take at least MinimumTotalUnits of medication, with at least MinimumAnxietyUnits being anxiety medication. Additionally, the amount of anxiety medication cannot exceed MaximumAnxietyToAntidepressantRatio times the amount of anti-depressants. The objective is to determine the number of units of each medication to minimize the total time until the medications become effective.",
"keywords": [
"N.A."
],
"parameters": {
"TimePerAnxietyUnit": {
"description": "Time it takes for one unit of anxiety medication to be effective",
"shape": []
},
"TimePerAntidepressantUnit": {
"description": "Time it takes for one unit of anti-depressant to be effective",
"shape": []
},
"MinimumTotalUnits": {
"description": "Minimum total units of medication the patient must take",
"shape": []
},
"MinimumAnxietyUnits": {
"description": "Minimum units of anxiety medication the patient must take",
"shape": []
},
"MaximumAnxietyToAntidepressantRatio": {
"description": "Maximum ratio of anxiety medication units to anti-depressant units",
"shape": []
}
},
"variables": {
"AnxietyUnits": {
"description": "Units of anxiety medication the patient takes",
"type": "continuous",
"shape": []
},
"AntidepressantUnits": {
"description": "Units of anti-depressant medication the patient takes",
"type": "continuous",
"shape": []
}
},
"constraints": [
{
"description": "The patient must take at least MinimumTotalUnits of medication.",
"formulation": "AnxietyUnits + AntidepressantUnits \\geq MinimumTotalUnits",
"code": {
"gurobipy": "model.addConstr(AnxietyUnits + AntidepressantUnits >= MinimumTotalUnits)"
}
},
{
"description": "At least MinimumAnxietyUnits must be anxiety medication.",
"formulation": "AnxietyUnits \\geq MinimumAnxietyUnits",
"code": {
"gurobipy": "model.addConstr(AnxietyUnits >= MinimumAnxietyUnits)"
}
},
{
"description": "The amount of anxiety medication cannot exceed MaximumAnxietyToAntidepressantRatio times the amount of anti-depressants.",
"formulation": "AnxietyUnits \\leq MaximumAnxietyToAntidepressantRatio \\times AntidepressantUnits",
"code": {
"gurobipy": "model.addConstr(AnxietyUnits <= MaximumAnxietyToAntidepressantRatio * AntidepressantUnits)"
}
}
],
"objective": {
"description": "Minimize the total time until the medications become effective, calculated as (Number of Anxiety Units \u00d7 TimePerAnxietyUnit) + (Number of Anti-depressant Units \u00d7 TimePerAntidepressantUnit).",
"formulation": "Min \\left( AnxietyUnits \\times TimePerAnxietyUnit + AntidepressantUnits \\times TimePerAntidepressantUnit \\right )",
"code": {
"gurobipy": "model.setObjective(AnxietyUnits * TimePerAnxietyUnit + AntidepressantUnits * TimePerAntidepressantUnit, GRB.MINIMIZE)"
}
}
}

Xet Storage Details

Size:
3.61 kB
·
Xet hash:
55dcf91fe6b3b3f1fd488670a002d3641d448c2b7661d863b4e7a0295f08fd57

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