In a vehicle routing problem, I have several depots with many orders. When I run the solution, it sometimes assigns an order to a different depot. Is there a way to say an order must come from a specific depot?
It sounds like you are solving a delivery problem where orders are picked up from depots and delivered to various locations. You want make sure that certain delivery order has to come from a specific depot. If that�??s the case, please use paired order to solve your problem. You may create a dummy order in the depot location and set it as the first order in the pair and use the real delivery location as the second order in the pair. Solver will guarantee that the order is picked up from the dedicated depot. In one VRP layer you can include both paired orders and regular orders. For more details on paired order problem, please see the tutorial below: