<?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 how to release a queue by inventory level in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529273#M38388</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, I want to release the queue Buffer randomly when it has between 40-60 items (max capacity=80). I have tried with perform batches (target batch size=40) and don't flush contents between batches.&lt;/P&gt;
 &lt;P&gt;The problem is that when there are 40 items in Buffer, transporter Gruero02 starts moving items to the raks, but transporter Gruero01, who fill the Buffer, suddenly stop working, and it generates a bottle neck in the source PT Fabrica.&lt;/P&gt;
 &lt;P&gt;Please, can someone help me creating a random release of Buffer when it is between 40-60 items, but allowing Gruero01 moving items to Buffer anyway, in order to eliminate or decrease the botle neck.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40180-recepcion-fabrica-sinpch3.fsm" target="_blank"&gt;Recepción Fábrica sinPCh3.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sun, 06 Jun 2021 17:15:44 GMT</pubDate>
    <dc:creator>claudia_s6</dc:creator>
    <dc:date>2021-06-06T17:15:44Z</dc:date>
    <item>
      <title>how to release a queue by inventory level</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529273#M38388</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, I want to release the queue Buffer randomly when it has between 40-60 items (max capacity=80). I have tried with perform batches (target batch size=40) and don't flush contents between batches.&lt;/P&gt;
 &lt;P&gt;The problem is that when there are 40 items in Buffer, transporter Gruero02 starts moving items to the raks, but transporter Gruero01, who fill the Buffer, suddenly stop working, and it generates a bottle neck in the source PT Fabrica.&lt;/P&gt;
 &lt;P&gt;Please, can someone help me creating a random release of Buffer when it is between 40-60 items, but allowing Gruero01 moving items to Buffer anyway, in order to eliminate or decrease the botle neck.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40180-recepcion-fabrica-sinpch3.fsm" target="_blank"&gt;Recepción Fábrica sinPCh3.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Jun 2021 17:15:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529273#M38388</guid>
      <dc:creator>claudia_s6</dc:creator>
      <dc:date>2021-06-06T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to release a queue by inventory level</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529274#M38389</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;As far as I know (and of I unterstood your question correctly) there is no predefined function for this behaviour. I build a sample model to demonstrate how something like this could be done.&lt;/P&gt;&lt;P&gt;Queue2 is set to not release items by itself. Instead, the release is handled by a process flow. Every time an item enters Queue2 (and in a semi-random interval) a token is created. This token then is assigned a chance (between 0 - 1) that an item should be released based on the number of items in Queue2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="40202-randomreleasepf.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506288i6BD742F28019D06D/image-size/large?v=v2&amp;amp;px=999" role="button" title="40202-randomreleasepf.png" alt="40202-randomreleasepf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the example I use the following formula which scales exponentially from 0 to 1 for contents from 40 to 60.&lt;/P&gt;&lt;PRE&gt;0.15652*(Math.exp(0.1*(token.Queue_Content-40))-1)&lt;/PRE&gt;&lt;P&gt;This number is then compared to a random number (uniform(0,1,0)). If it is larger, an item is released from the queue via the "releaseitem()" command. You can of course play around with different functions to determine the probability until it fits your model.&lt;/P&gt;&lt;P&gt;Instead of only releasing a single item, you could also release every item that is in the queue at that time. A process flow block to do this is also part of the model (reroute the connection going into the "Release One" block to that one if you want to test it).&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40203-releaserandomly.fsm" target="_blank"&gt;ReleaseRandomly.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Jun 2021 08:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529274#M38389</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2021-06-07T08:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to release a queue by inventory level</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529275#M38390</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/30540/claudias6.html" nodeid="30540"&gt;@Claudia S6&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. 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;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Jun 2021 22:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-release-a-queue-by-inventory-level/m-p/13529275#M38390</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2021-06-11T22:24:23Z</dc:date>
    </item>
  </channel>
</rss>

