VRP: load constraint exceeded with float digits #2852
-
cross-posted here: https://groups.google.com/g/or-tools-discuss/c/oqMgzvA0BAU load (cubic meters) is one of the containts defining the vehicle capacity in my model. this is how I set this load containt: def add_cm3_constraints(routing, data, demand_callback_index):
"""Adds capacity constraint"""
cm3 = "cm3"
routing.AddDimensionWithVehicleCapacity(
demand_callback_index,
0, # null capacity slack
cm3_vector(), # vector vehicle_capacity
True, # start cumul to zero
cm3) If I set the vehicle with max load capacity being as "30", the consolidated loads in my vehicle should not exceed "30". UPDATE: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
yes routing solver in C++ use int64_t all python,java, .Net module are "just" wrapper on top of the C++ library with the same limitation. |
Beta Was this translation helpful? Give feedback.
yes routing solver in C++ use int64_t all python,java, .Net module are "just" wrapper on top of the C++ library with the same limitation.
i.e. our python package is a native python package...