Using Ortool how to get route when we pass Start points without end points (using arbitrary concept) #4474
Unanswered
Pratibha-UID
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Could you please help me out where I am doing mistake, as I have followed the suggestion where I want to specify the start point and end should decided by algorithm for that I have tried same way which you mentioned in Allowing arbitrary start and end locations documentation but in result I am getting random start point and start point which I really expect at start that came at last location.
RoutingIndexManager(distancemetrix.length, numVehicles, new int[]{1}, new int[]{0});
numVehicles = 1
Below distance metrix I have passed.
Before :
{ {0, 972105, 889576, 968248, 987336, 883578, 934372},
{971997, 0, 95095, 5255, 17380, 99897, 68607},
{890190, 94882, 0, 92999, 108008, 6093, 59123},
{969866, 5273, 92964, 0, 17566, 97766, 66476},
{986885, 17967, 109983, 17203, 0, 114785, 83495},
{882710, 100256, 6953, 98734, 113743, 0, 64858},
{937247, 68597, 60345, 66714, 81723, 65147, 0}}
After adding arbitrary end point :
{ {0,0,0,0,0,0,0},
{0, 972105, 889576, 968248, 987336, 883578, 934372},
{0, 0, 95095, 5255, 17380, 99897, 68607},
{0, 94882, 0, 92999, 108008, 6093, 59123},
{0, 5273, 92964, 0, 17566, 97766, 66476},
{0, 17967, 109983, 17203, 0, 114785, 83495},
{0, 100256, 6953, 98734, 113743, 0, 64858},
{0, 68597, 60345, 66714, 81723, 65147, 0}}
Can anyone help on this where I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions