Buckets:
| { | |
| "parametrized_description": "A company supplies at least MinPairsToSupply items using vehicles of two types: vans and trucks. Each van can transport VanCapacity items and each truck can transport TruckCapacity items. The number of trucks used cannot exceed the number of vans used. Determine the minimum number of vans required.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "VanCapacity": { | |
| "description": "Number of pairs of shoes a van can transport", | |
| "shape": [] | |
| }, | |
| "TruckCapacity": { | |
| "description": "Number of pairs of shoes a truck can transport", | |
| "shape": [] | |
| }, | |
| "MinPairsToSupply": { | |
| "description": "Minimum number of pairs of shoes to supply", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "NumberOfVans": { | |
| "description": "The number of vans used to transport the shoes", | |
| "type": "continuous", | |
| "shape": [ | |
| "Integer" | |
| ] | |
| }, | |
| "NumberOfTrucks": { | |
| "description": "The number of trucks used to transport the shoes", | |
| "type": "continuous", | |
| "shape": [ | |
| "Integer" | |
| ] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total number of items transported by vans and trucks must be at least MinPairsToSupply.", | |
| "formulation": "VanCapacity \\times NumberOfVans + TruckCapacity \\times NumberOfTrucks \\geq MinPairsToSupply", | |
| "code": { | |
| "gurobipy": "model.addConstr(VanCapacity * NumberOfVans + TruckCapacity * NumberOfTrucks >= MinPairsToSupply)" | |
| } | |
| }, | |
| { | |
| "description": "The number of trucks used cannot exceed the number of vans used.", | |
| "formulation": "NumberOfTrucks \\leq NumberOfVans", | |
| "code": { | |
| "gurobipy": "model.addConstr(NumberOfTrucks <= NumberOfVans)" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Minimize the number of vans required to supply at least MinPairsToSupply items while ensuring that the number of trucks used does not exceed the number of vans used.", | |
| "formulation": "Min NumberOfVans \\\\ NumberOfVans \\times VanCapacity + NumberOfTrucks \\times TruckCapacity \\geq MinPairsToSupply \\\\ NumberOfTrucks \\leq NumberOfVans", | |
| "code": { | |
| "gurobipy": "model.setObjective(NumberOfVans, GRB.MINIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 2.52 kB
- Xet hash:
- a6221b77a42caab899c4dff2bbaae96d57ae008870ba3c34d9fda35002539de8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.