<?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: Can you set upper/lower limits within a distribution? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-set-upper-lower-limits-within-a-distribution/m-p/13497300#M13225</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the Math.min() and Math.max() methods to bound the value returned from your distribution.&lt;/P&gt;&lt;P&gt;Here is a small example script you could test and tweak within a script window, then apply the same logic to where you're using your distribution:&lt;/P&gt;&lt;PRE&gt;double minValue = 8.5;
double maxValue = 10.8;
double distValue = lognormal2(0, 10, 0.2);
return Math.max(minValue, Math.min(maxValue, distValue));&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 Oct 2022 16:36:16 GMT</pubDate>
    <dc:creator>Ben_WilsonADSK</dc:creator>
    <dc:date>2022-10-19T16:36:16Z</dc:date>
    <item>
      <title>Can you set upper/lower limits within a distribution?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-set-upper-lower-limits-within-a-distribution/m-p/13497299#M13224</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am running an assembly line simulation and have approximate times for operator work at each station. I am instructed to use Lognormal distribution to run throughput and station/operator utilization. Is it possible to set upper and or lower limits to the distribution selections within a delay command? I am getting results at up to 3x the time per station that it should take on average and that skews my data to be inaccurate. Kind Regards,&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Oct 2022 16:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-you-set-upper-lower-limits-within-a-distribution/m-p/13497299#M13224</guid>
      <dc:creator>cody_f</dc:creator>
      <dc:date>2022-10-19T16:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can you set upper/lower limits within a distribution?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/can-you-set-upper-lower-limits-within-a-distribution/m-p/13497300#M13225</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can use the Math.min() and Math.max() methods to bound the value returned from your distribution.&lt;/P&gt;&lt;P&gt;Here is a small example script you could test and tweak within a script window, then apply the same logic to where you're using your distribution:&lt;/P&gt;&lt;PRE&gt;double minValue = 8.5;
double maxValue = 10.8;
double distValue = lognormal2(0, 10, 0.2);
return Math.max(minValue, Math.min(maxValue, distValue));&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Oct 2022 16:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/can-you-set-upper-lower-limits-within-a-distribution/m-p/13497300#M13225</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-10-19T16:36:16Z</dc:date>
    </item>
  </channel>
</rss>

