IlBaldo/NLP4LP-bucket / data /147 /problem_info.json
IlBaldo's picture
download
raw
3.11 kB
{
"parametrized_description": "An oil and gas company sends oil to the port using containers and trucks. Each container can hold ContainerCapacity units of oil while each truck can hold TruckCapacity units of oil. Due to government restrictions, the number of trucks used must be at most TruckToContainerRatio multiplied by the number of containers used. If at least MinimumOilSent units of oil need to be sent to the port and at least MinimumContainers containers must be used, minimize the total number of containers and trucks needed.",
"keywords": [
"N.A."
],
"parameters": {
"ContainerCapacity": {
"description": "Number of units of oil each container can hold",
"shape": []
},
"TruckCapacity": {
"description": "Number of units of oil each truck can hold",
"shape": []
},
"TruckToContainerRatio": {
"description": "Maximum allowed ratio of number of trucks to number of containers",
"shape": []
},
"MinimumOilSent": {
"description": "Minimum number of units of oil that need to be sent to the port",
"shape": []
},
"MinimumContainers": {
"description": "Minimum number of containers that need to be used",
"shape": []
}
},
"variables": {
"NumContainers": {
"description": "The number of containers used",
"type": "continuous",
"shape": []
},
"NumTrucks": {
"description": "The number of trucks used",
"type": "continuous",
"shape": []
}
},
"constraints": [
{
"description": "The total amount of oil sent to the port must be at least 2000 units, calculated as 30 units per container plus 40 units per truck.",
"formulation": "ContainerCapacity \\times NumContainers + TruckCapacity \\times NumTrucks \\geq MinimumOilSent",
"code": {
"gurobipy": "model.addConstr(ContainerCapacity * NumContainers + TruckCapacity * NumTrucks >= MinimumOilSent)"
}
},
{
"description": "The number of trucks used must be at most half the number of containers used.",
"formulation": "NumTrucks \\leq TruckToContainerRatio \\times NumContainers",
"code": {
"gurobipy": "model.addConstr(NumTrucks <= TruckToContainerRatio * NumContainers)"
}
},
{
"description": "At least 15 containers must be used.",
"formulation": "NumContainers \\geq MinimumContainers",
"code": {
"gurobipy": "model.addConstr(NumContainers >= MinimumContainers)"
}
}
],
"objective": {
"description": "The objective is to minimize the total number of containers and trucks needed.",
"formulation": "Min NumContainers + NumTrucks",
"code": {
"gurobipy": "model.setObjective(NumContainers + NumTrucks, GRB.MINIMIZE)"
}
}
}

Xet Storage Details

Size:
3.11 kB
·
Xet hash:
6e75cfe12a625fa0d531ae19f5f66bf729618305e615364d66b93c661334a514

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.