Buckets:
| { | |
| "parametrized_description": "A clinic administers two types of vaccines, Pill and Shot. Administering a Pill vaccine takes TimePerPill minutes, while administering a Shot vaccine takes TimePerShot minutes. The clinic must administer at least ShotToPillRatio times as many Shots as Pills, and at least MinPills Pills. Given that the clinic operates for TotalOperatingTime minutes, the goal is to maximize the number of patients vaccinated.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "TimePerPill": { | |
| "description": "Time required to administer a pill vaccine", | |
| "shape": [] | |
| }, | |
| "TimePerShot": { | |
| "description": "Time required to administer a shot vaccine", | |
| "shape": [] | |
| }, | |
| "ShotToPillRatio": { | |
| "description": "Minimum ratio of shots to pills", | |
| "shape": [] | |
| }, | |
| "MinPills": { | |
| "description": "Minimum number of pill vaccines to administer", | |
| "shape": [] | |
| }, | |
| "TotalOperatingTime": { | |
| "description": "Total operating time of the clinic in minutes", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "NumberOfPills": { | |
| "description": "The number of pill vaccines to administer", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "NumberOfShots": { | |
| "description": "The number of shot vaccines to administer", | |
| "type": "continuous", | |
| "shape": [] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total time required to administer Pill vaccines and Shot vaccines must not exceed TotalOperatingTime minutes.", | |
| "formulation": "TimePerPill \\times NumberOfPills + TimePerShot \\times NumberOfShots \\leq TotalOperatingTime", | |
| "code": { | |
| "gurobipy": "model.addConstr(TimePerPill * NumberOfPills + TimePerShot * NumberOfShots <= TotalOperatingTime)" | |
| } | |
| }, | |
| { | |
| "description": "The number of Shot vaccines administered must be at least ShotToPillRatio times the number of Pill vaccines administered.", | |
| "formulation": "NumberOfShots \\geq ShotToPillRatio \\times NumberOfPills", | |
| "code": { | |
| "gurobipy": "model.addConstr(NumberOfShots >= ShotToPillRatio * NumberOfPills)" | |
| } | |
| }, | |
| { | |
| "description": "At least MinPills Pill vaccines must be administered.", | |
| "formulation": "NumberOfPills \\geq MinPills", | |
| "code": { | |
| "gurobipy": "model.addConstr(NumberOfPills >= MinPills, 'AtLeastMinPills')" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Maximize the total number of patients vaccinated, which is the sum of Pill and Shot vaccines administered.", | |
| "formulation": "Max \\ NumberOfPills + NumberOfShots", | |
| "code": { | |
| "gurobipy": "model.setObjective(NumberOfPills + NumberOfShots, GRB.MAXIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.05 kB
- Xet hash:
- d4bd5d5bd3bfb2018e671111ba96d69c5481767523cc8946b27893b75427aa4d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.