Hmm, I don't think a dimension will do the job, because you can't look
across vehicles.
But maybe you can dive into the underlying CP solver and create a
variable that captures what you want, then add that to the objective
function to minimize it along with everything else.
Going from memory (I'm too lazy right now to look it up), look at the
C++ code for how the Set global span coefficient-type constraints are
done, and copy that general approach. A long time ago I posted an
analysis of that bit of code to this mailing list, so if you dig
through history you can find it. What I'm not so sure about is how
efficient it will be.
Hope that helps,
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/3df3960a-69c1-4867-b820-e351a0295fb7n%40googlegroups.com.
--
James E. Marca
Activimetrics LLC