Replies: 3 comments 9 replies
-
Hello @93TV, and welcome to the community! Timefold Solver won't be able to help you with predictions, it's not designed to do that. But the rest of your problem seems like a run-off-the-mill CVRP. Have you seen our Vehicle Routing quickstart? IMO you should start with your predictive part - figure out how much you'll need to deliver, where to, and how many trucks you got. That'll be the input to the solver. If deliveries on the weekends are more expensive, penalize them in your constraints. You can go further, and specify an expected time window for each delivery - that turns the problem from CVRP to CVRPTW, and we can do that too. I wouldn't worry too much about fill percentages. The tank has a certain maximum capacity to which it can legally/realistically be filled, so use that as your vehicle capacity. (The solver doesn't need to know that, physically, you can fit even more fuel in the tank.) There may be a minimum required fill, meaning that a tank must always contain at least X units of fuel - have another constraint penalize going under this threshold. Overall, assuming your description is the entire problem and you've included every important consideration, I expect Timefold Solver will do just fine. |
Beta Was this translation helpful? Give feedback.
-
Hi again @triceo & the Timefold community, I've been exploring the vehicle-routing quickstart and found it straightforward to adapt to my own data, truly an impressive tool! As I look to integrate this into a broader ML pipeline, I'm curious about best practices. Specifically: Thanks for the inspiration and support! |
Beta Was this translation helpful? Give feedback.
-
After succesfully deploying I dived into playing with the constraints. If I add this constraint will it take in mind the capacity of the vehicles between the stops as well?
For this context trucks (filled with fluids) can only drive when filled less than 20% or more than 80% of their capacity. Would this rule be applied with the hard constraint noted above? Thanks again! <3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Timefold team,
For my bachelor thesis, I want to build a machine learning pipeline in the cloud that predicts and schedules refills for fuel tanks at gas stations. I recently met someone from your team and thought this might be a relevant use case to share here.
I’ve received a historical dataset with sensor data from the tanks, primarily the measured volume of the tanks over time, and have started exploring it. However, I’m not sure how to get started with creating a predictive model that determines when a tank needs refilling. On top of that, I’d like to integrate scheduling logic to determine how and when to actually refill the tanks in an optimized way.
As an example of the scheduling challenge: currently, a tank is refilled when it drops below a certain threshold. But you can imagine that refilling on a Sunday or public holiday may be much more expensive. If the refill could be delayed by just a day to avoid that, it might result in significant cost savings, so smarter scheduling could really help here.
The problem spans multiple tanks distributed across the Benelux region, so there’s also a routing component involved. Ideally, multiple tanks could be refilled in a single delivery trip, introducing a traveling salesman-type problem. To make it more complex, the fuel truck itself must be loaded in a specific way, it can’t be filled completely, and needs to maintain certain fill percentages to avoid rollover risks. So scheduling and routing must also take into account these safety constraints.
Can I get started with just the volume data, or are there other data points I should definitely look into? Do you have any tips, ideas, or inspiration that could help me move forward with this project?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions