Buckets:
| { | |
| "parametrized_description": "A subject must determine the number of gummies and the number of pills to consume in order to maximize the total zinc intake, which is calculated as UnitsZincPerGummy multiplied by the number of gummies plus UnitsZincPerPill multiplied by the number of pills. The consumption must satisfy the following constraints: the total magnesium intake, calculated as UnitsMagnesiumPerGummy multiplied by the number of gummies plus UnitsMagnesiumPerPill multiplied by the number of pills, does not exceed MaximumUnitsOfMagnesium; the number of pills is at least MinimumNumberOfPills; and the number of gummies is at least MinimumGummiesToPillsRatio times the number of pills.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "UnitsMagnesiumPerGummy": { | |
| "description": "Units of magnesium per gummy", | |
| "shape": [] | |
| }, | |
| "UnitsZincPerGummy": { | |
| "description": "Units of zinc per gummy", | |
| "shape": [] | |
| }, | |
| "UnitsMagnesiumPerPill": { | |
| "description": "Units of magnesium per pill", | |
| "shape": [] | |
| }, | |
| "UnitsZincPerPill": { | |
| "description": "Units of zinc per pill", | |
| "shape": [] | |
| }, | |
| "MinimumNumberOfPills": { | |
| "description": "Minimum number of pills", | |
| "shape": [] | |
| }, | |
| "MinimumGummiesToPillsRatio": { | |
| "description": "Minimum gummies to pills ratio", | |
| "shape": [] | |
| }, | |
| "MaximumUnitsOfMagnesium": { | |
| "description": "Maximum units of magnesium consumption", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "NumberOfGummies": { | |
| "description": "The number of gummies", | |
| "type": "continuous", | |
| "shape": [ | |
| "Continuous" | |
| ] | |
| }, | |
| "NumberOfPills": { | |
| "description": "The number of pills", | |
| "type": "continuous", | |
| "shape": [ | |
| "Continuous" | |
| ] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total magnesium intake, calculated as UnitsMagnesiumPerGummy multiplied by the number of gummies plus UnitsMagnesiumPerPill multiplied by the number of pills, does not exceed MaximumUnitsOfMagnesium.", | |
| "formulation": "UnitsMagnesiumPerGummy \\cdot NumberOfGummies + UnitsMagnesiumPerPill \\cdot NumberOfPills \\leq MaximumUnitsOfMagnesium", | |
| "code": { | |
| "gurobipy": "model.addConstr(UnitsMagnesiumPerGummy * NumberOfGummies + UnitsMagnesiumPerPill * NumberOfPills <= MaximumUnitsOfMagnesium)" | |
| } | |
| }, | |
| { | |
| "description": "The number of pills is at least MinimumNumberOfPills.", | |
| "formulation": "NumberOfPills \\geq MinimumNumberOfPills", | |
| "code": { | |
| "gurobipy": "model.addConstr(NumberOfPills >= MinimumNumberOfPills)" | |
| } | |
| }, | |
| { | |
| "description": "The number of gummies is at least MinimumGummiesToPillsRatio times the number of pills.", | |
| "formulation": "NumberOfGummies \\geq MinimumGummiesToPillsRatio \\times NumberOfPills", | |
| "code": { | |
| "gurobipy": "model.addConstr(NumberOfGummies >= MinimumGummiesToPillsRatio * NumberOfPills)" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "The total zinc intake is the sum of UnitsZincPerGummy multiplied by the number of gummies plus UnitsZincPerPill multiplied by the number of pills. The objective is to maximize the total zinc intake.", | |
| "formulation": "Max \\ UnitsZincPerGummy \\cdot NumberOfGummies + UnitsZincPerPill \\cdot NumberOfPills", | |
| "code": { | |
| "gurobipy": "model.setObjective(UnitsZincPerGummy * NumberOfGummies + UnitsZincPerPill * NumberOfPills, GRB.MAXIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.9 kB
- Xet hash:
- b376050a07298c4f205619845a165f07afd09580b06e951f408be8aba17b4638
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.