<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:  Route Task - Problem Delivery Sequence in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79282#M7256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When set to false, the sequence is correct because i'm defined sequence manually, &lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;but the purpose of the software is it determine the best sequence , which did not occur in this and other cases I have.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;I believe this to be a problem of the tool, but how can I be sure? Deliveries must be made first, because as soon as the vehicle is lighter and uses less fuel, reducing the cost of delivery.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;Follows another example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;Thank's.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 11:59:59 GMT</pubDate>
    <dc:creator>Luiz_CarlosRomani_Filho</dc:creator>
    <dc:date>2016-03-16T11:59:59Z</dc:date>
    <item>
      <title>Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79280#M7254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using RouteTask to solve and return the best sequence delivery but there is a problem in sequence , as shown in the attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing something wrong on call or missing some parameter or a tool problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simulate the problem I send html page. Open the file, copy and paste html in ArcGIS Sandbox and click in Start:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fsandbox%2Fsandbox.html" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/sandbox/sandbox.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 13:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79280#M7254</guid>
      <dc:creator>Luiz_CarlosRomani_Filho</dc:creator>
      <dc:date>2016-03-15T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re:  Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79281#M7255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the routeParams.findBestSequence is set to false the stops in your image will be 2, 3 &amp;amp; 4 as you are expecting.&amp;nbsp; When the parameter is set to true, the solver will choose an optimum sequence for all the stops considered.&amp;nbsp; Here is a screenshot of the parameters set to false:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/191147_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When set to true, it looks like the image you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 21:20:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79281#M7255</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2016-03-15T21:20:51Z</dc:date>
    </item>
    <item>
      <title>Re:  Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79282#M7256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When set to false, the sequence is correct because i'm defined sequence manually, &lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;but the purpose of the software is it determine the best sequence , which did not occur in this and other cases I have.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;I believe this to be a problem of the tool, but how can I be sure? Deliveries must be made first, because as soon as the vehicle is lighter and uses less fuel, reducing the cost of delivery.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;Follows another example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-size: 16px; font-family: arial, sans-serif;"&gt;Thank's.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79282#M7256</guid>
      <dc:creator>Luiz_CarlosRomani_Filho</dc:creator>
      <dc:date>2016-03-16T11:59:59Z</dc:date>
    </item>
    <item>
      <title>Re:  Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79283#M7257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing well.&amp;nbsp; I hope you are doing well too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sample, you may need to experiment with the routeParameters to get the result you are looking for.&amp;nbsp; When you request an optimal path using the findBestSequence parameter, the routeTask as you have it, knows nothing about weight.&amp;nbsp; It is calculating the smallest impedance to make the fastest trip through all of the stops.&amp;nbsp; You will need to add other parameters to your routeParameters setting and more information to your stops to change the outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 15:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79283#M7257</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2016-03-16T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re:  Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79284#M7258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fine thank's and you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, I got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry my ignorance that subjects, but you know what parameter can use the stop point to return the expected result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could not find a better documentation to this point in ARCGIS Online - Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79284#M7258</guid>
      <dc:creator>Luiz_CarlosRomani_Filho</dc:creator>
      <dc:date>2016-03-17T12:14:25Z</dc:date>
    </item>
    <item>
      <title>Re:  Route Task - Problem Delivery Sequence</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79285#M7259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No apologies necessary!&amp;nbsp; I am very happy to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The findBestSequence would work best on a unsorted (geographically) list of stops.&amp;nbsp; Since your list is already put into a fairly logical sequence, you may see very little difference in the travel time whether using findBestSequence or not.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation even states, "&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px;"&gt;The heuristics do not guarantee the optimal sequence (as there is no good/fast way to prove optimality for large number of stops), it returns a solution that is close to optimal if not the optimal.".&amp;nbsp; You may have additional knowledge about setting the sequence that cannot be easily modeled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px;"&gt;Compare the results between the two.&amp;nbsp; If they are close in travel time, your additional knowledge of sequence may work better.&amp;nbsp; If the findBestSequence is substantially better, it may be the best way to set your route.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/route-task-problem-delivery-sequence/m-p/79285#M7259</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2016-03-17T15:50:48Z</dc:date>
    </item>
  </channel>
</rss>

