<?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 Simulation Module in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/377494#M1920</link>
    <description>&lt;P&gt;A novice at SAS Simulation studio, I'm trying to learn what the difference is between a SWITCH BLOCK and a SELECTOR BLOCK.&amp;nbsp; They both seem to do similar things, but there may be reasons to use one over the other.&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 18:10:50 GMT</pubDate>
    <dc:creator>shhouston</dc:creator>
    <dc:date>2017-07-19T18:10:50Z</dc:date>
    <item>
      <title>Simulation Module</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/377494#M1920</link>
      <description>&lt;P&gt;A novice at SAS Simulation studio, I'm trying to learn what the difference is between a SWITCH BLOCK and a SELECTOR BLOCK.&amp;nbsp; They both seem to do similar things, but there may be reasons to use one over the other.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 18:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/377494#M1920</guid>
      <dc:creator>shhouston</dc:creator>
      <dc:date>2017-07-19T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simulation Module</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/378663#M1921</link>
      <description>&lt;P&gt;When an entity enters a Switch block, a switch value will be determined (either through the InSwitchValue port or by an attribute value on the entity). &amp;nbsp;Based on that switch value, an output port will be selected from the cases defined in the Switch block. &amp;nbsp;If the switch value does not match any of the case values, then the entity will flow out of the OutDefault port of the Switch block. &amp;nbsp;In summary, the Switch block is used to route entities down different paths, based on a switch value (where the switch value can be computed dynamically by using the InSwitchValue port on the Switch block or by using an entity attribute value). &amp;nbsp;For example, you can use a Switch block to route an entity to the shortest of a series of queues (see docQueueRouting in the projects\examples folder where Simulation Studio is installed). &amp;nbsp;The Switch block is widely used in Simulation Studio models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Selector block pulls entities from upstream from one of its defined input entity ports based on a case value that is pulled from the InCaseValue port. &amp;nbsp; When the Selector block receives a message from downstream to output an entity, it checks its InCaseValue port to determine which input entity port to pull an entity from. &amp;nbsp;Also, when an entity arriving to the Selector block attempts to enter the block, the current case value is checked to see if the incoming entity's input port matches the value. &amp;nbsp;If it doesn't, it will not flow through the Selector. &amp;nbsp;One example where the Selector block is useful is when you have multiple queues feeding into another queue with fixed capacity. &amp;nbsp;You can use the Selector block to determine which queue should have priority when a space opens up in the fixed capacity queue. &amp;nbsp;See the attached figure. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14132iFF6B39C3AB8958C8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SelectorExample.PNG" title="SelectorExample.PNG" /&gt;</description>
      <pubDate>Mon, 24 Jul 2017 12:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/378663#M1921</guid>
      <dc:creator>EmilyLada</dc:creator>
      <dc:date>2017-07-24T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Simulation Module</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/378981#M1922</link>
      <description>&lt;P&gt;Thanks to Emily for the response on the SAS Simulation Module.&amp;nbsp; Unfortunately, I felt that the answer was a mere copying of the SAS manual on the subject and not a comparison of the Switch and Selector blocks.&amp;nbsp; It was difficult to ascertain that the Switch block can do these things whereas the Selector cannot, or vice versa.&amp;nbsp; That is what I was searching for.&amp;nbsp; This may be due to my lack of understanding of the explanation; I'll study the matter further.&amp;nbsp; Again, please do not think I'm ungrateful for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 13:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/378981#M1922</guid>
      <dc:creator>shhouston</dc:creator>
      <dc:date>2017-07-25T13:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simulation Module</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/379072#M1923</link>
      <description>&lt;P&gt;Entities enter&amp;nbsp;a Switch block from a single input port, but may flow out from different output ports, and the&amp;nbsp;output path will be determined using the switch cases. &amp;nbsp;If no switch case matches, the entity flows out the OutDefault port. &amp;nbsp;The Switch block is used to route entities to different paths in the model.&lt;/P&gt;
&lt;P&gt;On the otherhand, the Selector block chooses which entites may pass through it based on a condition (it chooses which entity input port to pull the next entity from). &amp;nbsp;But all entities entering a Selector block leave from the same output port.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Said a different way, the cases in the Selector block define entity input ports, while the cases in a Switch block define entity output ports.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully this helps a bit more!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 15:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulation-Module/m-p/379072#M1923</guid>
      <dc:creator>EmilyLada</dc:creator>
      <dc:date>2017-07-25T15:09:31Z</dc:date>
    </item>
  </channel>
</rss>

