Get started with Timefold quickstarts here. Optimize the vehicle routing problem, employee rostering, task assignment, maintenance scheduling and other planning problems.
The solution is loaded without errors in the console.
Actual behavior
IMPORTANT: this does not happen everytime, it seems the first time after starting the web server it always fails.
The results partially load. But I got an exception in the console:
File "timefold/python/timefold-quickstarts/python/vehicle-routing/src/vehicle_routing/domain.py", line 131, in arrival_time
return (self.visits[-1].departure_time +
TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
and the UI shows:
Getting route plan has failed.
500: Internal Server Error
Code: unknown
Error id: ----
To Reproduce
Follow the quickstart README.
Environment
Timefold Solver Version or Git ref:
I followed the instructions, that clone from master.
Describe the bug
Followed this guide:
https://github.com/TimefoldAI/timefold-quickstarts/tree/stable/python/vehicle-routing
solve
button in the web UI.Expected behavior
The solution is loaded without errors in the console.
Actual behavior
IMPORTANT: this does not happen everytime, it seems the first time after starting the web server it always fails.
The results partially load. But I got an exception in the console:
and the UI shows:
To Reproduce
Follow the quickstart README.
Environment
Timefold Solver Version or Git ref:
As per the pyproject.toml:
Output of
java -version
:openjdk version "17.0.12" 2024-07-16 OpenJDK Runtime Environment (build 17.0.12+7-Ubuntu-1ubuntu222.04) OpenJDK 64-Bit Server VM (build 17.0.12+7-Ubuntu-1ubuntu222.04, mixed mode, sharing)
Output of
uname -a
orver
:(uname -a)
Additional information
I also tried running the solver through the REST API using the commands provided in the "GUIDE" section:
If I keep runing the third command during solving, I get solutions most of the times, but it also raises errors often.