<?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: Do VRP service AssignmentRule parameter values 1 and 2 differs? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/do-vrp-service-assignmentrule-parameter-values-1/m-p/667450#M4570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With the refrence to your question, when you created the model builder what did you do in the route box.&lt;/P&gt;&lt;P&gt;I am working with vrp currently,&amp;nbsp;facing numerous problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 04:31:34 GMT</pubDate>
    <dc:creator>AnuranjanaNand</dc:creator>
    <dc:date>2017-05-03T04:31:34Z</dc:date>
    <item>
      <title>Do VRP service AssignmentRule parameter values 1 and 2 differs?</title>
      <link>https://community.esri.com/t5/developers-questions/do-vrp-service-assignmentrule-parameter-values-1/m-p/667449#M4569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;By testing VRP service API, I've stumbled upon a small problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;To submit a optimization job to VRP service you need to provide some order parameters and among those parameters there's parameter named 'AssignmentRule'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;As per API description after mentioned parameter:&lt;/P&gt;&lt;UL style="color: #4d4d4d; background-color: #eeeeee; border: 0px; font-size: 12.8px;"&gt;&lt;LI style="border: 0px; font-size: 12.8px; margin: 0px 0px 5px 30px; padding: 0px 0px 0px 5px;"&gt;&lt;SPAN class="" style="border: 0px; font-size: 12.8px;"&gt;1&lt;/SPAN&gt; (Preserve route and relative sequence) - The service must always assign the order to the preassigned route and at the preassigned relative sequence when finding the solution. If this assignment rule can't be followed, it results in an order violation.&lt;P style="border: 0px; font-size: 12.8px; margin: 0px 0px 0px 10px;"&gt;With this setting, only the relative sequence is maintained, not the absolute sequence. To illustrate what this means, imagine there are two orders: A and B. They have sequence values of 2 and 3, respectively. If you set their &lt;SPAN class="" style="border: 0px; font-size: 12.8px;"&gt;AssignmentRule&lt;/SPAN&gt; attribute value to 1, A and B's actual sequence values may change in the solution because other orders, breaks, and depot visits could still be sequenced before, between, or after A and B. However, B cannot be sequenced before A.&lt;/P&gt;&lt;/LI&gt;&lt;LI style="border: 0px; font-size: 12.8px; margin: 0px 0px 5px 30px; padding: 0px 0px 0px 5px;"&gt;&lt;SPAN class="" style="border: 0px; font-size: 12.8px;"&gt;2&lt;/SPAN&gt; (Preserve route) - The service must always assign the order to the preassigned route when finding the solution. A valid sequence must also be set even though the sequence may or may not be preserved. If the order can't be assigned to the specified route, it results in an order violation.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;So as example, we have two orders in same route:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Order 1 - has delivery times from 10:00 to 12:00 and it's sequence no.: 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Order 2 - has delivery times from 06:00 to 08:00 and it's sequence no.:10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(All route and depot parameters are correct in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;So by logic, if we supply for both of these orders with AssigmentRule parameter, which equals 1 (Preserve route and relative sequence) - VRP service in return will fail as Order 2 cannot be delivered after Order 1, because it's delivery interval&amp;nbsp;is less than Order 1 delivery interval. VRP service will optimize route only&amp;nbsp;when we swap sequence numbers of orders or otherwise make Order 2 sequence number lesser than Order 1 (in example - 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;And there's problem I've stumbled upon.&amp;nbsp;&lt;SPAN&gt;We can use same example as before, but let's change AssigmentRule parameter to '2'. As I can understand by description in API, VRP service should return result in which, Order 2 should be delivered before Order 1. It does't matter by what sequence orders were supplied, service will take and rearrange them by how it deems necessary, without paying attention to supplied sequence numbers as with AssigmentRule&amp;nbsp;parameter '2'. But the problem is - VRP service optimization fails and orders are optimized only when Order 2 has lower sequence number than Order 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Is it bug, can someone check? Or is it something that I just don't understand ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/do-vrp-service-assignmentrule-parameter-values-1/m-p/667449#M4569</guid>
      <dc:creator>GERKUSLLC</dc:creator>
      <dc:date>2017-04-24T20:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do VRP service AssignmentRule parameter values 1 and 2 differs?</title>
      <link>https://community.esri.com/t5/developers-questions/do-vrp-service-assignmentrule-parameter-values-1/m-p/667450#M4570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With the refrence to your question, when you created the model builder what did you do in the route box.&lt;/P&gt;&lt;P&gt;I am working with vrp currently,&amp;nbsp;facing numerous problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 04:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/do-vrp-service-assignmentrule-parameter-values-1/m-p/667450#M4570</guid>
      <dc:creator>AnuranjanaNand</dc:creator>
      <dc:date>2017-05-03T04:31:34Z</dc:date>
    </item>
  </channel>
</rss>

