Search papers, labs, and topics across Lattice.
This study investigates the impact of two different Python encodings on thread scaling in the Time-Dependent Vehicle Routing Problem with Time Windows (TDVRPTW). The findings reveal that while external-function serialization limits performance to a single evaluator worker, a native time-slice encoding effectively utilizes multiple cores, leading to improved solution quality and reduced variability across runs. Ultimately, the choice of encoding significantly influences the benefits of multi-threading, underscoring the importance of model design in achieving optimal performance in time-dependent routing scenarios.
Native encoding outperforms external-function serialization in thread scaling for TDVRPTW, yielding better solutions and stability across multiple threads.
Thread scaling in Hexaly depends first on how the Time-Dependent Vehicle Routing Problem with Time Windows is modeled. We compare two Python encodings: one evaluates continuous travel-time functions through external callbacks, while the other approximates them with time slices evaluated natively by the solver. Independent CPU measurements show that the supported external-function interface uses a single evaluator worker regardless of the requested thread count. The native encoding, by contrast, makes effective use of the allocated cores. Across our selected benchmark panel, wider native searches produce better solutions both at the end of the run and throughout the search, while substantially reducing variation between seeds. Nearly every paired run improves from one to sixteen threads. The choice of encoding has an even larger impact than the thread count: native evaluation provides the strongest gains, at the cost of a travel-time approximation that must be sufficiently fine and independently checked. These descriptive results support multi-threading as a practical way to improve solution quality and stability when the model can exploit it, and show that the modeling approach is central to thread-scaling conclusions in time-dependent routing.