IlBaldo/NLP4LP-bucket / data /148 /problem_info.json
IlBaldo's picture
download
raw
2.64 kB
{
"parametrized_description": "A school hires small buses and large buses with capacities SmallBusCapacity and LargeBusCapacity respectively to transport at least MinimumStudents students. No more than MaxLargeBusPercentage of the total buses can be large buses. The objective is to minimize the total number of buses hired.",
"keywords": [
"N.A."
],
"parameters": {
"SmallBusCapacity": {
"description": "Capacity of a small bus",
"shape": []
},
"LargeBusCapacity": {
"description": "Capacity of a large bus",
"shape": []
},
"MinimumStudents": {
"description": "Minimum number of students to transport",
"shape": []
},
"MaxLargeBusPercentage": {
"description": "Maximum percentage of buses that can be large buses",
"shape": []
}
},
"variables": {
"NumberSmallBuses": {
"description": "The number of small buses",
"type": "continuous",
"shape": [
"Integer"
]
},
"NumberLargeBuses": {
"description": "The number of large buses",
"type": "continuous",
"shape": [
"Integer"
]
}
},
"constraints": [
{
"description": "A small bus transports SmallBusCapacity students and a large bus transports LargeBusCapacity students. The total number of students transported must be at least MinimumStudents.",
"formulation": "SmallBusCapacity \\times NumberSmallBuses + LargeBusCapacity \\times NumberLargeBuses \\geq MinimumStudents",
"code": {
"gurobipy": "model.addConstr(SmallBusCapacity * NumberSmallBuses + LargeBusCapacity * NumberLargeBuses >= MinimumStudents)"
}
},
{
"description": "No more than MaxLargeBusPercentage of the total buses can be large buses.",
"formulation": "(1 - MaxLargeBusPercentage) \\cdot NumberLargeBuses \\leq MaxLargeBusPercentage \\cdot NumberSmallBuses",
"code": {
"gurobipy": "model.addConstr((1 - MaxLargeBusPercentage) * NumberLargeBuses <= MaxLargeBusPercentage * NumberSmallBuses)"
}
}
],
"objective": {
"description": "The objective is to minimize the total number of buses hired.",
"formulation": "Min NumberSmallBuses + NumberLargeBuses",
"code": {
"gurobipy": "model.setObjective(NumberSmallBuses + NumberLargeBuses, GRB.MINIMIZE)"
}
}
}

Xet Storage Details

Size:
2.64 kB
·
Xet hash:
21a05c6f9ce9073c5fe3e68ade862c915d7f1b5d886d772bf0b762ea6b027ca3

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