Repository navigation
How to use RegisterCumulDependentTransitCallback in python? #4914
|
Hello! Thanks for your advice |
Replies: 2 comments
|
you cannot and you should not. |
|
To add one independent data point to Laurent's answer: we probed this API in depth (C++ side included) before finding this thread. The Python wheel cannot register the callback type at all (no SWIG typemap), and in C++ the engine stores registered callbacks without ever evaluating them during search or restoration, so the piecewise-linear part of such a dimension is silently dropped. Removal is announced in #5070. If what brought you here is actual time-dependent travel times, Kayros (MIT, |
you cannot and you should not.
This part of the code is buggy and should not be used.