Buckets:
| { | |
| "parametrized_description": "Two chemicals, Chlorine and WaterSoftener, need to be added to a pool. Each unit of Chlorine becomes effective after ChlorineEffectivenessTime minutes, and each unit of WaterSoftener becomes effective after WaterSoftenerEffectivenessTime minutes. The amount of Chlorine must not exceed MaxChlorineToWaterSoftenerRatio times the amount of WaterSoftener. At least MinChlorineUnits of Chlorine must be added, and the total number of chemical units added must equal TotalChemicalUnits. The objective is to determine the number of units of Chlorine and WaterSoftener to add in order to minimize the total time for the pool to be ready.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "ChlorineEffectivenessTime": { | |
| "description": "The time in minutes for one unit of chlorine to become effective", | |
| "shape": [] | |
| }, | |
| "WaterSoftenerEffectivenessTime": { | |
| "description": "The time in minutes for one unit of water softener to become effective", | |
| "shape": [] | |
| }, | |
| "MaxChlorineToWaterSoftenerRatio": { | |
| "description": "The maximum allowed ratio of chlorine to water softener in the pool", | |
| "shape": [] | |
| }, | |
| "MinChlorineUnits": { | |
| "description": "The minimum required units of chlorine to be added to the pool", | |
| "shape": [] | |
| }, | |
| "TotalChemicalUnits": { | |
| "description": "The total number of chemical units to be added to the pool", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "ChlorineAmount": { | |
| "description": "The amount of Chlorine added to the pool", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "WaterSoftenerAmount": { | |
| "description": "The amount of Water Softener added to the pool", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "ChlorineUnits": { | |
| "description": "The number of Chlorine units added to the pool", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "WaterSoftenerUnits": { | |
| "description": "The number of Water Softener units added to the pool", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "TotalTime": { | |
| "description": "The total time for the pool to be ready", | |
| "type": "continuous", | |
| "shape": [] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The amount of Chlorine must not exceed MaxChlorineToWaterSoftenerRatio times the amount of WaterSoftener.", | |
| "formulation": "ChlorineAmount \\leq MaxChlorineToWaterSoftenerRatio \\times WaterSoftenerAmount", | |
| "code": { | |
| "gurobipy": "model.addConstr(ChlorineAmount <= MaxChlorineToWaterSoftenerRatio * WaterSoftenerAmount)" | |
| } | |
| }, | |
| { | |
| "description": "At least MinChlorineUnits of Chlorine must be added.", | |
| "formulation": "ChlorineAmount \\geq MinChlorineUnits", | |
| "code": { | |
| "gurobipy": "model.addConstr(ChlorineAmount >= MinChlorineUnits)" | |
| } | |
| }, | |
| { | |
| "description": "The total number of chemical units added must equal TotalChemicalUnits.", | |
| "formulation": "ChlorineUnits + WaterSoftenerUnits = TotalChemicalUnits", | |
| "code": { | |
| "gurobipy": "model.addConstr(ChlorineUnits + WaterSoftenerUnits == TotalChemicalUnits)" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Determine the number of units of Chlorine and WaterSoftener to add in order to minimize the total time for the pool to be ready.", | |
| "formulation": "Minimize \\ TotalTime \\n TotalTime \\geq ChlorineUnits \\cdot ChlorineEffectivenessTime \\n TotalTime \\geq WaterSoftenerUnits \\cdot WaterSoftenerEffectivenessTime", | |
| "code": { | |
| "gurobipy": "model.setObjective(TotalTime, GRB.MINIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 4.03 kB
- Xet hash:
- b27eae2f8be88c045c17114700e9e3a437d2567a7f634dbb36c63f3ed5884ba1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.