Hi i'm working on vehicle routing problem with Google or_tool library. i'm building a dynamical constraint that requires knowing the last node assigned to a vehicle. Is possible get the last node with a UnaryTransitCallback? How to do it? Are there other ways?
I tried with simple callback:
int StartIndexCallBack = routing.RegisterUnaryTransitCallback((long fromIndex) => { return fromIndex; });
but i don't know how to use it.
Thanks for your support.
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/537e609d-cdbd-4b8b-90fd-e59a55cd51den%40googlegroups.com.
If by last node you mean the one just prior to the current node, then just use the regular transit callback. Then you know both the prior and the current node.
James
-- You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/537e609d-cdbd-4b8b-90fd-e59a55cd51den%40googlegroups.com.
James E. Marca
Activimetrics LLC