<?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: Calculate Travel Time Statistics - run in parallel in Public Transit Questions</title>
    <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167366#M542</link>
    <description>&lt;P&gt;Hi Melinda,&lt;/P&gt;&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;Honestly I'm at the crunch point of my honors thesis, so I just went ahead a ran with the tools I had available. I haven't done a lot of stuff at this kind of scale before, so I'm not really in a position to judge whether the performance was as expected. For some context, I'm doing an accessibility analysis for access to healthcare in my city, with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;~6600 origins (census centroids)&lt;/LI&gt;&lt;LI&gt;5 destinations&lt;/LI&gt;&lt;LI&gt;Calculate statistics from 6:30am -&amp;gt; 11:00pm, 30 minutes interval between runs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With this setup, I found that the tool was taking about 10 - 15mins to solve each run, so about 6hrs compute time to solve each 'day' on the transit network. I repeated for four different days (to cover all variation in the transit schedule), so required 24hrs of compute time.&lt;/P&gt;&lt;P&gt;I would have loved to have simulated a much smaller interval (down at 10 or 5 mins perhaps), but that clearly wasn't an option here. If I'd done 5 min intervals, it would have required ( 10mins run time * 16.5 transit hours * 12 runs/hr * 4 days / 60 mins/hour) 132 of compute time?&lt;/P&gt;&lt;P&gt;So I don't think that is doable. However, I'm still very grateful that I didn't have to write the code from scratch. No urgency on further development, I've got the data I needed for this project. I'm hopeful I'll get the opportunity to continue with this line of inquiry after my thesis, so if you produce a parallel version down the track I'll certainly make good use of it.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 00:54:10 GMT</pubDate>
    <dc:creator>MichaelVernon</dc:creator>
    <dc:date>2022-04-25T00:54:10Z</dc:date>
    <item>
      <title>Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1166490#M536</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Just found the Transit Network Analysis tools. Fantastic job, they are awesome.&lt;/P&gt;&lt;P&gt;I'm really hoping to use the Calculate Travel Time Statistics tool on a city-wide transit network. Any chance you have a version that can use parallel computation hanging around I can test?&lt;/P&gt;&lt;P&gt;I want to use the average transit time as an input to a huff gravity model, and I fear many hours of waiting around for runs to complete are ahead of me.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 01:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1166490#M536</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-04-21T01:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1166840#M537</link>
      <description>&lt;P&gt;Hello Michael.&amp;nbsp; Thanks for your request.&lt;/P&gt;&lt;P&gt;Although I have parallelized the other tools in that toolbox, I haven't done this one yet.&amp;nbsp; I honestly wasn't sure if anybody was using this tool, so thank you for confirming that it has at least some value.&lt;/P&gt;&lt;P&gt;I can add it to my to-do list to create a parallel version of this tool, although I can't commit to doing it in the immediate future (lots of other stuff on my plate right now).&lt;/P&gt;&lt;P&gt;Have you tested the current tool to determine if performance is really a problem?&amp;nbsp; It definitely CAN be faster if I parallelize it, but it's possible that it isn't...completely terrible...as it is...maybe...&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 20:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1166840#M537</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2022-04-21T20:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167366#M542</link>
      <description>&lt;P&gt;Hi Melinda,&lt;/P&gt;&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;Honestly I'm at the crunch point of my honors thesis, so I just went ahead a ran with the tools I had available. I haven't done a lot of stuff at this kind of scale before, so I'm not really in a position to judge whether the performance was as expected. For some context, I'm doing an accessibility analysis for access to healthcare in my city, with:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;~6600 origins (census centroids)&lt;/LI&gt;&lt;LI&gt;5 destinations&lt;/LI&gt;&lt;LI&gt;Calculate statistics from 6:30am -&amp;gt; 11:00pm, 30 minutes interval between runs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With this setup, I found that the tool was taking about 10 - 15mins to solve each run, so about 6hrs compute time to solve each 'day' on the transit network. I repeated for four different days (to cover all variation in the transit schedule), so required 24hrs of compute time.&lt;/P&gt;&lt;P&gt;I would have loved to have simulated a much smaller interval (down at 10 or 5 mins perhaps), but that clearly wasn't an option here. If I'd done 5 min intervals, it would have required ( 10mins run time * 16.5 transit hours * 12 runs/hr * 4 days / 60 mins/hour) 132 of compute time?&lt;/P&gt;&lt;P&gt;So I don't think that is doable. However, I'm still very grateful that I didn't have to write the code from scratch. No urgency on further development, I've got the data I needed for this project. I'm hopeful I'll get the opportunity to continue with this line of inquiry after my thesis, so if you produce a parallel version down the track I'll certainly make good use of it.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 00:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167366#M542</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-04-25T00:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167532#M543</link>
      <description>&lt;P&gt;Okay, I'm glad you got what you needed.&amp;nbsp; My one caution about a 30-minute interval is that some transit service runs on a 30-minute interval, so you may get some weird effects where the system is effectively in the same state every 30 minutes, which is not representative of the state(s) it's in during the times between those 30 minutes.&amp;nbsp; Like if person A lives right next to a bus stop with a bus coming every 30 minutes, and they've just missed that bus by 1 minute, then it shows them as perpetually unable to get to their doctor's appointment, even though there are some times of day (like 1 minute before each analysis time slice) when they actually can.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167532#M543</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2022-04-25T15:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167785#M548</link>
      <description>&lt;P&gt;Yeah absolutely - thanks for the advice. I'll flag that as a limitation of my analysis for now, and re-run the models sometime down the track.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 01:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1167785#M548</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-04-26T01:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168092#M554</link>
      <description>&lt;P&gt;Just to add to the conversation, in a study I did recently I also had to deal with this same problem of balancing processing time with temporal coverage. I chose a time interval offset of 23 minutes. That way each iteration would start at a different minute of the hour over the course of the service day. I was trying to avoid that situation where the iteration start times and the transit trip times would sync up due to regular frequencies. If I remember correctly, I did 4 separate batches each with about 1,000 origins and between 30 - 80 destinations (they were different facility types, e.g., healthcare, education, etc.) and each run on my machine took between 4 and 10 hours and processed overnight. Also, on each run, the start times were offset by one minute (.e.g, 5:00 am, 5:01 am) so that over all the runs I would have even more diversity of trip start times. That may have been unsolicited information, but I thought it may help a little.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 20:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168092#M554</guid>
      <dc:creator>PhillipCarleton</dc:creator>
      <dc:date>2022-04-26T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168137#M556</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/556475"&gt;@MichaelVernon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of follow-up questions for when I parallelize and update the Calculate Travel Time Statistics tool.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you using an OD Cost Matrix or a Route as input?&amp;nbsp; Do you have known OD pairs you want to solve for, or do you just need all origins to all destinations?&lt;/LI&gt;&lt;LI&gt;For the per-time-slice outputs from Calculate Travel Time Statistics, what format would be most useful for you?&amp;nbsp; A file gdb feature class or table? A CSV file? Something else?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 26 Apr 2022 21:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168137#M556</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2022-04-26T21:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168609#M557</link>
      <description>&lt;P&gt;Not at all, thanks Philip.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 00:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168609#M557</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-04-28T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168612#M558</link>
      <description>&lt;P&gt;Hi Melinda,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I'm using an OD Cost Matrix as the input, and going all origins to all destinations.&lt;/LI&gt;&lt;LI&gt;I'm very happy with a file gdb table. I currently do a pivot operation immediately after getting the values back from travel time stats tool, then join those results back onto a feature class.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks! Michael&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 00:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1168612#M558</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-04-28T00:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1170394#M562</link>
      <description>&lt;P&gt;Hello Michael.&amp;nbsp; It might be too late for you now, but I have implemented a parallelized version of Calculate Travel Time Statistics for OD Cost Matrix.&amp;nbsp; You can get it on &lt;A href="https://github.com/Esri/public-transit-tools" target="_self"&gt;GitHub&lt;/A&gt; or download it &lt;A href="https://www.arcgis.com/home/item.html?id=23cc1b720eb0418db4d0e61955b8fe43" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; The new version outputs the results to a CSV file, which is generally more efficient to write out to than the a file gdb table.&amp;nbsp; However, I could add more output types if necessary.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 21:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1170394#M562</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2022-05-03T21:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Travel Time Statistics - run in parallel</title>
      <link>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1170492#M563</link>
      <description>&lt;P&gt;Hi Melinda,&lt;/P&gt;&lt;P&gt;You are a wizard! It is too late for my thesis, but I'm sure I'll be coming back to this work and doing more analysis. I really appreciate you following through.&lt;/P&gt;&lt;P&gt;CSV doesn't bother me, its straight forward enough to just load that back to a file gdb table after the tool runs.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 03:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/calculate-travel-time-statistics-run-in-parallel/m-p/1170492#M563</guid>
      <dc:creator>MichaelVernon</dc:creator>
      <dc:date>2022-05-04T03:05:38Z</dc:date>
    </item>
  </channel>
</rss>

