Buckets:
| { | |
| "parametrized_description": "A company can transport boxes using vans or trucks. Each van trip has a capacity of VanCapacity boxes and costs VanCost dollars, while each truck trip has a capacity of TruckCapacity boxes and costs TruckCost dollars. The company needs to transport at least MinBoxes boxes with a total cost not exceeding Budget dollars. Additionally, the number of van trips must be greater than the number of truck trips. The objective is to minimize the total number of trips.", | |
| "keywords": [ | |
| "N.A." | |
| ], | |
| "parameters": { | |
| "VanCapacity": { | |
| "description": "Capacity of a van in boxes per trip", | |
| "shape": [] | |
| }, | |
| "TruckCapacity": { | |
| "description": "Capacity of a truck in boxes per trip", | |
| "shape": [] | |
| }, | |
| "VanCost": { | |
| "description": "Cost per van trip in dollars", | |
| "shape": [] | |
| }, | |
| "TruckCost": { | |
| "description": "Cost per truck trip in dollars", | |
| "shape": [] | |
| }, | |
| "MinBoxes": { | |
| "description": "Minimum number of boxes to transport", | |
| "shape": [] | |
| }, | |
| "Budget": { | |
| "description": "Budget available in dollars", | |
| "shape": [] | |
| } | |
| }, | |
| "variables": { | |
| "VanTrips": { | |
| "description": "The number of van trips", | |
| "type": "continuous", | |
| "shape": [] | |
| }, | |
| "TruckTrips": { | |
| "description": "The number of truck trips", | |
| "type": "continuous", | |
| "shape": [] | |
| } | |
| }, | |
| "constraints": [ | |
| { | |
| "description": "The total number of boxes transported using vans and trucks must be at least MinBoxes, where each van trip transports VanCapacity boxes and each truck trip transports TruckCapacity boxes.", | |
| "formulation": "VanTrips \\\\cdot VanCapacity + TruckTrips \\\\cdot TruckCapacity \\geq MinBoxes", | |
| "code": { | |
| "gurobipy": "model.addConstr(VanTrips * VanCapacity + TruckTrips * TruckCapacity >= MinBoxes)" | |
| } | |
| }, | |
| { | |
| "description": "The total transportation cost must not exceed Budget dollars, where each van trip costs VanCost dollars and each truck trip costs TruckCost dollars.", | |
| "formulation": "VanCost \\times VanTrips + TruckCost \\times TruckTrips \\leq Budget", | |
| "code": { | |
| "gurobipy": "model.addConstr(VanCost * VanTrips + TruckCost * TruckTrips <= Budget)" | |
| } | |
| }, | |
| { | |
| "description": "The number of van trips must be greater than the number of truck trips.", | |
| "formulation": "VanTrips \\geq TruckTrips + 1", | |
| "code": { | |
| "gurobipy": "model.addConstr(VanTrips >= TruckTrips + 1)" | |
| } | |
| } | |
| ], | |
| "objective": { | |
| "description": "Minimize the total number of trips.", | |
| "formulation": "Min \\ VanTrips + TruckTrips", | |
| "code": { | |
| "gurobipy": "model.setObjective(VanTrips + TruckTrips, GRB.MINIMIZE)" | |
| } | |
| } | |
| } |
Xet Storage Details
- Size:
- 3.12 kB
- Xet hash:
- 579c3e50f5eefc1cf9505fa35000ef43420615ff4832a50b06b92580a00bef85
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.