<?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 use decision point to split 3:2 between 2 conveyors in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543856#M50015</link>
    <description>&lt;P&gt;The modulus seems to do it in conjunction with "send item by case".&lt;/P&gt;&lt;P&gt;The division is by 5 and you can choose two cases of from  {0,1,2,3,4} to go one send to connection and by default to go to the other connection.&lt;/P&gt;&lt;P&gt;If you rather need a more randomly approach, you replace the modulus division by a discrete uniform distribution in “send item by case” function for example&lt;/P&gt;&lt;PRE&gt;duniform(1,5)&lt;/PRE&gt;&lt;P&gt;where cases of 1 and 2 go to one decision point and by default to the other decision point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26346-conveyor-distribute-3-to-2.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501512i3D4078E8CCFE5D82/image-size/large?v=v2&amp;amp;px=999" role="button" title="26346-conveyor-distribute-3-to-2.jpg" alt="26346-conveyor-distribute-3-to-2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="26347" href="https://answers.flexsim.com/storage/attachments/26347-conveyor-distribute-3-to-2.fsm"&gt;conveyor-distribute-3-to-2.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 08:38:17 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2020-03-12T08:38:17Z</dc:date>
    <item>
      <title>How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543854#M50013</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Is there a way to simply have a 3:2 ratio of flow items at the conveyor split (3 top, 2 bottom) using a decision point?&lt;/P&gt;
&lt;P&gt;I have tried to make use of the modulus condition but I'm not too sure how it works, and only managed to achieve a 3:1 with: &lt;/P&gt;
&lt;PRE&gt;current.stats.input.value%4&lt;/PRE&gt;
&lt;P&gt;&lt;A id="26344" href="https://answers.flexsim.com/storage/attachments/26344-conveyordecision-autosave.fsm"&gt;conveyordecision-autosave.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 07:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543854#M50013</guid>
      <dc:creator>brandon_i</dc:creator>
      <dc:date>2020-03-12T07:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543855#M50014</link>
      <description>&lt;P&gt;Hi, I think "bernoulli();" is what you are looking for. It gives you the option to set percentages &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 07:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543855#M50014</guid>
      <dc:creator>sebastian_hemmannE3JAU</dc:creator>
      <dc:date>2020-03-12T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543856#M50015</link>
      <description>&lt;P&gt;The modulus seems to do it in conjunction with "send item by case".&lt;/P&gt;&lt;P&gt;The division is by 5 and you can choose two cases of from  {0,1,2,3,4} to go one send to connection and by default to go to the other connection.&lt;/P&gt;&lt;P&gt;If you rather need a more randomly approach, you replace the modulus division by a discrete uniform distribution in “send item by case” function for example&lt;/P&gt;&lt;PRE&gt;duniform(1,5)&lt;/PRE&gt;&lt;P&gt;where cases of 1 and 2 go to one decision point and by default to the other decision point.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26346-conveyor-distribute-3-to-2.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501512i3D4078E8CCFE5D82/image-size/large?v=v2&amp;amp;px=999" role="button" title="26346-conveyor-distribute-3-to-2.jpg" alt="26346-conveyor-distribute-3-to-2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A id="26347" href="https://answers.flexsim.com/storage/attachments/26347-conveyor-distribute-3-to-2.fsm"&gt;conveyor-distribute-3-to-2.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 08:38:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543856#M50015</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-03-12T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543857#M50016</link>
      <description>&lt;P&gt;Heya, sorry, I failed to mention that I did try bernoulli before, but I'm looking for a fixed amount. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:09:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543857#M50016</guid>
      <dc:creator>brandon_i</dc:creator>
      <dc:date>2020-03-12T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543858#M50017</link>
      <description>&lt;P&gt;Hey, thank you for the reply. I'm not really clued up with what you mean by cases and ports, do you maybe have an example program I can understand from?&lt;/P&gt;
&lt;P&gt;I don't think the random approach will work either, as I need a fixed amount of 3 boxes going up, then 2 pass repeatedly.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543858#M50017</guid>
      <dc:creator>brandon_i</dc:creator>
      <dc:date>2020-03-12T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543859#M50018</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/20654/brandoni.html" nodeid="20654"&gt;@Brandon I&lt;/A&gt;, I hvae updated the answer to attach a model.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 11:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543859#M50018</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-03-12T11:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543860#M50019</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Jörg Vogel&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is what I was looking for. While I still don't full grasp the concept, I'm going see what I can do.&lt;BR /&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:06:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543860#M50019</guid>
      <dc:creator>brandon_i</dc:creator>
      <dc:date>2020-03-12T12:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543861#M50020</link>
      <description>&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/80613/how-to-use-decision-point-to-split-32-between-2-co.html#"&gt;@Brandon I
&lt;/A&gt;, the send item by case is a logical switch structure of programming languages:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="26350-switch-structure.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501514i8349C417F96D011B/image-size/large?v=v2&amp;amp;px=999" role="button" title="26350-switch-structure.jpg" alt="26350-switch-structure.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The
 switch variable evaluates to different values at each arrival event in 
the decision point. The statistical input is divided by the modulus 
operator to return the rest of the division of 5. The values are of 0, 
1, 2, 3, 4.  Two of these values are responsible to divert the item to a
 Decision Point connected at the output of the current Decision Point. 
All other values are evaluated by default and the item goes to the other
 Decision Point connected at the output port. &lt;/P&gt;&lt;P&gt;You can find the Logical Switch Statement in the manual  in &lt;A href="https://docs.flexsim.com/en/19.0/Reference/CodingInFlexSim/WritingLogic/"&gt;writing logic in FlexSim.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543861#M50020</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-03-12T13:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use decision point to split 3:2 between 2 conveyors</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543862#M50021</link>
      <description>&lt;P&gt;
	 &lt;A rel="user" href="https://answers.flexsim.com/users/20654/brandoni.html" nodeid="20654"&gt;@Brandon I&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	You would use something like this:&lt;/P&gt;&lt;PRE&gt;int stream = getstream(current);
double randomnum = uniform(0.0, 100.0, stream);
double total = 0.0;


total += 66; 
if (randomnum &amp;lt;= total)
	return 1;
total += 33; 
if (randomnum &amp;lt;= total)
	return 2;
&lt;/PRE&gt;&lt;P&gt;1 and 2 being ports. 66 and 33 are percentages. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 14:05:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-use-decision-point-to-split-3-2-between-2-conveyors/m-p/13543862#M50021</guid>
      <dc:creator>braydn_t</dc:creator>
      <dc:date>2020-03-12T14:05:49Z</dc:date>
    </item>
  </channel>
</rss>

