when we use "planBasicTour" we have the following paramters:
Code: Select all
"distanceMatrixCalculation":
[
{
:deleteAfterUsage=>true,
:profileName=>"dimaCar",
:$type=>"DistanceMatrixByRoad",
:dimaId=>1,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruck",
:$type=>"DistanceMatrixByRoad",
:dimaId=>2,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaBicycle",
:$type=>"DistanceMatrixByRoad",
:dimaId=>3,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaCarslow",
:$type=>"DistanceMatrixByRoad",
:dimaId=>4,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruckslow",
:$type=>"DistanceMatrixByRoad",
:dimaId=>5,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruckheavy",
:$type=>"DistanceMatrixByRoad",
:dimaId=>6,
:deleteBeforeUsage=>true
},{
:deleteAfterUsage=>true,
:profileName=>"dimaTest",
:$type=>"DistanceMatrixByRoad",
:dimaId=>7,
:deleteBeforeUsage=>true
}
]
Now we create in "/conf/profiles" a new profile "dimaTest" with the same settings as in dimaCar.
Then we add the new profile "dimaTest" to the distanceMatrixCalculation (see above).
When we optimize the same tour with dimaCar and with dimaTest, we get two different results (order of the addresses).
Now we put in distanceMatrixCalculation the dimaTest at position 1:
Code: Select all
[
{
:deleteAfterUsage=>true,
:profileName=>"dimaTest",
:$type=>"DistanceMatrixByRoad",
:dimaId=>1,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruck",
:$type=>"DistanceMatrixByRoad",
:dimaId=>2,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaBicycle",
:$type=>"DistanceMatrixByRoad",
:dimaId=>3,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaCarslow",
:$type=>"DistanceMatrixByRoad",
:dimaId=>4,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruckslow",
:$type=>"DistanceMatrixByRoad",
:dimaId=>5,
:deleteBeforeUsage=>true
}, {
:deleteAfterUsage=>true,
:profileName=>"dimaTruckheavy",
:$type=>"DistanceMatrixByRoad",
:dimaId=>6,
:deleteBeforeUsage=>true
}
]
Now we get the same result as we get for dimaCar in our first Test.
So the paramter dimaId seems to be decisive for the order of the addresses in the result.
Please can you tell us what we are doing wrong?
Thanks for your help.
Edit by JCL: added codes tags for readability