<?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: Shift plannification in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552629#M2682</link>
    <description>&lt;P&gt;Hello Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The approach that you are using might not give you correct results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on your solution. It involves the use of Resource Schedule Entities. Also, it seems that you want to model 6 operators for shift 1, 6 for shift 2, and 5 for shift 3. So you have a total of 17 operators and each of them needs their own separate schedule (which for all operators in same shift is the same but still implemented separately for each operator).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I shall update you with the solution by Monday or Tuesday at the latest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stay tuned.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Apr 2019 14:05:53 GMT</pubDate>
    <dc:creator>nmok</dc:creator>
    <dc:date>2019-04-20T14:05:53Z</dc:date>
    <item>
      <title>Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/547855#M2631</link>
      <description>&lt;P&gt;Hi SAS Community !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my final year work in operations management, I work with SAS Simulation Studio 15.1&amp;nbsp;to model the flow of an assembly workshop. My problem concerns the management of the operators' work schedule. (Note : annotations and ressources types are in french).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The work consists in assembling a kit of parts (“PIECES” resource) on a shaft (“ARBRE” resource), passing through three assembly stations in this order:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Primary assembly (MP) – operating time 31.8min - capacity 3 operators.&lt;/LI&gt;&lt;LI&gt;Final assembly (MF) - operating time 46.8min - capacity 4 operators.&lt;/LI&gt;&lt;LI&gt;Crating (MC) - operating time 22.2min - capacity 2 operators.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sas help.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28388i28E64211BB48485F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sas help.png" alt="Sas help.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An operator (“OPS MONTAGE” resource) assembles these two resources. All these resources are supported by the entity named “OF”. At the end of the operations, the OPS MONTAGE resource returns to the beginning of the model to be used again. The rest is destroyed and counted in order to have the number of modules produced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The simulation time is 64,800min, which corresponds to 10 weeks of work. A workweek of 6,480min takes place according to this program:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Day&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;1st shift&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2nd shift&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Night&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Monday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;480&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;480&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;480&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Tuesday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Wednesday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;600&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Thursday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;480&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Friday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;420&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Saturday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sunday&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2160&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2160&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;2160&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;Ops scheduled&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;6&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;6&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;5&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;6 operators are required for the first and second shifts, but only 5 during the night.&lt;/P&gt;&lt;P&gt;So I programmed a schedule for the control of shifts :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shifts.png" style="width: 599px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28391i2FE0A0D98F81B37E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Shifts.png" alt="Shifts.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Agenda.png" style="width: 598px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28390iC7E01CEC159C7E52/image-size/large?v=v2&amp;amp;px=999" role="button" title="Agenda.png" alt="Agenda.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite many attempts to program the agenda, each time, my operators are still 6 when they must be 5. In the example below, I must have 5 operators between time 2280 and 2760. However, at time 2328 I still have 6 operators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Soucis.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28389i69B07294EB05F7D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Soucis.png" alt="Soucis.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is because the “operator resource” must return to the "resource pool block” before being impacted by the agenda. I have already tried to make several “exits” between the assembly stations but without success. To summarize, my question is as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can we get the right number of operators, exactly when we need them?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In practice, &lt;U&gt;if an operator does not have time to complete the next operation, he should not start it.&lt;/U&gt; Ideally, the model should anticipate the shift by preventing entities from going into the next blocks if there is not enough time to perform the next operation before the shift takes place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to receiving appropriate assistance and thank you for your consideration.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 11:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/547855#M2631</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-02T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/547971#M2633</link>
      <description>&lt;P&gt;Hello, thanks for your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that you wish to be able to adjust the capacity of a mobile resource (Operator) while the operator is in service in one of the 3 Server blocks (MP, MC or MF). In order to enable immediate schedule adjustment for a resource entity held in a holding block (i.e. a Queue, Delay, or Server),&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need to connect the &lt;STRONG&gt;"OutResource"&lt;/STRONG&gt; port of the Server to the InEntity port of the Resource Pool. This enables the seized Operator entity whose resource units are to be adjusted to flow back to the Resource Pool at the instant when the schedule change goes into effect.&lt;/LI&gt;&lt;LI&gt;You also need to connect the &lt;STRONG&gt;"OutPreempt"&lt;/STRONG&gt; port of the holding block to a block downstream to enable the entity which had seized the resource (also referred to as the controlling entity) to flow out of the holding block. What this port is connected to depends on what you wish to do with this controlling entity. If it still needs to finish service then it needs to be routed back to the service queue. If it needs to be destroyed, it needs to be sent to a Disposer block.&lt;/LI&gt;&lt;LI&gt;Connections described in steps 1 and 2 need to be carried out for each of the Server blocks in your model (MF, MP and MC).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Information about schedule based preemption can be found in the Overview for Queue, Delay or Server. For example, the information in the Server block Overview is present in the last paragraph of the section named &lt;STRONG&gt;"Holding Block Preemption"&lt;/STRONG&gt;. It can be found in the online simulation Studio documentation at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=simsug&amp;amp;docsetTarget=simsug_app1_sect029.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=simsug&amp;amp;docsetTarget=simsug_app1_sect029.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above approach will ensure that you have the correct number of Operators exactly when you need them. &lt;STRONG&gt;However&lt;/STRONG&gt;, it does not give you precise control over &lt;STRONG&gt;which&lt;/STRONG&gt; Operator's schedule is adjusted. If you want more precise control, you would need to use the Resource Schedule Entity. You can look at the example model &lt;STRONG&gt;docSchedEntity&lt;/STRONG&gt; to get a basic idea about how to use this feature. Description for the example model can be found at the following link in the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=simsug&amp;amp;docsetTarget=simsug_app7_sect020.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=simsug&amp;amp;docsetTarget=simsug_app7_sect020.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need additional assistance, we could organize a Webex session with you to understand your modeling needs in greater detail. Please feel free to reach out to SAS Tech Support in that regard so that they would be able to address your question (and any other concerns). Link to SAS Tech Support:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_blank"&gt;https://support.sas.com/en/technical-support/contact-sas.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/547971#M2633</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-02T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548152#M2638</link>
      <description>&lt;P&gt;Thank you very much !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your answers, I am unlocked and I can go further for other applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 10:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548152#M2638</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-03T10:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548211#M2639</link>
      <description>&lt;P&gt;Hi, it's me again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question concerning the same model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to save the "time progression" of my entity into a server ?&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;my entity stay 10min into MP instead of 31,8 when she's preempted. Is it possible to continue the assembly with another resource&amp;nbsp;during 21,8 min&amp;nbsp;insted of restart it for 31,8 min?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548211#M2639</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-03T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548222#M2640</link>
      <description>&lt;P&gt;Yes, it is certainly possible to keep track of how much time is left to complete service. Instead of reading the service time from a Number holder, you can assign the service time as an entity attribute and read it in at the time of service. That way, you can modify the value of the attribute if the entity is preempted to calculate the balance of the time left to complete service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this Helps.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 14:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548222#M2640</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-03T14:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548255#M2642</link>
      <description>&lt;P&gt;Nmok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see how I can do that... Is it possible to have a&amp;nbsp;little example with some&amp;nbsp;screenshoots&amp;nbsp;?&lt;/P&gt;&lt;P&gt;I don't know how to make a server reading an attribute, neither how to create the balance of time when the entity is preempted. Do I use the "Time now" block ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your&amp;nbsp;help is precious for me, I hope we'll find a solution to make this&amp;nbsp;final work a real sucess !&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 15:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548255#M2642</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-03T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548301#M2646</link>
      <description>Sure I will get back to you in a day or two.</description>
      <pubDate>Wed, 03 Apr 2019 18:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/548301#M2646</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-03T18:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549125#M2663</link>
      <description>&lt;P&gt;Hello Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is an example project created using Simulation Studio 15.1 which would address your issue. Just unzip the contents and run the project in Simulation Studio 15.1. I hope the comments in the model will help you understand the flow. Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Nmok&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2019 19:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549125#M2663</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-07T19:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549612#M2665</link>
      <description>&lt;P&gt;Hi nmok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again,&amp;nbsp;your&amp;nbsp;example&amp;nbsp;helped me a lot !&lt;/P&gt;&lt;P&gt;I just have a last (I hope so) problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to put a probability of non-attendance on my operator resources. I want to put it at each shift&amp;nbsp;between the time they are created and when they go into the model (to make an assembly). The goal is to have 5% chance&amp;nbsp;of absenteeism on each operator for each shift.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with and without&amp;nbsp;attributes but in vain. I have always the same problem : it works for the first shift, but for the second, there&amp;nbsp;is only one operator into the model to continue the previous assembly.&lt;/P&gt;&lt;P&gt;Do you have an idea or an easy way to create this probability of absenteeism on the ops ressource ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas Muraille&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549612#M2665</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-09T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549617#M2666</link>
      <description>&lt;P&gt;Hello Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be modeled independently of scheduling and I can create a simple model to demonstrate that as well. A few questions from my side before I do that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Shift change happens at specific times in the simulation, correct? (for example every 8 hours?)&lt;/LI&gt;
&lt;LI&gt;So you are trying to model a situation where the schedule requires an operator to come back to work but with 5% probability, he\ she will not show up? And also if an operator is working 2 shifts in a row, then he\ she might choose not to continue working the second shift with 5% probability?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549617#M2666</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-09T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549730#M2668</link>
      <description>&lt;P&gt;Sorry I wasn't very clear in the last message. Here my answers :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Yes it's exactly like that. Every 8 hours (480 min into my model). Practically, I use 479 min with 6 ops and then 1 min to 0, because it help me to&amp;nbsp;&lt;SPAN&gt;highlight the shift. But whatever...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) No, none operators have to make 2 shifts in a row. I will explain the situation :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, 6 operators take one drive shaft and spare parts to start assembly. Into the model it's 1 OPS MONTAGE + 1 ARBRE + 1 PIECES on 1 entity. They work during 480min on 3 differents servers with differents capacities. If an operator has finished his work during the shift of 480min, he starts another one (new one or ongoing one with no operator to make it, you'll see after)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At time 480, everybody have to stop the assembly and 6 others operators have to continue it during afternoon. For the night, we do the same thing but we have only 5 operators. So there is one "onging construction" with no one to work on it. The first operator who finished his work takes this ongoing one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this situation is done and work very well on my model, but I have to add one more situation on it : absenteeism.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, at time 480, I have to allocate the 6 new operators on the 6 "ongoing constructions". But sometimes, someone can't makes his shift. So before allocate the operator on the "ongoing construction", I want to put a 5% chance he won't do his job (so he just does nothing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Practically, I use 6 ressources and it's only the number of resources in uses that change. Because the goal is just to see how many constructions I can make during one week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you understand beter.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 17:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/549730#M2668</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-09T17:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551021#M2676</link>
      <description>&lt;P&gt;Hello Thomas, my apologies for the delay. I shall get back to you with a solution in a few days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nmok&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 12:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551021#M2676</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-15T12:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551064#M2677</link>
      <description>&lt;P&gt;Hello Thomas, Can you give me the information about the arrival rate for "OF" entity, and the starting inventory values for "Arbre" and "Pieces" entities in your model?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551064#M2677</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-15T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551231#M2678</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem for the delay, thank you for coming back !&lt;/P&gt;&lt;P&gt;It's a push flow, so there is always an "OF" entity ready. I can't tell you the real number of "Arbres" and "Pieces" but you can put 100 Arbres and 200 Pieces to start.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 19:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/551231#M2678</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-15T19:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552613#M2681</link>
      <description>&lt;P&gt;Hi nmok,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved my problem yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gestion présence.png" style="width: 315px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28834i616A493E5525ABC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Gestion présence.png" alt="Gestion présence.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here we have the OPS MONTAGE generator and assignation. When I start the simulation, 6 operators go into the resource pool without merging. With the "Présence" switch, I put 10% of probability to each operator to go into the delay for all the duration of his shift (which symbolizes an absence). The queue block is a storage before the assignation for the job. This is a non-blocking one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the shift is over, all operators are pushed by the OutPreempted or OutResource port and return into the resource pool. But if an operator has finised his job during his shift, he has to start another one without having a chance to be absent. So he goes directly into the queue block instead of the resource pool.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 09:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552613#M2681</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-20T09:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552629#M2682</link>
      <description>&lt;P&gt;Hello Thomas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The approach that you are using might not give you correct results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on your solution. It involves the use of Resource Schedule Entities. Also, it seems that you want to model 6 operators for shift 1, 6 for shift 2, and 5 for shift 3. So you have a total of 17 operators and each of them needs their own separate schedule (which for all operators in same shift is the same but still implemented separately for each operator).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I shall update you with the solution by Monday or Tuesday at the latest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stay tuned.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 14:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552629#M2682</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-20T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552892#M2683</link>
      <description>&lt;P&gt;Hello Thomas, I have attached the solution model for your reference. the zip file contains the Simulation Studio project as well as a word document containing detailed explanation. the same explanation is also given below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this is helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;nmok&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MODEL SNAPSHOT&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model Snapshot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28871i6A98BA48CB57472C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Model Snapshot.png" alt="Model Snapshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;MODEL EXPLANATION&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Modeling Creation of OF entity, Shaft entities and Piece entities (see Fig. 1 below):
&lt;OL&gt;
&lt;LI&gt;Creating OF Entities:
&lt;UL&gt;
&lt;LI&gt;OF entities are created at a constant rate with an interarrival time of 120 minutes between 2 entities.&lt;/LI&gt;
&lt;LI&gt;OF entities are assigned an MP_Time, MF_Time, and MC_Time attribute.&lt;/LI&gt;
&lt;LI&gt;After assigning attributes, the OF entities wait in a queue until they can seize 1 Shaft entity, 1 Piece entity and 1 Operator entity. This &lt;STRONG&gt;&lt;EM&gt;queue (and all other queues in the model are nonblocking queues. Please read the section on nonblocking queues in the Simulation Studio documentation for more details)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;OF entity will only go into Seize block if all 3 resources (Shaft, Piece, and Operator) are available.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Creating Shaft Entities and Piece Entities:
&lt;UL&gt;
&lt;LI&gt;A batch of 2000 entities of type Shaft and Piece respectively, is created at time 0. This is the initial inventory for Shafts and Pieces at the start of the simulation.&lt;/LI&gt;
&lt;LI&gt;Shaft and Piece entities are held in the respective resource pools until they are seized by the OF entity.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;*RankValues will be explained in a later section&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28874iDB5CEFBDC721D46F/image-size/large?v=v2&amp;amp;px=999" role="button" title="f1.png" alt="f1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Figure 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f2.png" style="width: 370px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28875i18EDDCC15D53B80B/image-size/large?v=v2&amp;amp;px=999" role="button" title="f2.png" alt="f2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Figure 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Modeling Creation of Operator Entities and Operator Schedule Entities (see Fig. 2. above):
&lt;OL&gt;
&lt;LI&gt;Creating Operator entities:
&lt;UL&gt;
&lt;LI&gt;Operator entities for different shifts are created in separate entity generators. Each Operator is assigned a “Shift” attribute in the entity generator during creation, as shown in the screenshot below&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28884i17631CAF7E68B066/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.png" alt="a1.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;The number of Operator entities to create for shift X is controlled using the NumShiftXOps Number Holders.&lt;/LI&gt;
&lt;LI&gt;Each Operator entity in the same shift is assigned a unique Operator number. Thus, across all shifts, each Operator entity has a unique combination for Shift+OperatorNo combination (Shift=2, Operator=1 or Shift=3, Operator=4, etc.).&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Creating Operator Schedule Entities:
&lt;UL&gt;
&lt;LI&gt;Operator Schedule entities for different shifts are created in separate entity generators. Each Operator is assigned a “Shift” attribute in the entity generator during creation, as shown in the screenshot below using the rectangle highlighted in &lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;orange&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;Some default attributes are also assigned specific values as shown in the screenshot using the rectangles highlighted in &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;blue&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;Lastly, some additional attributes are defined on the Operator Schedule entity which are highlighted in &lt;FONT color="#339966"&gt;&lt;STRONG&gt;green&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28883iCC551082F3BE3735/image-size/large?v=v2&amp;amp;px=999" role="button" title="a2.png" alt="a2.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;After creating the Operator Schedule entity, it is assigned an “Operator” attribute which corresponds to the OperatorNo attribute on the Operator entity.&lt;/LI&gt;
&lt;LI&gt;Each Operator Schedule Entity is also assigned a TargetSearchRule attribute from a String Holder as shown in the screenshot below. For example, the screenshot shows that one of the Operator Schedule entities was assigned an attribute value of&amp;nbsp; &amp;nbsp;“Entity Type == Operator; Attribute Rule == Shift == 1 &amp;amp;&amp;amp; OperatorNo == 6”. This means that this particular Operator Schedule Entity will be used to control the schedule of Operator No. 6 in Shift No. 1.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a3.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28882i3328484ADD2944A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="a3.png" alt="a3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Operator Entity Flow:
&lt;OL&gt;
&lt;LI&gt;All Operators from all shifts are held in a single resource pool (labeled Operator Pool) as shown in Fig. 3. Below. The Operators are seized from this resource pool by the OF entity and released when the assembly is complete. The operators are also released when there is a schedule change. In either case, Operator entities are always routed back to the Operator Pool.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f3.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28876iCC6938347DB1D951/image-size/large?v=v2&amp;amp;px=999" role="button" title="f3.png" alt="f3.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Figure 3&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Implementing Operator Schedules:
&lt;OL&gt;
&lt;LI&gt;The scheduling of Operators is managed by the logic implemented in the compound block labeled “Implement Schedule”. All Operator Schedule entities enter the Resource Scheduler block at time 0.&lt;/LI&gt;
&lt;LI&gt;Each Operator Schedule entity pulls its schedule from the correct ShiftXAgenda block depending on its “Agenda” attribute value.&lt;/LI&gt;
&lt;LI&gt;In each ShiftXAgenda block, the schedule has been defined for Shift X for 1 operator. The total duration adds up to the total no. of hours in a week. Let’s take a look at the screenshot below. It shows the schedule of a Shift 2 operator as defined in the Shift2Agenda block.
&lt;UL&gt;
&lt;LI&gt;The duration values add up to 10080 minutes, which is the total no. of minutes (working and nonworking) in a week.&lt;/LI&gt;
&lt;LI&gt;The Value column shows the quantity of each Operator during each duration. Since each Operator Schedule entity implements schedule for an individual Operator entity, (based on TargetSearchRule attribute), the Resource Units specified in the Shift2Agenda block can either be 1 (i.e. Operator is available) or 0 (i.e. Operator is unavailable).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a4.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28881i3786E57567ACA3C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="a4.png" alt="a4.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;The Start Time value for the Schedule as specified in the “StartTime” attribute for Operator Schedule entity is 0. We need to run the simulation for 10 weeks. Hence we need to repeat this schedule specified in the Resource Agenda every week. We have specified the “ToRepeat” attribute for all Operator Schedule Entities as “true”. So, after 10080 minutes of simulation time, the Operator Schedule entity exitas the Resource Scheduler block. We now need to specify the StartTime for the next schedule (which is the current time i.e. 10080) and send the Operator Schedule entity back to the Resource Scheduler block and implement the schedule for the next week of simulation. This process is repeated for 10 weeks of the simulation for every Operator Schedule entity.&lt;/LI&gt;
&lt;LI&gt;Operator Resource Utilization Statistics can be viewed using the Resource Stats Collector block, as shown in Fig. 3.&lt;/LI&gt;
&lt;LI&gt;The Primary Assembly, Final Assembly, and Crating operations are carried out as shown in Fig. 4.
&lt;UL&gt;
&lt;LI&gt;If there is a change in schedule while an OF entity is in Server, the associated Operator entity is preempted and sent back to Operator Pool. The OF entity then recalculates the remaining assembly\ crating time and waits in Pending_queue for the Operator from the next shift. It then seizes the Operator from the next shift and goes back into the Server.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f4.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28877i4470F23DCBFF764F/image-size/large?v=v2&amp;amp;px=999" role="button" title="f4.png" alt="f4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Figure 4&lt;/P&gt;
&lt;OL start="7"&gt;
&lt;LI&gt;Block Ranking:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The RankValue dialog is used to control the precedence of events in case there is a tieduring the simulation model run. For example, after a shift change, there could be an OF entity waiting to finish assembly in the Pending_queue and there could also be another OF entity waiting in the In_OF_Q. so which one gets the available Operator from the next shift? To manage such ties, Simulation Studio has a Block ranking dialog which can be used to give higher priority to certain blocks such as entity generators, Queues, Servers, etc.&lt;/P&gt;
&lt;P&gt;In this model, we have used the block ranking dialog to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Give higher priority to pending queues than the In_OF_Q (they have been assigned a higher RankValue =10 compared to RankValue=5 for In_OF_Q).&lt;/LI&gt;
&lt;LI&gt;Specify order in which entities are created at time 0:
&lt;OL&gt;
&lt;LI&gt;Operator entities are created first (RankValue=16).&lt;/LI&gt;
&lt;LI&gt;Operator Schedule entities are created second (RankValue=14).&lt;/LI&gt;
&lt;LI&gt;Resource Scheduler starts implementing schedule for all Operator entities at time 0 (RankValue=12).&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Blocks with higher RankValue get higher priority. In item ii. above, we need to create Operator entities before we can create their Operator Schedule Entities. And Operator Schedule entities need to be created, assigned attributes, and routed to the Resource Scheduler block BEFORE the Resource Scheduler can start implementing the schedules. Hence, this hierarchy is important.&lt;/P&gt;
&lt;P&gt;All other blocks in Simulation Studio have a default RankValue of 0 (except all Queue blocks which have a default RankValue of 1).&lt;/P&gt;
&lt;P&gt;The RankValue can be specified in the Block Ranking Dialog. The Block Rankin gDialog can be viewed by right clicking the model name and selecting “Block Ranking” option. The Block Ranking Dialog appears as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a5.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28880i42A51A366C20FC7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="a5.png" alt="a5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="8"&gt;
&lt;LI&gt;Using Factors to Control Inputs&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Factors have been defined in the experiment window to control various inputs to the simulation model, namely:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Initial Shaft Inventory&lt;/LI&gt;
&lt;LI&gt;Initial Piece Inventory&lt;/LI&gt;
&lt;LI&gt;MP_Time&lt;/LI&gt;
&lt;LI&gt;MF_Time&lt;/LI&gt;
&lt;LI&gt;MC_Time&lt;/LI&gt;
&lt;LI&gt;# of Shift 1 Operators&lt;/LI&gt;
&lt;LI&gt;# of Shift 2 Operators&lt;/LI&gt;
&lt;LI&gt;# of Shift 3 Operators&lt;/LI&gt;
&lt;LI&gt;MP server Capacity&lt;/LI&gt;
&lt;LI&gt;MF Server Capacity&lt;/LI&gt;
&lt;LI&gt;MC Server Capacity&lt;/LI&gt;
&lt;LI&gt;OF Interarrival time&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a6.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28879iCD96FC3D031E7E19/image-size/large?v=v2&amp;amp;px=999" role="button" title="a6.png" alt="a6.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;OL start="9"&gt;
&lt;LI&gt;Lastly, the Operator is released and the OF entity leaves with 1 Shaft and 1 Piece entity, as shown in Fig. 5 below:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f5.png" style="width: 322px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28878iCA33798FB6EB1DD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="f5.png" alt="f5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Figure 5&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/552892#M2683</guid>
      <dc:creator>nmok</dc:creator>
      <dc:date>2019-04-22T15:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shift plannification</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/553639#M2685</link>
      <description>&lt;P&gt;Thank you nmok !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really clear and precise.&amp;nbsp;Thanks a lot for all the work you have done for me !&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Shift-plannification/m-p/553639#M2685</guid>
      <dc:creator>ThomasMuraille</dc:creator>
      <dc:date>2019-04-24T13:28:58Z</dc:date>
    </item>
  </channel>
</rss>

