<?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 create items from source by percentage? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527388#M36923</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/215/regan.b.html" nodeid="215"&gt;@regan.blackett&lt;/A&gt; This is exactly what I was looking for. Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 19:02:11 GMT</pubDate>
    <dc:creator>adity_kamath</dc:creator>
    <dc:date>2016-09-29T19:02:11Z</dc:date>
    <item>
      <title>How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527385#M36920</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create 3 different item types from a source such that each item type has a fixed percentage of being created (All percentages add to 100%). How can I do this in the source object? &lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:27:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527385#M36920</guid>
      <dc:creator>adity_kamath</dc:creator>
      <dc:date>2016-09-29T13:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527386#M36921</link>
      <description>&lt;P&gt;The easiest way to do this would probably be the use of a dempirical() distribution in the "Set ItemType and Color" option under the OnCreation Trigger of the Source.  demprical takes the name of a Global Table as it's parameter that is formatted such that you have a row for each value you want returned by the distribution and two columns.  Column one should have the percentages and column two should have the associated values as show below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2730-demprical-table.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494219iBAB32F6074F88BEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2730-demprical-table.png" alt="2730-demprical-table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the value in column 2, row 3 will occur 50% of the time.&lt;/P&gt;&lt;P&gt;In your Source triggers, you could have something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2731-oncreation.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494220iDB279507E74EC265/image-size/large?v=v2&amp;amp;px=999" role="button" title="2731-oncreation.png" alt="2731-oncreation.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Item Type field would then use the values and percentages defined in the table.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 15:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527386#M36921</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2016-09-29T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527387#M36922</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1224/adity.k.html" nodeid="1224"&gt;@Aditya Kamath&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Aditya,&lt;/P&gt;&lt;P&gt;An alternative to the global table method referenced by Regan, you can just select the "By Percentage" dropdown option from the Inter-Arrivaltime field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2732-percent1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494221iECFAB26FD1EB9503/image-size/large?v=v2&amp;amp;px=999" role="button" title="2732-percent1.png" alt="2732-percent1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can just add the number of percentage breakdowns that you want, totaling 100%.  In the dropdown option where you specify the percentages, the second field title is "Time".  Ignore that, that should be changed.  It should read something like the popup that says "Enter value or expression" (right arrow).  Other than that, just make sure that the percentages add up to 100.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2733-percent2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494222i4C47C3068E130602/image-size/large?v=v2&amp;amp;px=999" role="button" title="2733-percent2.png" alt="2733-percent2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527387#M36922</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2016-09-29T16:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527388#M36923</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/215/regan.b.html" nodeid="215"&gt;@regan.blackett&lt;/A&gt; This is exactly what I was looking for. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527388#M36923</guid>
      <dc:creator>adity_kamath</dc:creator>
      <dc:date>2016-09-29T19:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527389#M36924</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/187/jeff.n.html" nodeid="187"&gt;@Jeff Nordgren&lt;/A&gt; Thanks for sharing this! I did explore this option, however it looks like I am assigning percentages to the inter-arrival time and not the itemType or numbers of each item type. Is that right?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527389#M36924</guid>
      <dc:creator>adity_kamath</dc:creator>
      <dc:date>2016-09-29T19:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527390#M36925</link>
      <description>&lt;P&gt;When I need to use percentages I usually use an "Assign Labels" right below the "Source," then use the "Assign Labels" to create the percentages.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2746-percentage3.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494223i0380902806CF93BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2746-percentage3.png" alt="2746-percentage3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:45:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527390#M36925</guid>
      <dc:creator>michael_kramer1</dc:creator>
      <dc:date>2016-09-29T19:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527391#M36926</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/1224/adity.k.html" nodeid="1224"&gt;@Aditya Kamath&lt;/A&gt;&lt;P&gt;Aditya,&lt;/P&gt;&lt;P&gt;As you have discovered, the answer given by Regan is the best answer for your situation.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 21:30:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527391#M36926</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2016-09-29T21:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527392#M36927</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/615/michael.k.html" nodeid="615"&gt;@Michael Kramer&lt;/A&gt; THanks for youe help!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 12:29:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527392#M36927</guid>
      <dc:creator>adity_kamath</dc:creator>
      <dc:date>2016-09-30T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527393#M36928</link>
      <description>&lt;P&gt;I am trying to use the function of Item type by percentage, but I do not have the proper output.&lt;/P&gt;
&lt;P&gt;I have a source that delivers 4 items (Arrival schedule at time 0, and the items are pallets). I need that each item has 25% (one item of each time and if I increase from 4 to 8 items, then 2 items of each).&lt;/P&gt;
&lt;P&gt;I've added a trigger on creation, Set Item Type by Percentage, and create four positions, with a percentage of 25% for each item type&lt;BR /&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16204-trigger-on-creation.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494224i634F1381D2FFD5E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="16204-trigger-on-creation.jpg" alt="16204-trigger-on-creation.jpg" /&gt;&lt;/span&gt;&lt;A id="16205" href="https://answers.flexsim.com/storage/temp/16205-item-type-by-percentage-task.fsm"&gt;item-type-by-percentage-task.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;My problem is at the end, I have 4 items, two for type 1, and one for type 2 and 3, but i don't have any item 4. (also if I increase the delivery to 8 items, I obtain 4 type 1, 2 type 2 and 2 type 3, but none item 4&lt;/P&gt;
&lt;P&gt;Which is my error?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 10:02:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527393#M36928</guid>
      <dc:creator>victor_rv</dc:creator>
      <dc:date>2018-12-05T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527394#M36929</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;If you cannot find the answer to your question on the site, please create a new question.&lt;/P&gt;&lt;P&gt;There is no error. When you choose that option, what you are stating is,  that you want a distribution of items in those percentages. The larger the sample, the closer those values will fit. &lt;BR /&gt;Take a coin flip as an example: There is a 50% chance that you will get a head and a 50% chance you will get a tail.&lt;/P&gt;&lt;P&gt;That doesn't mean that if you toss the coin 2 times you will get 1 head and 1 tail. You could get also 2 tails or 2 heads.&lt;/P&gt;&lt;P&gt;If you flip it 1 million times it is very likely that you will have approximately 50-50&lt;/P&gt;&lt;P&gt;In your example in such a small sample it could be possible that you get all 4 items of just 1 item type.&lt;/P&gt;&lt;P&gt;Depending on what you need, probably assigning the item type by percentage is not the best option and you should set a fixed value from the beginning,&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 10:21:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527394#M36929</guid>
      <dc:creator>m_rosadini</dc:creator>
      <dc:date>2018-12-05T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527395#M36930</link>
      <description>&lt;P&gt;How do you create or edit the table?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 00:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527395#M36930</guid>
      <dc:creator>stephanie_y</dc:creator>
      <dc:date>2020-01-16T00:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create items from source by percentage?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527396#M36931</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/19663/stephaniey.html" nodeid="19663"&gt;@Stephanie Y&lt;/A&gt;&lt;P&gt; Create the table by opening the tool box, clicking the + button and selecting Global Table.&lt;/P&gt;&lt;P&gt;If you have any more questions then please create a new question instead of a comment on an old question.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 00:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-items-from-source-by-percentage/m-p/13527396#M36931</guid>
      <dc:creator>Jacob_Gillespie</dc:creator>
      <dc:date>2020-01-16T00:38:55Z</dc:date>
    </item>
  </channel>
</rss>

