<?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: Error training with flexsim_training.py in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495554#M11959</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Can you post your model? It looks like you may have tried to but there is not an attachment.&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Oct 2022 22:39:53 GMT</pubDate>
    <dc:creator>Jeanette_Fullmer</dc:creator>
    <dc:date>2022-10-25T22:39:53Z</dc:date>
    <item>
      <title>Error training with flexsim_training.py</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495551#M11956</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1665770307006.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513473i0239D59F081D20EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1665770307006.png" alt="1665770307006.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;Hi. I have developed a model in flexsim in which I need to optimize the idle rate of a processor by applying RL to a robot. It has to pick up the boxes from the right queue and decide on which combiner to leave it, based on the number of boxes present on the pallet placed on the top combiner (Combiner1). However, the moment I go to train the agent through the code in flexsim_training.py, this writing remains perpetually and the agent is not trained.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;progettoTesi.fsm&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Oct 2022 18:01:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495551#M11956</guid>
      <dc:creator>lorenzo_pio_g</dc:creator>
      <dc:date>2022-10-14T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error training with flexsim_training.py</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495552#M11957</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/40814/lorenzo-piog.html" nodeid="40814"&gt;@Lorenzo_pio G&lt;/A&gt;, &lt;P&gt;Are you able to run the flexsim_env.py code? It seems like visual studio is unable to connect to FlexSim.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Oct 2022 18:57:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495552#M11957</guid>
      <dc:creator>Jacob_White</dc:creator>
      <dc:date>2022-10-20T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error training with flexsim_training.py</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495553#M11958</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;The connection to FlexSim is made correctly. In fact, FlexSim opens the moment I run the code. I also tested the flexsim_env.py file on the fsm ChangeoverTime file, which I implemented to follow the RL tutorial, and everything works correctly. There must be an error in initializing the RL parameters in my project, but I can't figure out what it is.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Oct 2022 09:03:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495553#M11958</guid>
      <dc:creator>lorenzo_pio_g</dc:creator>
      <dc:date>2022-10-21T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error training with flexsim_training.py</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495554#M11959</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Can you post your model? It looks like you may have tried to but there is not an attachment.&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Oct 2022 22:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495554#M11959</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2022-10-25T22:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error training with flexsim_training.py</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495555#M11960</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/40814/lorenzo-piog.html" nodeid="40814"&gt;@Lorenzo_pio G&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It looks like the reason your model wasn't able to train is because the reinforcement learning was never able to make a decision with the "On request action" activity. If you run your model you will see that the value in your Action parameter table will never change. &lt;/P&gt;&lt;P&gt;The reason behind this is that reinforcement learning decision events cannot be linked to object flows. You can however use the custom code activity to act as request decision itself. This option can be found by selecting "Control," Reinforcement learning," and then request decision. Select the reinforcement learning tool that you will be using, and then whenever a token enters that activity it will drive the decision making process in the reinforcement learning. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="reinforcement-learning.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513472i2CEDB25F3ECFDAD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="reinforcement-learning.jpg" alt="reinforcement-learning.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once that is fixed, your model should be ready to start training. &lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/60154-rl-jw.fsm" target="_blank"&gt;RL_JW.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Oct 2022 18:53:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/error-training-with-flexsim-training-py/m-p/13495555#M11960</guid>
      <dc:creator>Jacob_White</dc:creator>
      <dc:date>2022-10-26T18:53:16Z</dc:date>
    </item>
  </channel>
</rss>

