<?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: K-th best route solution in Network Analyst in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417893#M1412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the 10 release, you can approximate a k-shortest paths solver using the enhanced barrier features that will be available in Network Analyst. Specifically, all Network Analyst solvers at 10 will support point, line, and polygon barriers. Additionally, for line and polygon barriers, instead of just restricting the parts of the network that are covered by their geometry, you can opt to simply scale the costs of the parts of the network covered by the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, to approximate k-shortest paths, you can do the following (this is essentially the same as what Bill suggests above, but I am providing specific steps using the newly-supported barrier functionality):&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Solve the route to get the best path&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Take the current best path and load it as a polyline barrier with a scale factor of x&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Repeat&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that by scaling the polyline barrier instead of restricting it, this will allow the next path to reuse some of the same edges along the previous path if necessary, but at a higher cost than in previous paths. Also note that when multiple line barriers apply to the same edge, the final scale factor for the cost of that edge becomes the product of their individual scale factors. For example, if there are two line barriers applied to some edge with scale factors x and y, respectively, the scaled cost of traversing that edge will be x*y*originalEdgeCost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This means that the more an edge is reused across different paths, the less likely it will be to be used in any subsequent paths as the process discussed above continues to iterate. Does this make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if there are any questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 May 2010 14:57:46 GMT</pubDate>
    <dc:creator>MichaelRice</dc:creator>
    <dc:date>2010-05-12T14:57:46Z</dc:date>
    <item>
      <title>K-th best route solution in Network Analyst</title>
      <link>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417892#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an application where I need to calculate several different possible routes between origin and destination points on a road network.&amp;nbsp; The best option that I can come up with at this time is what is commonly called the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;kth best route&lt;/SPAN&gt;&lt;SPAN&gt;, which would return the shortest route, the second shortest, third shortest, etc.&amp;nbsp; I've searched around on the web for a solution to this and have come up empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any experience with this, or do you know if it is possible to extract this information out of Network Analyst?&amp;nbsp; Any help you can provide would be most appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian Frizzelle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 11:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417892#M1411</guid>
      <dc:creator>BrianFrizzelle</dc:creator>
      <dc:date>2010-05-11T11:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: K-th best route solution in Network Analyst</title>
      <link>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417893#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the 10 release, you can approximate a k-shortest paths solver using the enhanced barrier features that will be available in Network Analyst. Specifically, all Network Analyst solvers at 10 will support point, line, and polygon barriers. Additionally, for line and polygon barriers, instead of just restricting the parts of the network that are covered by their geometry, you can opt to simply scale the costs of the parts of the network covered by the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, to approximate k-shortest paths, you can do the following (this is essentially the same as what Bill suggests above, but I am providing specific steps using the newly-supported barrier functionality):&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Solve the route to get the best path&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Take the current best path and load it as a polyline barrier with a scale factor of x&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Repeat&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that by scaling the polyline barrier instead of restricting it, this will allow the next path to reuse some of the same edges along the previous path if necessary, but at a higher cost than in previous paths. Also note that when multiple line barriers apply to the same edge, the final scale factor for the cost of that edge becomes the product of their individual scale factors. For example, if there are two line barriers applied to some edge with scale factors x and y, respectively, the scaled cost of traversing that edge will be x*y*originalEdgeCost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This means that the more an edge is reused across different paths, the less likely it will be to be used in any subsequent paths as the process discussed above continues to iterate. Does this make sense?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if there are any questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 14:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417893#M1412</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-05-12T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: K-th best route solution in Network Analyst</title>
      <link>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417894#M1413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, just to be absolutely clear on this: this approach will technically not guarantee a true k-shortest path solve, so we must be careful not to incorrectly label it as such. As I said previously, it is merely an approximation for this concept. A more appropriate name might be to call this a k-&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;alternate &lt;/SPAN&gt;&lt;SPAN&gt;path approach (as opposed to &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;shortest&lt;/SPAN&gt;&lt;SPAN&gt;). The alternate paths you get will ultimately depend on the scale factors you use. The good thing, however, is that it is therefore a parameterizable approach, which can be tuned to the user's needs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 19:13:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/k-th-best-route-solution-in-network-analyst/m-p/417894#M1413</guid>
      <dc:creator>MichaelRice</dc:creator>
      <dc:date>2010-05-12T19:13:19Z</dc:date>
    </item>
  </channel>
</rss>

