Start points without end points in pickup&delivery problem #4405
Unanswered
CatonTheRoRo
asked this question in
Routing (and legacy CP) questions
Replies: 3 comments 3 replies
-
Can you give a code snippet example of how you are calling this?
Guessing...
If *all* of your pickups do not have delivery points, then you do not have a pickup and delivery problem.
If just *some* of your pickups do not have delivery points, then those should be *excluded* from all of the code you use to specify the pdp pairs.
```py
for item in items:
if item.delivery == null:
continue
do_pdp_stuff(item)
```
Another idea...if all of the pickup without delivery items are supposed to be taken back to the depot, then you can create dummy delivery nodes for each item at the depot.
Somethig like, in magical pseudo python:
```python
# create needed dummy nodes prior to setting up the routing object
for item in items:
if item.delivery == null:
# make a dummy node
dummy_nodes += 1
item.delivery = dummy_nodes
lookup_thing[dummy_nodes] = depot_node
... later ...
for item in items:
do_pdp_stuff(item)
```
James
…On Wed, Oct 09, 2024 at 01:47:39PM -0700, CatonTheRoRo wrote:
Is there a way to specify start points without end points, So the solver would not take endpoints as constrain in his solving process?
When I simply omit endpoints I got 'wrong number of arguments' error.
Is passing endpoints to RoutingIndexManager mandatory?
Is there a way or way-around to make or-tools run without endpoints?
--
Reply to this email directly or view it on GitHub:
#4405
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
--
James E. Marca
Activimetrics LLC
|
Beta Was this translation helpful? Give feedback.
1 reply
-
The question of no end points has been answered multiple times. |
Beta Was this translation helpful? Give feedback.
1 reply
-
as indicated in this thread, you did not search hard
https://groups.google.com/g/or-tools-discuss/c/tSM-f5GzWds
There is even a guide entry for this:
https://developers.google.com/optimization/routing/routing_tasks#allowing_arbitrary_start_and_end_locations
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le jeu. 10 oct. 2024 à 14:14, CatonTheRoRo ***@***.***> a
écrit :
… I am posting this after researching multiple times here and in other
places. I did not find an answer that meets my needs. If you find one,
please send me the link.
—
Reply to this email directly, view it on GitHub
<#4405 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3PZBVMEOLD55KUHCB3Z2ZVRDAVCNFSM6AAAAABPVLK3S2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJQGM2TOOA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to specify start points without end points, So the solver would not take endpoints as constrain in his solving process?
When I simply omit endpoints I got 'wrong number of arguments' error.
Is passing endpoints to RoutingIndexManager mandatory?
Is there a way or way-around to make or-tools run without endpoints?
Beta Was this translation helpful? Give feedback.
All reactions