<?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: facing issue in NA VRP C# code customization in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285441#M2789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which sample did you download?&amp;nbsp; Was it this one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Sample_Vehicle_routing_problem_solver/0001000001s3000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Sample_Vehicle_routing_problem_solver/0001000001s3000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version of the software are you on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;"1. When I tried adding one more attribute "Cost" (Usage typ///) value= minutes, I get an exception "Input string is not in a correct format"&lt;BR /&gt;&lt;BR /&gt; Where did you add a cost attribute?&amp;nbsp; What line of code threw the exception?&amp;nbsp;&amp;nbsp; What network dataset are you using?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;"2. When I change distance unit attribute from mile to meter I get exception "No Orders Routed"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;&lt;BR /&gt;Were you getting a correct solve before?&amp;nbsp; Which line of code are you using to change the distance attribute.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for being patient.&amp;nbsp; We'll figure this out.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 13:58:12 GMT</pubDate>
    <dc:creator>PatrickStevens</dc:creator>
    <dc:date>2014-01-28T13:58:12Z</dc:date>
    <item>
      <title>facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285440#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have downloaded Csharp sample code for VRP from SDk help &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to add just one extra parameter say(Cost) which has time unit and analyze the same network. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem Faced : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When I tried adding one more attribute "Cost" (Usage typ///) value= minutes, I get an exception "Input string is not in a correct format"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When I change distance unit attribute from mile to meter I get exception "No Orders Routed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please do help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 06:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285440#M2788</guid>
      <dc:creator>G_SSasane</dc:creator>
      <dc:date>2014-01-27T06:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285441#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which sample did you download?&amp;nbsp; Was it this one:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Sample_Vehicle_routing_problem_solver/0001000001s3000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Sample_Vehicle_routing_problem_solver/0001000001s3000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version of the software are you on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;"1. When I tried adding one more attribute "Cost" (Usage typ///) value= minutes, I get an exception "Input string is not in a correct format"&lt;BR /&gt;&lt;BR /&gt; Where did you add a cost attribute?&amp;nbsp; What line of code threw the exception?&amp;nbsp;&amp;nbsp; What network dataset are you using?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;"2. When I change distance unit attribute from mile to meter I get exception "No Orders Routed"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3E3E3E; font-family: Arial;"&gt;&lt;BR /&gt;Were you getting a correct solve before?&amp;nbsp; Which line of code are you using to change the distance attribute.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for being patient.&amp;nbsp; We'll figure this out.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285441#M2789</guid>
      <dc:creator>PatrickStevens</dc:creator>
      <dc:date>2014-01-28T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285442#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;downloaded sample C# code from&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001s3000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000001s3000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; using ArcGIS desktop 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added one more cost attribute having unit Minutes to Network dataset layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My core problem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*********************************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually my problem is am trying to add more cost attributes other than "Time" and "Distance", for e.g. (CO2, Operating Cost etc) while optimizing the routes using VRP tool of NA for research purpose. SO that i can understand which is the most influencing attribute. This exercise am doing for optimizing Solid waste collection routes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**********************************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, as default it considers either "Time" or "distance" impedance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So am trying to customize the code, so that it can take other distributes also other than "Time" and "cost" and give routing according to specified impedance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Want to check how routing affects with optimizing routing with each parameter. So i can say if you use Time as factor this is the routing for solid waste collection, and if CO2 is factor this is the routing for solid waste collection. And simultaneously how each parameter is behaving while optimizing each parameter. For e.g. if am optimizing SWM routing with "Time" , so what is incurred operating cost, distance traveled, CO2 emission from SWM vehicles. And if am optimizing with "Operating Cost" then how much time taken, distance traveled and Co2 emission and so on....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**********************************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We get correct solution for "Time" and "Distance" but not for parameters other than those.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;**********************************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now my first query is ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. isn't it possible to incorporate attributes other than Time and Distance ? if yes how ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Is there any restriction in customizing sample code? Do we have to change any setting of code or ArcGIS NA VRP tool ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 05:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285442#M2790</guid>
      <dc:creator>GSasane</dc:creator>
      <dc:date>2014-01-30T05:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285443#M2791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VRP solver uses the time impedance to calculate OD matrix and assign orders to route based on the time information from the OD matrix. The distance attribute will be accumulated along the route. Unfortunately, VRP solver only supports optimizing the route with the impedance in time unit. If you put monetary attribute in time impedance, it won't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Route solver supports various impedance attributes and accumulated attributes. If you know the order assignment on routes, you may try to use route solver to calculate all kinds of accumulated costs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285443#M2791</guid>
      <dc:creator>NaAn</dc:creator>
      <dc:date>2014-01-30T17:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285444#M2792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;VRP solver uses the time impedance to calculate OD matrix and assign orders to route based on the time information from the OD matrix. The distance attribute will be accumulated along the route. Unfortunately, VRP solver only supports optimizing the route with the impedance in time unit. If you put monetary attribute in time impedance, it won't work.&lt;BR /&gt;&lt;BR /&gt;Route solver supports various impedance attributes and accumulated attributes. If you know the order assignment on routes, you may try to use route solver to calculate all kinds of accumulated costs. &lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Anna&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that mean i can not customize code to use other than time impedance and get accumulated attributes for rest of attributes??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285444#M2792</guid>
      <dc:creator>GSasane</dc:creator>
      <dc:date>2014-01-30T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285445#M2793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, you can not use other than time impedance to optimize routes in VRP solver.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:57:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285445#M2793</guid>
      <dc:creator>NaAn</dc:creator>
      <dc:date>2014-01-31T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285446#M2794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you suggest any alternative way out for same?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285446#M2794</guid>
      <dc:creator>GSasane</dc:creator>
      <dc:date>2014-01-31T15:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: facing issue in NA VRP C# code customization</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285447#M2795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One workaround could be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume that you have a constant value of operational cost on each edge in the network. If that is the case, you may try to set the unit of your operational cost as a time unit in the network dataset and use it as the time impedance. Since travel cost on each edge is calculated as travel time (which is operational cost in your case) * CostPerUnitTime + travel distance * CostPerUnitDistance, you will need to set a proper value for CostPerUnitTime, i.e. 1. The solution will show you the low cost order assignment and sequence. However, all the time information output becomes meaningless and you shouldn't use any time windows in the problem setting. You may load the order assignment from VRP solver to Route solver, and choose a true time impedance to obtain the valid time output information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this works for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/facing-issue-in-na-vrp-c-code-customization/m-p/285447#M2795</guid>
      <dc:creator>NaAn</dc:creator>
      <dc:date>2014-01-31T16:12:58Z</dc:date>
    </item>
  </channel>
</rss>

