<?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 Clean flush of all items on production lines in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556415#M59904</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;I'm modeling 3 production lines with the current goal of validating throughput results. There are currently two situations that can occur - either all of the lines finish their production for the day before the shift ends, or one (or more) lines do not finish in time.&lt;/P&gt;
  &lt;P&gt;I need all operations to go down at 5pm (handling this with a time table). If there is a line still processing, I need all flow items within that line to immediately leave with 0 time delay. &lt;/P&gt;
  &lt;P&gt;The way I am currently handling it is by looping through all objects on that line. If there are flowitems within that object, then I will destroyeventsofobject(&lt;EM&gt;processor/queue/combiner/etc&lt;/EM&gt;). Then, I move those flow items to a designated area where they can be cleaned up with no delay. Once that all happens, I can re-set their states to idle/empty/collecting/etc, and finally let the time table set them down.&lt;/P&gt;
  &lt;P&gt;When I introduced operators at a later date, I had to start preempting/aborting their activities because they had been stuck working with a nonexistent flowitem. And now, I've worked myself into a situation where only &lt;EM&gt;some&lt;/EM&gt; operators have to abort their activities. This has gotten messy.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;My question is - is there a &lt;STRONG&gt;clean&lt;/STRONG&gt; way to move objects through to the end with 0 time delay? This would include&lt;/P&gt;
  &lt;UL&gt;&lt;LI&gt;Forcing processors in the middle of processing to release their items with no further delay&lt;/LI&gt;&lt;LI&gt;Forcing combiners to forget their target quantities and instead just release their partial batch&lt;/LI&gt;&lt;LI&gt;No negative effects on operators currently working a task involving a flowitem that will no longer exist&lt;/LI&gt;&lt;/UL&gt;
  &lt;P&gt;I am open to alternative solutions, as long as I am able to set all objects down when the shift ends, and not have any leftover items.&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 20 Aug 2021 13:10:55 GMT</pubDate>
    <dc:creator>thomas_smithWKC4J</dc:creator>
    <dc:date>2021-08-20T13:10:55Z</dc:date>
    <item>
      <title>Clean flush of all items on production lines</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556415#M59904</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV class="fr-view clearfix"&gt;
  &lt;P&gt;I'm modeling 3 production lines with the current goal of validating throughput results. There are currently two situations that can occur - either all of the lines finish their production for the day before the shift ends, or one (or more) lines do not finish in time.&lt;/P&gt;
  &lt;P&gt;I need all operations to go down at 5pm (handling this with a time table). If there is a line still processing, I need all flow items within that line to immediately leave with 0 time delay. &lt;/P&gt;
  &lt;P&gt;The way I am currently handling it is by looping through all objects on that line. If there are flowitems within that object, then I will destroyeventsofobject(&lt;EM&gt;processor/queue/combiner/etc&lt;/EM&gt;). Then, I move those flow items to a designated area where they can be cleaned up with no delay. Once that all happens, I can re-set their states to idle/empty/collecting/etc, and finally let the time table set them down.&lt;/P&gt;
  &lt;P&gt;When I introduced operators at a later date, I had to start preempting/aborting their activities because they had been stuck working with a nonexistent flowitem. And now, I've worked myself into a situation where only &lt;EM&gt;some&lt;/EM&gt; operators have to abort their activities. This has gotten messy.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;My question is - is there a &lt;STRONG&gt;clean&lt;/STRONG&gt; way to move objects through to the end with 0 time delay? This would include&lt;/P&gt;
  &lt;UL&gt;&lt;LI&gt;Forcing processors in the middle of processing to release their items with no further delay&lt;/LI&gt;&lt;LI&gt;Forcing combiners to forget their target quantities and instead just release their partial batch&lt;/LI&gt;&lt;LI&gt;No negative effects on operators currently working a task involving a flowitem that will no longer exist&lt;/LI&gt;&lt;/UL&gt;
  &lt;P&gt;I am open to alternative solutions, as long as I am able to set all objects down when the shift ends, and not have any leftover items.&lt;/P&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556415#M59904</guid>
      <dc:creator>thomas_smithWKC4J</dc:creator>
      <dc:date>2021-08-20T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clean flush of all items on production lines</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556416#M59905</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Following up on this, I figure that I can push a "cleanup" object through. Process times can be based on a label, so I can push through with 0 delay before stopping objects. This can be used to solve bullet #2. I can set the target component quantities to 1 for this object, which can clear out the combiners.&lt;/P&gt;
 &lt;P&gt;Still need to find a way to push out items that are in the middle of processing, while not causing an error with the operators. Is there a way to manually trigger process finish or finish that event early? Are there negative consequences associated with this?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Aug 2021 14:23:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556416#M59905</guid>
      <dc:creator>thomas_smithWKC4J</dc:creator>
      <dc:date>2021-08-20T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clean flush of all items on production lines</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556417#M59906</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/31982/toms4.html" nodeid="31982"&gt;@tom.s4&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We would be better able to help by looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.&lt;/P&gt;&lt;P&gt;Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also &lt;A href="https://flexs.im/contact"&gt;contact your local FlexSim distributor&lt;/A&gt; for phone or email help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Aug 2021 15:31:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556417#M59906</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2021-08-23T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clean flush of all items on production lines</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556418#M59907</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;For those wondering, here is how I solved this problem.&lt;/P&gt;
 &lt;P&gt;For each flow item that is created, I assign a "max finish time" label - this is essentially "today at 5pm" minus a miniscule number (i.e., 0.000001). All of my processors have dynamic processing times, so in each of them, I calculate what that time should be, then check if there is enough time between now and the max finish time to finish. If there isn't, I'll give it a time of 0 and set a label on that item that signifies all downstream processors should do the same.&lt;/P&gt;
 &lt;P&gt;This is leveraged for the combiners as well. I can change the target quantity to 1 when needed.&lt;/P&gt;
 &lt;P&gt;Operators are also not affected - I don't believe task sequences are created when the process times are zero.&lt;/P&gt;
 &lt;P&gt;All of my statistics collectors just had to be changes to only track based on the label (i.e., don't count items that are being flushed).&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2021 14:06:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556418#M59907</guid>
      <dc:creator>thomas_smithWKC4J</dc:creator>
      <dc:date>2021-08-24T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clean flush of all items on production lines</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556419#M59908</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/31982/toms4.html" nodeid="31982"&gt;@Tom S4&lt;/A&gt; sounds like you found a pretty nifty solution. For what it's worth, I've attached a small sample model that uses some extra code in the Time Table's down and resume functions. It moves all the objects on down and on resume 'resets' each object to normal states and tasks. Just thought I'd post this in case you or others find it useful.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/42999-move-all-flowitems-table-code.fsm" target="_blank"&gt;move all flowitems table code.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2021 21:11:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clean-flush-of-all-items-on-production-lines/m-p/13556419#M59908</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-08-24T21:11:30Z</dc:date>
    </item>
  </channel>
</rss>

