<?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 Network analyst and multiproccessing in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484511#M4702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGis 10.4.1 for desktop and network Analyst extension. Is it possible to use multiprocessing when performing vehicle problem routing analysis? Every day i run a script where&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;the VRP solver finds the best routes for a fleet of 300 motorbikes where each one has to visit up to 400 stops. If it is not feasible to use multiprocessing will upgrading my cpu and ram size reduce the processing time?&amp;nbsp; Currently i m using a pc equipped&amp;nbsp; with i3 processor and 16gb ram.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2018 18:47:16 GMT</pubDate>
    <dc:creator>sotokan80_</dc:creator>
    <dc:date>2018-12-21T18:47:16Z</dc:date>
    <item>
      <title>Network analyst and multiproccessing</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484511#M4702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGis 10.4.1 for desktop and network Analyst extension. Is it possible to use multiprocessing when performing vehicle problem routing analysis? Every day i run a script where&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;the VRP solver finds the best routes for a fleet of 300 motorbikes where each one has to visit up to 400 stops. If it is not feasible to use multiprocessing will upgrading my cpu and ram size reduce the processing time?&amp;nbsp; Currently i m using a pc equipped&amp;nbsp; with i3 processor and 16gb ram.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 18:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484511#M4702</guid>
      <dc:creator>sotokan80_</dc:creator>
      <dc:date>2018-12-21T18:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Network analyst and multiproccessing</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484512#M4703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VRP does not have any additional multi-processor support. The process is usually CPU bound, so having a faster computer CPU like an I7 and/or faster disk (Solid state drive) will help speed up the solve times. The fast disk is to hold the network dataset as well as the computer TEMP folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 21:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484512#M4703</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2018-12-21T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Network analyst and multiproccessing</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484513#M4704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;The script that i am using has a method with the following arguments.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;def ra(EndPoint, RoadRules, data, StationName, Store_shp, SortedStationStops_shp, StationDeliveries_shp, stationRoutes_Dic, BranchId)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;This method is based on the given example in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/make-route-analysis-layer.htm" rel="nofollow noreferrer noopener" style="color: rgba(53, 141, 170, 0.8); border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/network-analyst/make-route-analysis-layer.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;A part of the code where I am trying to use multiprocessing follows;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;if __name__ == '__main__':&amp;nbsp;&amp;nbsp;&amp;nbsp; # Set workspace environment to a folder&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = path&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_list=[]&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = arcpy.ListFeatureClasses()&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in fcs:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if filename.startswith('agivenName'):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_list.append(filename)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from multiprocessing import Pool&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool = Pool(4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.map(partial(ra(EndPoint, RoadRules, routeDeliv, StationName, Store_shp, SortedStationStops_shp, StationDeliveries_shp, stationRoutes_Dic, branch_id), fc_list)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.close()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.join()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I cannot make it work. I've tried many ways i.e&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; func = partial(ra,EndPoint, RoadRules, StationName, Store_shp, SortedStationStops_shp, StationDeliveries_shp, stationRoutes_Dic, branch_id)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.map(func, fc_list)

&lt;SPAN class="" style="background-color: #f9f8f6; border: 0px;"&gt;The script works perfectly when i dont use multiprocessing. When i use multiprocessing it doesnt execute the method. 
I believe that it has to do with the fact that it has more than one arguments&lt;/SPAN&gt;&lt;SPAN style="background-color: #f9f8f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/network-analyst-and-multiproccessing/m-p/484513#M4704</guid>
      <dc:creator>sotokan80_</dc:creator>
      <dc:date>2021-12-11T21:21:59Z</dc:date>
    </item>
  </channel>
</rss>

