Short answer, yes, you need to provide a function to one of the
"SetArcCostEvaluator..." API calls.
If you do not do that, then you haven't really told the solver
what
your primary minimization goal is.
If your goal is minimizing time, then use time.
If your goal is minimizing distance, then use distance.
If you have some other variable that accumulates with each node
visit
and that is your primary objective, then use that function.
The function can also be used in a dimension, but that is not
required.
Hope that helps,
James
ArcCostEvaluatorForAllVehicles
? If so, what is the benefit of doing so?
Any assistance would be appreciated :)
--
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/ac807e34-a6a5-4c03-adfc-a931d51b7975n%40googlegroups.com.
James E. Marca
Activimetrics LLC