Multiple Pick, Load and Drop Nodes with Outsourcing Component #1228
Labels
Help Needed
Modeling/Usage problem
Solver: Routing
Uses the Routing library and the original CP solver
Milestone
Dear,
This is the first issue I post on Github so please let me know if I am doing things according to the rules.
I have a CVRPTW with PD, but instead of the usual PD constraint something more complicated. In my model, drivers of trucks are also warehouse pickers. This imposes a non-regular time constraint on the time trucks are available to actually load, travel, and deliver:
I noticed this problem is similar to #968. To model the situation described above, I have created a node for each order, where that order can be picked, and a node for each order, where that order can be loaded.
I would like the possibility to outsource some orders if that is profitable. If an order is outsourced, all a vehicle (driver) needs to do is pick the order from the warehouse (the outsource company will load and deliver the order). I have added a disjunction to every load node with penalty equal to the cost of outsourcing the corresponding order (which varies per order). The outsourcing cost for an order node is 0, since the price for outsourcing was already paid at the load node.
This is part of my code for the situation above:
With this code I only get solutions where the load node is always visited, even if I set the penalty at the disjunction of load nodes very low. In fact, when I set the outsource cost (the penalty) to 0, the solver did not find any solution.
How can this happen, and how can I solve it? Many thanks in advance!
The text was updated successfully, but these errors were encountered: