<?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: How to make AStar cache paths? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532472#M41079</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Are you using dynamic barriers? A* cannot cache paths if you have any code that &lt;A href="https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/FlexScriptAPIReference/AStar/AStar.Navigator.html#Method-addDynamicBarrier"&gt;adds dynamic barriers&lt;/A&gt;. The path caching mechanism must be able to create a tuple key that is based on the set of active &lt;A href="https://docs.flexsim.com/en/22.2/Reference/Tools/AStar/AStar.html#conditionalRules"&gt;conditional rules&lt;/A&gt;. It cannot create such a key if there are dynamic barriers, so it must recalculate every single time. If the set of possible dynamic barriers is sufficiently small, you should use conditional rules instead of dynamic barriers. If the number of possible dynamic barriers is too large to use conditional rules, then path caching would be useless anyway because it would almost never be able to reuse the same cached path because every possible configuration of dynamic barriers would require its own key, and that could overload your memory.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 07 Jul 2022 20:47:13 GMT</pubDate>
    <dc:creator>anthony_johnsonT83CM</dc:creator>
    <dc:date>2022-07-07T20:47:13Z</dc:date>
    <item>
      <title>How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532467#M41074</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When I run a model using Astar, the Paths Cached are zero. Are there any particular requirements to make AStar cache paths?&lt;/P&gt;&lt;P&gt;The issue is that according to the performance profiler AStar search new paths uses approx. 99.99% of the model computing time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1657180464785.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511331i4D483F50E6138EEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1657180464785.png" alt="1657180464785.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 07:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532467#M41074</guid>
      <dc:creator>lars_jacobsen_ScandiSim</dc:creator>
      <dc:date>2022-07-07T07:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532468#M41075</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Just in case: Have you clicked on Apply and/or OK after checking that option?&lt;/P&gt;&lt;P&gt;Does it work in other models (such as the one below)?&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/54678-pathcachingtest.fsm" target="_blank"&gt;PathCachingTest.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532468#M41075</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-07-07T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532469#M41076</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I have clicked Apply after checking the option. Caching works fine in your model, but not in my model. Unfortunately I cannot share my model as it is confidential. Thus I was hoping that someone knows if there is any special requirements which needs to be meet for the caching to work.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532469#M41076</guid>
      <dc:creator>lars_jacobsen_ScandiSim</dc:creator>
      <dc:date>2022-07-07T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532470#M41077</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Not that I know.&lt;P&gt;Any idea what might be the issue here &lt;A rel="user" href="https://answers.flexsim.com/users/207/anthony.j.html" nodeid="207"&gt;@anthony.johnson&lt;/A&gt;?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 09:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532470#M41077</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-07-07T09:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532471#M41078</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Lars,&lt;P&gt;The GUI shows zero Paths Cashed, but also zero Paths Requests...are you sure the TEs using A-Star have done any transports? Or was the screenshot taken after reset?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 11:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532471#M41078</guid>
      <dc:creator>ralf_gruber</dc:creator>
      <dc:date>2022-07-07T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532472#M41079</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Are you using dynamic barriers? A* cannot cache paths if you have any code that &lt;A href="https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/FlexScriptAPIReference/AStar/AStar.Navigator.html#Method-addDynamicBarrier"&gt;adds dynamic barriers&lt;/A&gt;. The path caching mechanism must be able to create a tuple key that is based on the set of active &lt;A href="https://docs.flexsim.com/en/22.2/Reference/Tools/AStar/AStar.html#conditionalRules"&gt;conditional rules&lt;/A&gt;. It cannot create such a key if there are dynamic barriers, so it must recalculate every single time. If the set of possible dynamic barriers is sufficiently small, you should use conditional rules instead of dynamic barriers. If the number of possible dynamic barriers is too large to use conditional rules, then path caching would be useless anyway because it would almost never be able to reuse the same cached path because every possible configuration of dynamic barriers would require its own key, and that could overload your memory.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Jul 2022 20:47:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532472#M41079</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2022-07-07T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make AStar cache paths?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532473#M41080</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/13418/lars-christianj2.html" nodeid="13418"&gt;@Lars Christian J2&lt;/A&gt;, was one of anthony.johnson's or Lars Christian J2's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Jul 2022 19:44:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-make-astar-cache-paths/m-p/13532473#M41080</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2022-07-12T19:44:48Z</dc:date>
    </item>
  </channel>
</rss>

