ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﻨﻤﺬﺟﺔ ﻭﺍﻟﻤﺤﺎﻛﺎﺓ ام Excel, SIMAN, Arena and General Purpose )Simulation System (GPSS WORLD ﺗﺄﻟﻴﻒ ﺩ .ﻋﺪﻧﺎﻥ ﻣﺎﺟﺪ ﻋﺒﺪﺍﻟﺮﺣﻤﻦ ﺑﺮﻱ ﺃﺳﺘﺎﺫ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﻤﺸﺎﺭﻙ 2 3 ا ا ا ا رب ا" ! وا ة وام اف ا و و (& و' & و.% أ ". ه 5.ه 3ا 2دة ا0و /ب ا ,-.وا آ ة ام Excel, SIMAN, Arena and General Purpose Simulation System (GPSS )7 WORLDب ,6ا2 /ر29س. وآ ذآت ; , : 3آ C " 3ق ا Aا@G- – 3? 6ء أول – " ه.ا ا /ب 2 MNدة إ ء ا 30و ذن ا 2 "Iف أ2Jم 5927و59HI و M/O & Iو &/O MNا@/و 3ه.ا 30أ :ان ا"2م وا,: 27Iر 29و M/Oرع Pان و 3; U"Vآ ب R S 9T 3/I - د ,/ 9ا 2V2ع و '2X 3; ,رة ا " 2ت وا@.W 37Y9ا /ب ا 0ت ا0و2V2 ,ع و79ق إ ا ,-.وا آ ة ام Microsoft Excelو G6م ا /ة SIMANو Arenaو GPSS World وآ ن إ ري 5.Uا Gم ه 2إ Oره ا /و 2-د UIا" @ ,ا U 2ارز ت أآ[ ; ,و UI2Jا ,وإا Uا2ا Rآ ا& %I Jإ ره MJ ! _[/ M/Oا ! [/ا ^ R ![6ه ! اا ] ; ! W /أوا?M اا ] ا `2H ,د UIآ أن GPSSأ' Y ! aت ا آ ة ذات ا ا Object-Oriented 3bOوه.ة Gة - , Nا 0ي ,-. ,Yو آ ة، ,; V@eإ و2-د 7 , H dب ا@.W إن إام ا ] '` ت ا 3; Excel M[ Oا ,-.وا آ ة ا'O aا ; 3آ[ ! ا " Hت ،وا' `' ,-. Wت اSpreadsheet O ! Modellingا 2ا RVا - , Uا واfور 3; ,9ا" %ا 3" Hو &J 2رة ;2 !/I %ة ! MJ وذ: gر UIا ,H " ,? Uا ت M/أU / إ Oر ا ت ا ،,hو0دل ذ eH : gا 2[6ن ا0وا? 3; Mأوا? Mا:ن ا" 3; ) !9Oا`ة ! 1920م 1960 -م( إ إام Cق ,9:I Approximation Methodsو :Iر Asymptotic Methods ,و-اول ور 2ت M ,ا@" 3? 6م و2-د أو C ;2Iق , 6أو،,/I 2I و _qاG9T 9Oال ا ! [/ا@ !? 6وا M/O !V 9م !:Y ا7ق ا , 9:ا2C 3رت .6اك و2Y9 %ا ا:رات ا ,? Uت ا ،,[9 و %UH6أن gIا7ق ه Cق أ R YIT ,ا! G؟ إ SH0 3ذا آ ن `" O; Mو W2-و آ M92وآ 9و^ه2 %آ ن أ6هM[ S 6 g 9 % 6ت ه.ا ا" !!! إ 3أG-م Oه Cق إ ^ ,? 6ا 3ر UورU ا2م. 3; WJ7I :ه.ا ا /ب إ Cق ا آ ة او ,9وا , U "I 3وVور,9 !9ا S 7ا` /ا 3:7وا@ 6س 9ث أ Xء ا آ ة وه,OI 3 4 " 9 و%H آ50 نGI M ! ا,?2 M 6 M[ قM M 3 د2H اS9رI _9U ا رب5 e9 ي.م ا: آة اS أو آ، ة,b wU9 وMI U . ة,b ; رغ ,[ أg ذRI %X ,9 آ ة او,[ ء أ7 W J ب/و ! ا0اء اG-0; ا ذج امM6 و927I %I ة0اء اG-0 ا3; وExcel آ ة ام W " أMicrosoft Excel ] 3 إا3; . GPSS World وArena 'اراتz ! اM آ3; ;ة2 اMinimal Excel U أ3وا واوال وا0ا User Defined _ ا م9"I [ ! دوال/ أم ا% و2000 و97 ! [/ اM6 MU W آ3 وا3 O ا3 @اUIر2C 3 اFunctions .R H ;ه2I "مg وذMf; واMUق ا7 ,[ 0ا ,/ اء اX@ و%9/& اU-2 M "ا ا. ز هH إ3; 3:;29 ا ! ا ان2-ا وار.ه . ب/ا ا. هM[ ة إ:` ا, "ا 3; W@ ا,/ -ا2 ن2/ و% S C ي0 3 H ب/ا ا.ن ه2/ http://www.abarry.ws/books/SimulationBook.pdf RJ2 ا .;2 وا ا _A ا ! ي6 ا- ن.د د2" g ا," هـ1423 3 [ اR ر م2002 ,29 5 : ات 3 10 10 10 11 13 14 14 16 20 20 20 24 26 29 38 45 50 50 50 53 53 54 58 60 64 65 66 66 66 68 68 70 70 70 72 74 74 77 77 ....................................................................................... , : ا ................................................................................ ا اول ........................................................................ دة ا آ ة, : .............................................................................. , _ ا9" رI ............................................................................ Model ذج2 ا ................................................................................. اع ا ذج2أ .............................................................................. _ ا آ ة9"I ........................................................................ م ا آ ة ...................................................................... ات إاد ا آ ة27 .................................................................................. ا ا ................ Hand Simulation Examples :,[ 0 " ا,9 ة او/ ا ........................ Single Channel Queue 6ا2ر ا _ ا2 C : 1 [ ل ....................................................... ,"9 ا, / و6 أ:2 [ ل ................................................................ _ اR? ,/O :3 [ ل .................................................................. !9G ا3; ,/O :4 [ ل .................................................................. S7 ا9 I ,/O 5 [ ل ..................................................... (M,N) !9GI مN آ ة:6 [ ل .................................................................................. ا ا ........................................................... Oا آ ة ام '` ت ا ............................................. Excel ام3 6 إR9ز2I ! ,9 " ا ............................................................ Excel آ ة ام,[ أ .................................................... 3/I 2I أوR , آ ة آ:1 [ ل .............................................. Excel ت ا آ ة ام- M I ............................... Excel ام6ا2ر ا _ ا2 C آ ة:2 [ ل ...................… Excel ام,"9 ا, / و6 آ ة أ:3 [ ل .......................................... Excel ا _ امR? ,/O :4 [ ل .............................. Excel ( امM,N) !9GI مN آ ة :5 [ ل .................................................................................. ! ا اا .......................................................................... ,?ا2O مJ أر2I ................................................................... ,?ا2O" م اJر0اص ا2 .................................................................... ,?ا2O & مJ أر2I ......................... Linear Congruential Method 37 ا7 ا,:9C .................................................................. ,?ا2O" م اJرq إ رات .................................................................... ا ويR9ز2إ ر ا ............. Kolmogrov-Smirnov Test ف2 – روف2-2 2إ ر آ امKolmogrov-Smirnov Test ف2 – روف2-2 2إ ر آ ......................................................................................... Excel .................................................... Chi-square Test آ يR إ ر .....................................................… Excel إ ر ع آ ي ام ........................................................................... ل:@إ رات ا .................... Runs Up and Runs Down M`0 يH وا0 يHا 6 77 80 80 82 82 83 83 84 85 86 87 88 88 89 90 92 92 93 94 95 98 99 99 99 101 103 103 103 104 104 105 106 106 107 108 108 109 110 111 112 112 113 ........................................ Excel امM`0 يH وا0 يHا ............ Runs above and below the mean w2 اW Iق و2; يHا ......................................… Excel امw2 اW Iق و2; يHا .......................................................................... 3Iا. اw إ ر اا ...............................................… Excel ام3Iا. اw إ ر اا ............................................................................... :"#$ا ا ..................................................................... ,?ا2O اتY 2I ..................... Inverse Transform Technique 3/" اM92 ا,:9C ................................ 30 اR9ز2 اR9 3?ا2O Y ! هاتO 2I ................................... Excel ام30 اR9ز2 هات ! اO 2I ....................................... (a,b) ! ا ويR9ز2 هات ! اO 2I ..........................................… Weibull M9 وR9ز2I ! هاتO 2I ........................ Excel امWeibull M9 وR9ز2I ! هاتO 2I ................... Triangular Distribution 3[[ اR9ز2 هات ! اO 2I امTriangular Distribution 3[[ اR9ز2 هات ! اO 2I ......................................................................................... Excel ................................... Empirical Distributions ,9H" ت ا9ز2ا ............................... Excel امM ` ا39H اR9ز2[ ل ا ............................... Excel امM ا39H اR9ز2[ ل ا .......................................... M ` ا39H اR9ز2 هات ! اO 2I ...................... Excel امM ا39H اR9ز2 هات ! اO 2I ............ Direct Transformation 3"7 اR9ز2 اM92 ا,:9C .............................................................................. :ا ا دس .................................................... Input Modeling ا ت,-. ...................................................... هاتO ! اR9ز2ا"ف ا ........................................... اري/ اR9ز2 اM/ تb` د اXeI ........................................... هاتO ! اR9ز2ا"ف وإ ر ا ........................................................… Binomial !9 ذات اR9ز2I ..................................... Negative Binomial S ! ا9 ذات اR9ز2I ......................................... Geometric Distribution 3U اR9ز2ا ...............................................................… Poisson ن2ا2 R9ز2I .............................................................… Normal 3"7 اR9ز2ا ........................................… Lognormal 3 X^ ر2 ا3"7 اR9ز2ا ........................................................… Exponential 30 اR9ز2ا ...................................................................… Gamma - R9ز2I ..........................................................................… Beta R9ز2I ...................................................................… Erlang ]T إرR9ز2I ..................................................................… Weibull M9 وR9ز2I Discrete or Continuous Uniform M ` أو اM ا وي اR9ز2ا ..........................................................… Triangular 3[[ اR9ز2ا ........................................................… Empirical 39H اR9ز2ا .............................................. Parameters Estimation % " ا9:I ............................................. " ت9ز2 " ا,6: رات ا: " ا 7 113 113 114 115 115 117 117 119 119 120 120 120 121 123 126 129 133 133 134 147 148 158 159 165 165 165 167 173 180 183 183 183 183 184 186 186 190 190 190 ...................... Goodness of Fit Tests 7دة ا2- ! أو6 إ رات ........................ Quantile-Quantile Plots ا " ت- ت ا " ت2ر .... Excel امQuantile-Quantile Plots ا " ت- ت ا " ت2ر ....... Chi-square Goodness of Fit Test 7دة ا2H آ يR إ ر Chi-square Goodness of Fit Test 7دة ا2H آ يR إ ر ............................................................................. Excel ام K-S Goodness of Fit 7دة ا2H ف2 -روف2-2 2إ ر آ ........................................................................................... Test K-S Goodness of Fit 7دة ا2H ف2 -روف2-2 2إ ر آ .................................................................... Excel امTest :! ا ا ................................................ SIMAN ا آ ة,Y ا آ ة ام ................................................................... SIMAN اء-ات إ27 ............................................................ SIMAN 3; ,-. أ ت ا ......................................................................... SIMAN ,Y ا2J ................................................................................. ذج2 اSا2J ............................................................................... , H ' ا ........................................................................ ة6ا2 ا, ا آ,/O ............................................................... رة27 ة6ا2 ا, ا آ,/O ................................................ M 37 ?_ و2! ! ا2 ,/O :#ا ا ...........................… ARENA ا آ ة, G6 وا آ ة ام,-. ا ................................................................................... ذج2 ء ا ..................................................................... 9: ا آ ة وا,H .............................................................. ذج2 ت اI إد ل ...................................................................... 9: ا آ ة وا,H ................................................... Output Analysis ت- اM I ................................................................................ :!'ا ا ................................... GPSS ا آ ة, G6 وا آ ة ام,-. ا ................................................................................ GPSS أوا ..................................................................... GPSS Sا2J رات ............................................ GPSS 3; ;ة2 م اN ,9ا ` ت ا"د ............................................ GPSS 3; , اOperators ا" ل ......................................... آة ا*)م-./# 0)# )12 اآ34 ك67 آة# ................................................................................ ,/O ض ا .............................................................. GPSS ,Y ] ض ا ........................................................................ ذج2 اM _'و ............................................................................... اء ا آ ة-إ ................................................................................. ]? ا,OJ ................................................................................ ا آ ةMدا .................................................................... 8 94آة ;م ه# ............................................................................... ,/O ض ا ............................................................. GPSS ,Y ] ض ا 8 و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ............................................................................... ,OJا ?] ................................................................................. دا Mا آ ة ................................................................................ #آة ;م >$4ا= .دور ....................................................... ض ا ............................................................................... ,/O ض ا ] .............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ................................................................................ ,OJا ?] ................................................................................. دا Mا آ ة ................................................................................ #آة ور>/4 @ /4 7ن .............................................................. ض ا ............................................................................... ,/O ض ا ] ............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ................................................................................ ,OJا ?] ................................................................................. دا Mا آ ة ................................................................................ #آة ;م ا= A Bدة............................................................... ض ا ............................................................................... ,/O ض ا ] ............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ................................................................................ ,OJا ?] .................................................................................. دا Mا آ ة ................................................................................. #آة ;م ............................................................ -/C D*1 >$4 ض ا ............................................................................... ,/O ض ا ] .............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ................................................................................ ,OJا ?] .................................................................................. دا Mا آ ة ................................................................................. #آة ;م !D ! 14إBو ........................................................ ض ا ............................................................................... ,/O ض ا ] .............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ إ-اء ا آ ة ............................................................................... ,OJا ?] .................................................................................. دا Mا آ ة ................................................................................. #آة 'ق #آ>ي ........................................................................ ض ا ............................................................................... ,/O ض ا ] .............................................................. GPSS ,Y و'_ Mا 2ذج ........................................................................ 9 191 193 193 194 199 199 199 200 204 204 205 208 208 208 209 213 213 213 217 217 217 218 223 223 224 227 227 227 227 228 230 230 232 232 232 232 234 234 234 237 237 237 238 إ-اء ا آ ة ............................................................................... ,OJا ?] ................................................................................. دا Mا آ ة ................................................................................. )2J (1ا.................................................................... GPSS S ) (2أوا ................................................................… GPSS ) (3ا ` ت ا"د N ,9م .......................................................... ) (4ل .................................................................... GPSS ) (5أ /ل 2J M[ Iا................................................... GPSS S ) (6أ ,bا@ رات ا ,:وأ............................................ U 2- Iر.......................................................................................... !9 .................................................................................. ا اR- 10 241 241 241 244 262 269 272 274 275 407 421 :ا اول :آ ة دة ا, : ,2 ا3 وهProblem Solving Techniques M آO اM , U اM? 2 ا6 ا3آ ة ه اوAnalytic Methods , ق ا7 U6 "إ Resampling ,9 " ق إ دة اC 3 آ ة ا إذا,/O أيM ة0ة وا62ا " اI و.Numerical Methods ,9ا"د مN_ ا9" Tف أ أو2 .," '` تU ,?ا2O اتY م وJ أر2I وMethods :,I 2/ و : او9ر.4 : System ;م1ا ." اUf" "I وM `I ء0 ! ا,2 H : Entity آ . إه م صU مN ا3; ,2 أو آ2وه : Attribute H .!? / ,' 2وه : Activity طJ . مN ا3; YI SI , أي : State of the System ;م1 ا .," ,N مN ا3; ,7O0 واUI `' ? ت و/ اM _ آI اتY 3وه .& 6 3; اتY اR مNر ا27I رس9و :ل# R ا%J 3 م هNا ا. ه3; , 0اء اG-0 ا. U"7J R H9 و, f ]9 R " ي. ت ا9O ا%J و, f @ ج اR7: ا5. هR H9 ي. اR H ا%J وR7: اR 9 ي.ا M:9 ي. ا@ ج ا,J ا%J ! وO , f اGUH9 ي. ! اO ا%J و, اد ا2 ! اA9 . مJ0 ا,: 3 M " ا%:9 و, f ا3 ت7ا : مNا ا. ه3; d اR? f ا،اءG-0 ا، ت7 ا، مJT ا:3 ? ت ه/ا 11 ا C Oت ه , :3ا Rو ,ا R Hو ,اء ا 2اد ا م و ,اGUH وا ! Oا.d ا ` ت ه :3ا2 ،SC M/ , /ع ا ،,"7:د ا 3; !? /آ %J Mاd واHول ا 37"9 3ا [ ," , N0 ,و " : UI 2/ ا Nم آ ? ت '` ت ا,7O ور رات ,; ،, 2ا,J g ز ?! دا?! ،ر %Jا ب SC ،: S Jض إI Tت /ت ،ر ?M 2Cل ا ,U- ،, / ا@I 2ق آGي ز ?! إر لM'2I ، ل , ? Jا92 د; , J Rا 9Oت وه.ا اHول 6 37"9Tآ R H Mا ? /ت وا ` ت وا 5.U ,7O0ا0 , N0ن ذg ,;" S79ا0هاف ا ! 3ا U-رس ا Nم .وإ دا 3ا0هاف ا !/ 9 , 27 9 Iو'_ أدق Nم و .,I 2/ Kا;1م: Xe9ا Nم Yات ا I 3ث ر &-آ ا& 3 XA9ا M[ &26 ! wه 5.اYات ,b 3 XAIا Nم ! ; .ا - %Uا ,-.ا Nم ان Gا ود ! ا Nم و &bوه.ا 9د "; ,ا0هاف ! وراء درا ,ه.ا ا Nم. ;` [ 3ل ا Rا"2ا Mا 7 %/ I 3ت 3ا Hت "Iرج XeIا Nم و.Uا ;G- 3Uء ! ,bا Nم و !/إذا آ ن "ض 3 XeIا SH; S7ا .ذ 0 gر إذ ان ه ك - ! ,Jت ا Rوو'2ل ا 7ت و 9ه.ا Feedback ,` ,9.YIو"I ه.ة ا" O ,Jط ! ا ,7Oا Nم. ا DJا)ا :Endogenous Activities /0و _ Iا ,7O0دا Mا Nم. ا DJا$ر= :Exogenous Activitiesو _ Iا ,b 3; ,7O0ا Nم وا3 XAI 3 ه.ا ا Nم .ا Nم ا.ي ,7Oe Xe9Tر N 3 9 ,-م /" Yا Nم ا.ي Xe9 ,7O0ا ر ,-وا.ي N &e _'29م `2ح. 12 ا DJا)دة :Deterministic Activitiesوه 3اUH? 9 I !/ 9 3 I M/Oم ! . UI ا DJاJ.ا : Stochastic Activitiesوه 3اXeI Y9 3ه 2O M/Oا? 3و2/Iن ? UHإ /ت "دة 2 _'2Iز R9إ [ ; 3 6ا WJ2ا.ي _'29 R H ,( &JYI 2ز R9إ 3 6آ ان ا ! ! Gإ 7ل (2O M/O Y9 ,ا?.3 ا; ا:Continuous Systems L/ وه 3ا , 6 U; YI 3ا Nم M M/Oو ; [ إ6 5 HIآ? C ,ة ; 3ر 2-ي %/ I W Iا 7ر ا I 3hث Smooth % M/O aا@.5 HI ا; ا:Discrete Systems /1 وا , 6 U; YI 3ا Nم R R7: M/Oا [ ; ! Gإآ ل 3; , fا 9 Rث ،R7: M/Oو'2ل 3 SCا 9 R? fث R7: M/Oا.d =3ا;1م :System Modeling ا1ذج : Model ه N 9HI 2م 2/9ن ! 2" R HIت 26ل ا Nم Yض درا& .ورا N ,م SH9 ان 2/ن او 2 3ذج _'2 Modelه.ا ا Nم Yض إ-اء HIرب 3 , -zأ,b وإ;ا Vت !/ 9Tإ-ا? 3 Uا Nم ة وذ7f9T 36 gب ا Nم ا 3'0و 9ث إر Iك ;A9 & 3دي ا YI 3ا Nم و;:ا& 2ا'& ا ,'0آ ان درا ,ا 2ذج ! T ا Nم , HI ! !/ Iة 26ارات 26ل ا Nم وذ gدة ا 2ذج ا 3ا ,ا ,'0 إ-اء آ26 Mار " /ا Nم ا 3'0ا.ي إذا !/ 9T YIإ د ,Iة اى ,ا,'0 ; [ را N ,م إJ دي Yت ا"ض واA9 J S7دي ا. U/ !/ 9T ]? 3 آ أن ا 2ذج !/ 9ان 9رس ; 3أز ,إ;ا !/ 9 [ ; ,Vإ-اء آ ة Nم ام ا 2ذج و "; ; I " ,ت ا Nم `ات ة ا Uاو ! ; 3د .,J ? Jوآ!/ 9 g. ! 9Cا 2ذج درا ,ا Nم MJإ &? Oوو2-د 5ا' ; [ 9ء رات ء ; 9اي ر ا;2/ Mfن 2ذج M/ر و آ I 3ف ا Rو 9ة W I Rه5. ا رات. أاع ا1ذج: # ) > Aد ( :Physical Modelsوه 3ا2 3I 3اد M[ ,6ء 2ذج ? 7ة ;3 ,6ا %وذ @ gر ه W I U/وف "., 13 :Mathematical Models ( )T4 او/ /4 ) Sر (d ت ا2 ر،اول- ، دوال،, 6" ت إ9ز2I ) ,V 9 ت رJ U? م3وا ! وا ذجG اR U 6 YIT 3 واStatic Models ةH _ ذج اI f9ه ك ا .! G اR U 6 YI 3 واDynamic Models ,/ 9 أو ا,ا آ 3; ?ةC او,` ذج2 ، ا امH ذج ء ا2 ةH ا,? 9G` ا ذج ا3 وآ [ ل , ور3; 3اق اا6@ ا,( ذج3آ6 3? 9G; ذج2 وآ [ لd ا36 S/ ة.; .م2" ا,/ ء9G` ا%J M " 3; , ا آ,? 9G` وآ[ ! ا ذج ا,U ا,آ 3اه ا2N ا:" ذ9) إ., ا آg. ة وآH ا,V 9 " ا ذج ا,[ أذآ أ:!9 I (,آ6 ن2/I ,J أو ;و,V `I تT'_ " د2I :3 اع ا ذج آ2 اM[ I !/ 9و MODELS MATHEMATICAL PHYSICAL STATIC STATIC DYNAMIC NUMERICAL ANALYTICAL DYNAMIC NUMERICAL SIMULATION ,9 و دAnalytical , I إ, ا آ,V 9 ا ذج اJ اaV2 ا3; آة وNumerical ,9 و دAnalytical , I إ, ا آ,V 9 وا ذج اNumerical امg وذI U6 !/ 9 ,V 9ا ! ا ذج ا- M:ن ا0 g وذSimulation ق7ام ا 9 دU6 !/ 9 U^ وأ،,:7 ت ا- @ وا,V 9 ت ا9Nا .آ ة ا,7ا2 U6 !/ 9 U" - و،,9ارز ت ا"د2وا : اآة9.4 9و9 آ ة ا9-اء ا2 و.," , ;ة ز3::6 مN M " M[ I او:I 2آ ة ه ض إ جY g م وذN R7 ا d9 رI 2I M OI U; S او ام ا .3:: م اN ,YOاص ا2ا 14 وا آ ة 2 927I "Iذج Nم ا .3::ه.ا ا 2ذج 2/9ن ! ,2 H M/ ا` Vت ا M " "I 3ا Nم وه 5.ا` Vت 2/Iن J M/ت ر ,V 9او ,:7 او ر ! Symbolic ,9Gآ ? ت ا Nم 927I " .و validate M"`Iا 2ذج & @-اء " ا Hرب ا !/ 9T 3إ-ا? Uا Nم ا 3::وذY gض ,N6وإ ج اYات وا` ت ا ` ,ا7I J 3أ ا Nم ; , 6 3إ-ا? 3; , Uا .,:: )$ U#م اآة: ا27ر ا 3; /ا ت وو2-د ا ] ا@ام ! M"-إام ا آ ة در ! , ,-ا و ,و,2U آ ة ; M6 3ا Oآ Mا ,وا@J د ,9وا@, - وا ,7وا ,bا 0ا MUر ,-ان ه ك ا ! [/ا" ء ا !9.ا دوا ' ^ ,ا! [/ ا"2م ا !9 " ,:7ا " 2ت ا , fورا Inherited Information XداM ا Oهات ا " ,N6او ا و ون ا@;اض e :ي ; Vت 2/IT Jن ' , [ Mان `ض ان اوزان ;bان ا Hرب ا 2I U ,ز 3"C R9و; , 6 3م : Iه5. ا`2: ,Vم -اء Transformation M92 Iا ت ا Oهة ,"C U"HوM/O 2 R Hا &9 ,9.60ا : ,9.6س واe; w:; 6ي ز 2ن 2/Iن & J 39:Iوه.ا I &O9 2Oا .اء ! R7:ا : a 9 6 !7:س ا:م أ إذا أ' ! Yا .اء 2:9م ا ?R آ Wا:م اآ ! ا .اء ;ن ا ? 9 Rإ'" او إ'"! MI 6ا:م ; 3ا .اء )ه.ا [ Mإ;ا .(3Vو.Uا ;ن ا@ HIة ا P9ه " 2دع ا ت ا Oهة " U` ! %/Iوه./ا 27Iرت Cق إ دة ا " Resampling Methods ,9واI 3م ا وIم ا آ ة اhن M/Oآ و 3; _[/آ[ ! ا 0ث ا" ,ا ,9Nأو ا,:7 وه ! 3أه %ا 2اد اI 3رس أآ د ! V (1ا آ ة ._[/ M/O 2ث ا" ت و M Iا %Nو ! Gا: UI آ ة ! !/ Iدرا ,وإ-اء HIرب ا` ت اا0 ,ي Nم " :او G-ء ! ذ gا Nم. (2اYات ا@J د ,9وا ,وا@ , -وا !/ 9 ,bان Iآ و ,N6ه.ا ا"M9 Iف ا 2ذج. , ! (3ا ,-.وا آ ة 2" Mت `ة -ا ! إداء ا Nم ا .3:: Y (4ت ا آ ة و ,N6ا -ت ا 9 I / 9 ,HIا Yات ا 3; , U ا Nم ا 3::و "; ,ا ,:97ا. U M `I 3 I (5م ا آ ة " fا ! [/ا ?] ا [ ,ا.,9N 15 I (6م ا آ ة I , H %و ت 9-ة I %م ! MJ 9 ; U Uو6 U:Iو. UX (7وIم ! :ا 2ل ا ,واeآ ! ' 0 . Uن ذج ا Runو2-2; M ITد ,2 H -اء ا دة ! ا ت و2اص آ ة HIى دة 2ذج :9م آ ة و ,N6ا -ت. و !/ه ك " ا"2ب او 6Tى ا " 2ت [:M (1ء 2ذج 9ج ا ة وIر S9ص Mان ا" 2:9ل ان ء 2ذج ه !; 2إذ آ %"9 ! Mآ ,ا 7 a 9 wط ،آ 39 J !` ! OآU M ان ; , 6 3إ 7ء ` ا ,/O 2ذج g.و2/Iن ه ك ا ء Oآ! , ا 2ذ !-ا !HIو !/ا@; ت آة و! 2/9ن ا 2ذ.!:7 !- آ ة او 2/9 J UI -ن ! ا "`I Sه و ' ,إذا آ Wا ت ]? (2ا 2Oا?, - , ]9ت 2Oا? ,و 2/9 3ن ! ا "; ,;" S إذا آ Wا@; ت ا ,HIه ! ا"2Oا? ,ام ! ! 3::6 M `Iا Yات. (3ا ,-.وا Mو R -ا ت Yض ا ا 6آ ان إ ر او " R7Jا آ ة Y9ق و- M92C Jا و2/9ن _/ در ; , 3ء ا 2ذج 2 U ]9ذج 79T Jا Nم ا 3::و , 9 &H? a Iا` ?ة. و " -2I 6 !/اا ] ا.آ ,ا2 I 3ى ذج -هGة ! [/ا , N0ا ,:: ا ,"? Oوه 5.اا ] .YIى ت ;- ]? 37"; w:ة ،آ ان ه 5.اا ] 2 Iي ا ] ة Mا ت وا -ت 2:Iم M/ا" Mا Oق ا.ي &7Iه 5.ا,7O0 و- ]? 37"Iة و ،,آ ان ه 5.اا ] 2:Iم -اء ا آ ة ذج ا ":ة ; 3او Jت : , Jر ,ا ] 2Cرت : MJاو .!9: D0ات إ)2اد اآة: ه ك 27ات !/ 9 ,f9ا@هاء @ Uاد درا2 ,ا ,7ا 2ف `U w7ا@ ب ا :3 16 آ ة و ء 2ذج S Problem formulation Setting of objectives and overall project plan Model conceptualization Data collection Model translation No Verified? Yes No No Validated? Yes Experimental design Production runs and analysis Yes Yes More runs? No Documentation and reporting 17 Implementation و2ف Oح آ ,6 Mآ :3 B4او BJ4ا: Problem formulation /BJ وه 5.ا27ة ه 3اه %ا27ات ; 3ء 2ذج آ ة و" %Iض وا aVوآ ,/O Mاو ا Nم ا اد درا& و " %Iون Rوا 3"Vا:ارات وا M6 %U UI !9.ه 5.ا %X ,/O و2 M/ 3; U"Vذج ر 3V 9او. :6T 927 M J 3 و !Sاه)اف وا D$ا: Setting of objectives and overall plan /#J ا0هاف 2/Iن ! ا ,b0ا اد ا@2 U , -ا ,7ا ; إذا آ Wا آ ة وه SH9ا 3; .0ا@ ر آ ة ه 3ا ,:97ا M ,ه 5.ا 3; !9.( ,/Oا@ ر ا0هاف ا 52-و !92/Iا ,/Oا ! ]Iا27ة ا ,:و 2Vء ذ gإذا :Iر أن ا ا ,:97ا SH; M ,و RVا ,7ا, O وا 2ارد ا M 9; ! ,6و 2اد و آ ة ه3 !/ 9 Pدرا ,اا? Mا N ,/م در ,ا.d W4و 1ء ا1ذج : Model conceptualization and Building ء 2ذج Nم ,; V@ ; "9ا ا& %وذ ! ,0 gا !/ا 7ء ! ,2 H ا" ت وا2: 3د fورة ا ء 2ذج ; 3آ , 6 Mو !/ه ك 27ط ر?!/ 9 , ا@هاء . Uإن ;! ا ّG"ُ9 ,-.ز :رة 9HIا2اص ا @ ,/O , 0ر و 927Iا` Vت ا , 0وا G I 3ا Nم و ! %Xإ^ ء وز 9دة M' `Iا 2ذج 6 N - S9:I Mم و ?] ,2:و ،7 , Jو.Uا ; ! اfوري اء 2ذج %X wز 9دة ا` ' Mا S6 , Uاfورة ه Mإ در ,-ا" :ا , 27وا3 SH9Tان ! 9GIاUف ا اد Rا 3; .0ا@ ر ا& ! اfوري ان 2/9ن ا 2ذج '2رة Cا N M'0م ا M 3::ان روح ا Nم ا 3::ه 3ا ., 27آ a 9 eن 2/9ن ا ` ! ا 2ذج Oرآ ; R - 3ه 5.ا ا M6وذ .0 gوN ,U-ة ;3 ا@ ر و %U; &Iوإام ا ?]. =! ا 6ت : Data collection ه ك ! 3::6 M `Iء ا 2ذج و R -ا ت اfور ,9ت ;:ر د ,Jو' , ا ت ا :9 ,ر ' ,ود ,Jا 2ذج و 3ا -ت وا ?] آ R - SH9ا ت ت أ Xء و RVا27ط ا?2 ,ذج وز 9د27I S6 UIر :"Iا 2ذج آ ان ا0هاف ا I ,2V2د 2ع ا ت ا 27ب [ ; U" -درا Nم 2 Cر Yض ";2C ,ل 2 Cر ا@ Nر و w2ز ! ا@ Nر ! اه %ا ت ا 27ب U" -أز , ! ا2'2ل !? Gا 2 7 !:ر @ H9د 2Iز R9ز ! 18 ! ا2'2ل وأز ,ا , @ H9د 2Iز R9ز ! ا ،%U ,و ! اfوري "; ,ا2ز "9ت ا ر) ,9ا (,:اf9 2 Validate 9ذج ا آ ة. =4ا1ذج : Model translation ان " %Nا , N0ا U ]I ,::ذج Iج إ !9GIآ %ه ? ! Mا " 2ت وإ :رة .U; ,92J , 2 6ا , -I SH9ا 2ذج إ 2U` M/م ! ا Sإ ا , 27أو إام , G6ا ] SIMPROCESSو ا ] ا , /اا ] آ ة [ GPSS/PC Mاو SIMANاو ARENAاو آ ة ا .آ2رة أآ[ 2Jة و و ! ,اا ] ا ., 2/ [ ؟ ?: Verified ّ *ُ# ا :ه ص ` إذا وا آ ن ا ] ا 2 %-ذج 2:9م ;" @eداء ا 27ب 3`; ، aا ذج ا ":ة ! ا " ! M Sا , -I Mا 2ذج &/OاM / aوا 3U 6 S9Hإ ] -و ! : Hح S79 Mا 0ا ! [/ا '.&6 ّ)ُ#ق؟ ?: Validated ا 2/9 9ن ; 9إذا آ ن ا 2ذج M/O M[ 9د Jا Nم ا 3::و9 " %Iة ا 2ذج وذ : gر& Rا Nم ا 3::و ,9"Iإذا Gم ا 0وه/I , 3ار2/I 6 I ,9ن ا@; ت ! ا 2ذج وا Nم ا , U 3::أو ^ ،, Uآ ان ه 5.ا" N " 37"I , و; %Uا Nم ا 3::وا 2ذج. 4اTرب : Experimental design ; 3ه 5.ا27ة د اا? Mا اد ; @-اء ا آ ة ا? MاTى ،آ U 2ذج ،و^ "Iا ?] ا ,: :9ر ; 3ه 5.ا27ة 2Cل ;ة اء Initialization periodو2Cل إ-ا? ت Simulation runsا آ ة ود ا/ارات M/إ-اء. ا^=ات ا^= وا: Production runs and anaysis / وIم ه 5.ا27ة 9 : 9:ا0داء N Performance Measuresم ا آ. ه *م _=ات اآ؟ ?: More runs إ دا M Iا@-ا? ت ا : ,:ر ; إذا آ ن ه ك -@ ,- 6ا? ت إ ,; Vو ه3 اا? Mا !/إا & ; 3ه 5.ا@-ا? ت. ا` [ وا* : Documentation and reporting وه27 5.ة - , Uا 2:م ; X2 Uاا ] ا , 2و X2Iا 2ذج `& !/ 9 6 إا ! Uاي :6T P6آ ا` Uة -ا ! و RVا 2ذج ا' .9 3/آ M' `I 19 & " ز ! .ا 9:ه 2ا ]Iا M " 3? Uآ& وه 2ا.ي :9م إ ' Rا:ار و2/9ن ! ا ?] ا R - ! U Mا27ات ا ,:و SH9ان 2 9ي Summaryو,H Conclusionوا ! V Rا:ار. ا: Implementation [ 6D و Hح ه 5.ا27ة H "9ح ا27ات ا ,:و ى ا@Gام .- M/O U:7وSH9 ا ,Jو ا ,"-ا Nم `ة e 3/آ ! ى Hح ا '2ت ا.,? U أ(4) R- N 20 :ا ا Hand Simulation Examples :/# اa.6 ة ا )وBا , [ U0 JC إM`YIT اSH9آ ة و اM' `I 3; N " 37"I ,9آ ة او ا . راةS او ا,ي "آH اU9 وا@اد آ,bUا M آO اM داةeآ ة آ ة ا2J "ض ى3/ ,[ "ة أ,9و9 آ ة اء- م2: ف2 :ارات: اR و Single Channel Queue ) اا9 ر اC : 1 ل# U M `9 3?ا2O M/O R; ا,7: ?! إG اM 9 .6 واS ` U ل2'! و & Y' , : M , ز0 ا5. ? وهJ د8 و1 ! Interarrival times ل2'! و , أز :3 ول اH ا3; ل آ6@ا :ل2'2! ا , أزR9ز2I ول- Time between Arrivals (Minutes) Cumulative Probability Probability Random Numbers Assignment 1 0.125 0.125 0.0000-0.1250 2 0.125 0.250 0.1251-0.2500 3 0.125 0.375 0.2501-0.3750 4 0.125 0.500 0.3751-0.5000 5 0.125 0.625 0.5001-0.6250 6 0.125 0.750 0.6251-0.7500 7 0.125 0.875 0.7501-0.8750 8 0.125 1.000 0.8751-1.0000 :3 ول اH ا3; ت آT 6 ? J د6 و1 ! اوحI Sevice times , ا, أز :, ا, أزR9ز2I ول- Service Time (Minutes) Cumulative Probability Probability Random Numbers Assignment 1 0.10 0.10 0.000-0.100 2 0.20 0.30 0.101-0.300 21 0.301-0.600 0.60 0.30 3 0.601-0.850 0.85 0.25 4 0.851-0.950 0.95 0.10 5 0.951-1.000 1.00 0.05 6 ا" 2د !9ا 3; !90اHاول ا 2 ,:ف `ه . :6Tا 27ب M Iا Nم آة و'2ل و 20 ,ز . 2 @-اء ا آ ة 9و 9ج إ 2Iأز , ! و'2ل وأز M/ , ,ز 2ن وذg " ! ,9ا2ز UI "9ا " 7ة ; 3اHو! ا M"` 3/ .!:ذ ,:9C ! ` gا M92 ا" Inverse Transform Technique 3/واO 3ح ` 3; Mب 2Iا Yات ا"2Oا?., 2/ -1ن ا2ز R9ااآ 3آ ; 3ا" 2د ا[ ! Pآ- Mول. ! -2ا2ز R9ااآ ; -2 3ات ا0ر Jم ا"2Oا? ,ا ".e9 , J M/ ,ه ا Y ا"2Oا?.3 2 -3ر2O %Jا? 3ام (., 6 , N -4إ ا`ة ا U; R:9 3ا %Jا"2Oا? ! 3ا" 2د اا 3; RاHول ،ا%J ا.ي 3; R:9ا" 2د ا0ول ا 5.U Rا`ة ه 2ا Yا"2Oا? 3ا 27ب. ام ( , 6 ,و -ا :3 -ول از , ! ا2'2ل !? Gاـ 20 Time between Random Number Arrivals Generated )(Minutes Customer 8 0.8879 1 4 0.4065 2 1 0.0799 3 7 0.8029 4 8 0.9915 5 1 0.0381 6 6 0.7456 7 5 0.5014 8 2 0.1786 9 22 10 0.2481 2 11 0.4027 4 12 0.2708 3 13 0.9065 8 14 0.6057 5 15 0.7184 6 16 0.4033 4 17 0.8510 7 18 0.3966 4 19 0.6224 5 20 0.7386 6 :3 ن آ2 زM/ , ت اJو0 ول- ن2/ ,:97و ` ا 20 ?! اـG , ا, ول ازRandom Number Customer 1 Sevice Times Generated (Minutes) 0.869 5 2 0.878 5 3 0.623 4 4 0.251 2 5 0.074 1 6 0.952 5 7 0.440 3 8 0.496 3 9 0.878 5 10 0.665 4 11 0.954 5 12 0.627 4 13 0.087 1 14 0.628 4 15 0.354 3 16 0.366 3 17 0.763 4 23 18 0.598 3 19 0.902 5 20 0.302 2 ! ول & ز0ن ا2 G أن ا,N6 R ، مN % ء ورهX ?! أG اR9 ول- ن2/ نhا , ! ول آ ان ز ! ;اغ ا دمH ! اS 9 آ ة ` ا, ! ل2'! و : '`اS 9 ول0ن ا2 Gل ا2' و6 ` ا :آ ة Custom er Interarri Arrival Servi Start of val Time ce service End of service Time ا," ول- Time Time in Idle time in system of server Number Time queue 1 8 8 5 8 13 0 5 0 2 4 12 5 13 18 1 6 0 3 1 13 4 18 22 5 9 0 4 7 20 2 22 24 2 4 0 5 8 28 1 28 29 0 1 4 6 1 29 5 29 34 0 5 0 7 6 35 3 35 38 0 3 1 8 5 40 3 40 43 0 3 2 9 2 42 5 43 48 1 6 0 10 2 44 4 48 52 4 8 0 11 4 48 5 52 57 4 9 0 12 3 52 4 57 61 5 9 0 13 8 60 1 61 62 1 2 0 14 5 65 4 65 69 0 4 3 15 6 71 3 71 74 0 3 2 16 4 75 3 75 78 0 3 1 17 7 82 4 82 86 0 4 4 18 4 86 3 86 89 0 3 0 19 5 91 5 91 96 0 5 2 20 6 97 2 97 99 0 2 1 Totals 96 23 94 20 71 24 مN داء0 ا9 : -2 ول اH! ا ,:J د1.15= 23/20 = !? Gد ا/ رN@ ر=ز ! اN@ ز ! اw2 -1 0.4= 8/20=!? G د ا/واN! ا9. ?! اGر =د ا2 7 ا3; رN@ ل ا6 إ-2 %78 أي0.78= 20/91 -1= 3/ ! اGا/ ز ! ا`اغ-1= ا دم, "; -3 ,:J د3.55=71/20=!? Gد ا/, ا, ع از2 H =, ز ! اw2 -4 4.8= 96/20=!? G د ا/ل2'2! ا , ع از2 H =ل2'2! ا , ازw2 -5 ,:Jد 23/8=واN! ا9. ?! اG د ا/ رN@وا= ز ! اN ر ! اN@ ز ! اw2 -6 ,:J د2.875= ,:J د4.7= 94/20=!? Gد ا/ مN ا3; ث2/ م= ز ! اN ث2/ ز ! اw2 -7 :. ا#)$/ B أ) و:2 ل# .ر2 C _' د اآ[ ! ر او2-آ ة و ا,:9C ض2ا ا [ ل ه.ض ! هYا راتS7 اM'2I و.0 ! ت د7 ا,I م2:9 رات,"9 , %"7 :, ل ا2'2! ا , ازR9ز2I S6 %"7 ا رات إ اM I .%"7 ,'ا2ا :ل2'2! ا , أزR9ز2I ول- Time between Arrivals (Minutes) Cumulative Probability Probability Random Numbers Assignment 1 0.25 0.25 0.000-0.250 2 0.40 0.65 0.251-0.650 3 0.20 0.85 0.651-0.850 4 0.15 1.00 0.851-1.000 S^ ا,f`9 g. )و/ ! رة وةJ [ اآ6 ا،/ 3 [ وا6 ا%ه6 ا9 ! ا د 3 ه/ و6 ! اM/ , ا, ازR9ز2I ،!? G ا, 3; ?!( آ ا& اعGا :3ا2ا : 60 , ا, أزR9ز2I ولService Time (Minutes) Cumulative Probability Probability 25 Random Numbers Assignment 2 0.30 0.30 0.000-0.300 3 0.28 0.58 0.301-0.580 4 0.25 0.83 0.581-0.830 5 0.17 1.00 0.831-1.000 :/ , ا, أزR9ز2I ولService Time Cumulative (Minutes) Probability Random Numbers Probability Assignment 3 0.35 0.35 0.000-0.350 4 0.25 0.60 0.351-0.600 5 0.20 0.80 0.601-0.800 6 0.20 1.00 0.801-1.000 .&? أدا,;" مNآ ة ا آة ب27 ا اM6! ا9 3 ول اHا Ahmad Bakur _______________________________________________ Cus Random Tomer Number Time Clock Random between Time of Number Time Time Sevice Service Service No. for Arrivals Arrival Arrival for Service Start 1 0.99284 4 4 0.398244 2 0.463490 2 6 0.485853 - 3 0.654933 3 9 0.018479 9 4 0.008010 1 10 0.375450 - 5 0.017539 1 11 0.380226 11 6 0.027118 1 12 0.071695 7 0.294307 2 14 0.794733 8 0.703278 3 17 9 0.305171 2 10 0.029153 11 0.294875 12 13 Time Sevice Time Sevice Service Time in Time Ends Start Time Ends 3 7 - - - - - 6 4 10 0 2 11 - - - 0 - - 10 4 14 0 3 14 - - - 0 14 2 16 - - - 2 - - - 14 5 19 0 0.048615 17 2 19 - - - 0 19 0.744830 19 4 23 - - - 0 1 20 0.082780 - - - 20 3 23 0 2 22 0.913267 23 5 28 - - - 1 0.846545 3 25 0.625406 - - - 25 5 30 0 0.991276 4 29 0.987133 29 5 34 - - - 0 14 0.684252 3 32 0.641578 - - - 32 5 37 0 15 0.642370 2 34 0.416842 34 3 37 - - - 0 16 0.369203 2 36 0.916370 37 5 42 - - - 1 17 0.222240 1 37 0.712437 - - - 37 5 42 0 18 0.437991 2 39 0.770969 42 4 46 - - - 3 4 Queue 0 19 0.119146 1 40 0.061159 - - - 42 3 45 2 20 0.662990 3 43 0.934648 - - - 45 6 51 2 21 0.288916 2 45 0.923251 46 5 51 - - - 1 26 2 - - - 54 3 51 0.355554 49 4 0.903758 22 0 58 5 53 - - - 0.682907 53 4 0.948593 23 0 - - - 58 3 55 0.379748 55 2 0.375286 24 1 - - - 60 2 58 0.273077 57 2 0.273955 25 0 - - - 63 3 60 0.358811 60 3 0.664870 26 0 67 6 61 - - - 0.831475 61 1 0.125086 27 0 - - - 68 4 64 0.736537 64 3 0.804005 28 1 72 5 67 - - - 0.755743 66 2 0.431573 29 0 - - - 72 3 69 0.389873 69 3 0.785686 30 16 ة ا 56 61 Totals 69 آ ة 72د,:J , "; -1أ 0.847 = 61/72 = 6أو %85 0.777 = 56/72 = / , "; -2أو %78 -3د ا %U !9.أ 30 ! 18 = 6أي ! %60ا!? G w2 -4ز ! ا 3.39= 61/18 = 60 ,د J) ,:Jر , : Uا (,:: -5د ا 30 ! 12 =/ %U !9.أو ! %40ا!? G w2 -6ز ! ا 4.67 = 56/12 = / ,د J) ,:Jر , : Uا (,:: w2 -7ز ! ا@ Nر 0.53 = 16/30 = R Hد,:J w2 -8ز ! ا@ Nر ! اNوا ;"= 1.6 = 16/10د,:J w2 -9ز ! ! ا2'2ل= 2.3 = 69/30د J) ,:Jر , : Uا (,:: -10إ 6ل ان ا2 Gن 0.33 = 10/30=N9 w2 -11ز ! ا 2/ث ; 3ا Nم= 2.4 = 72/30د,:J #ل ! /BJ# :3ا:9 ه N 3; ,9:I ,/O 5.م ا Gون وO "Iاء و R? ._ ' Rا ا2ا6ة ـ 150ه ,و U"9ـ 200ه ،,ا " 10ه , _ O9ي ا _ ا ,9 U ,:ا2م Iع ` ,ا2ا6ةO9 .ي ا ? Rا `, J RاC _ ! ا 2زع ;G6 3م 2/Iن ! 10 ' _ )أي &/ 9اء 10او 20او 30وه./ا 3; ,` ' ...آ Mة( .ا S7ا _ 2 "9ع ا 0ر ; 3ذ gا2م ; Uك 29م أ ر -و29م أ ر w2و29م أ ر T 6 _"Vت ا2ا 0.35 3و 0.45و 2I 0.20ز R9ا S7ا 2 S6ع أ 0ر ه 3; 2اHول ا :3 27 _ 29 M/م Demand Probability Distribution ___________________________________________ Demand Good Fair Poor 40 0.03 0.10 0.44 50 0.05 0.18 0.22 60 0.15 0.40 0.16 70 0.20 0.20 0.12 80 0.35 0.08 0.06 90 0.15 0.04 0.00 100 0.07 0.00 0.00 ._ اR? U9O9 3_ ا "د اM[ 0 ا"د ا9 I ب27 ا :,J" ! اS 9 ي. وا3 2 اa و د ا29 20 م ةN ا3ف آ2 Revenue Profit = Cost of Lost profit from - - From Sales newspapers Salvage from sale + excess demand آ ع.: ا+ S7 دة ا9 ! زR? f اa _ – ا of scrap papers – "اR ا3; ' = a ا Cا: : انH ,/O ! ح ا , _ ا اةO _ ا (اةO _ ا – د ا, 27 _ ا اآ ! د ا, 27 _ ا اة – د اO _ ا ., 27 _ ا آة %X 29 _ (اةO _ ا .!/ 9 * د ا150 = _ " ا * )د ا50 = S7 دة ا9 ! زR? f اa ا اةO _ ا ( ان, 27 _ ا * د ا200 = R ا3; ' ن د ا2/I ان * ) د ا10 = Cا: آ ع.: ا اة اآ ! د اO _ ا اء د "! ! ا, 3I SH9 آ ة ,/O ا5. هM د ا3 )وه, ا،3 2 اa ا9 I و29 20 _ ة ه اآa ن ا2/9 3اة اO _ ا د اM ن د ا2/I اS7ا 6 YI 5.ه : ر0م ا29 ع2 R9ز2 , اول اHا 28 Cumulative Type of Newsday Probability Probability Random Numbers Assignment Good 0.35 0.35 0.000-0.350 Fair 0.45 0.80 0.351-0.800 Poor 0.20 1.00 0.801-1.000 : ر0م ا29 ع2 S6 _ Cumulative Probability اS7 اR9ز2 3 ول اHوا Random Numbers Assignment __________________________________________________ Demand Good Fair Poor Good Fair Poor 40 0.03 0.10 0.44 0.000-0.030 0.000-0.100 0.000-0.440 50 0.08 0.28 0.66 0.031-0.080 0.101-0.280 0.441-0.660 60 0.23 0.68 0.82 0.081-0.230 0.281-0.680 0.661-0.820 70 0.43 0.88 0.94 0.231-0.430 0.681-0.880 0.821-0.940 80 0.78 0.96 1.00 0.431-0.780 0.881-0.960 0.941-1.000 90 0.93 1.00 1.00 0.781-0.930 0.961-1.000 100 1.00 1.00 1.00 0.931-1.000 :3 2 اa ب ا6م و29 20 ة29 ,` ' 70 آ ة اء Tو- ن2/ ف2 Random Numbers for Type of Day Newsday Type of Random Revenue Lost Profits Salvage Numbers for from from Excess from Sale Daily Demand of Scrap Profit Newsday Demand Demand Sales 1 0.668258 Fair 0.516101 60 12000 - 500 2000 2 0.059141 Good 0.421215 70 14000 - - 3500 3 0.844465 Poor 0.122752 40 8000 - 1500 -1000 4 0.575663 Fair 0.417585 60 12000 - 500 2000 5 0.777212 Fair 0.873137 70 14000 - - 3500 6 0.721669 Fair 0.028883 40 8000 - 1500 -1000 7 0.940940 Poor 0.442408 40 8000 - 1500 -1000 8 0.739749 Fair 0.154498 50 10000 - 1000 500 9 0.322162 Good 0.789384 80 16000 2000 - 3500 10 0.933698 Poor 0.948650 70 14000 - - 3500 29 11 0.682856 Fair 0.462126 60 12000 - 500 2000 12 0.948467 Poor 0.427917 40 8000 - 1500 -1000 13 0.321750 Good 0.436062 70 14000 - - 3500 14 0.576449 Fair 0.852654 70 14000 - - 3500 15 0.469982 Fair 0.664128 60 12000 - 500 2000 16 0.325208 Good 0.551011 80 16000 - 3500 17 0.119710 Good 0.149210 60 12000 500 2000 18 0.526681 Fair 0.992919 90 18000 - 3500 19 0.355738 Fair 0.339435 60 12000 - 500 2000 20 0.734686 Fair 0.231963 50 10000 - 1000 500 244000 8000 2000 4000 11000 أ س, ه1850 2 ه3 2 اa اw2 أن29 20 آ ة و50 و40 ى )اء0آ ة ا ت ا 37000 ! ولH ! ا6 !9 آS 7 ك9 . 29 ,` ' 70 &?ا (م2 ا3; ,` ' 100 و90 و80 و60 :>$ اA /BJ# :4 ل# :3 ا3 6@ اR9ز2 اR9 !" ] 3 2اء اO اSC Daily Demand 0 1 2 3 4 Probability 0.33 0.25 0.20 0.12 0.10 SC %9 ات6 و6 وي9 ! اوMJ ا& ا- م ;ذا و9 ا," Mا ا ] آ.ون ! هG ` ا9 " : I )أي,f92"I تC .AITد و2-2 ون اG را: : I ,C أي.ات6 و10 S7 اRV! و6 ! ع27: ! اG ا2 )وهLead Time م: ز ! ا.(9- ونG ل2'و :3 ا3 6@ اR9ز2 اR9 (&2' و6 Lead Time (Days) 1 2 3 Probability 0.3 0.5 0.2 30 ا ! اول ا20ع إذا آ ن ا Gون اا? 12 3و6ة و C -2ITت ; Rا Gون " ; آ9 3و 6 9أ .U Rا ا Nم 6 .د ,ا 90م ا6 3ث ; ,C : I 3; : Uو, ا62ات ا WC 3و : I %و w2د ا62ات ا O , 27اء ا. 2 ا :M آ ة او2/ ,9ن اHاول ا :, ول " ,9ا S7ا:3 2Cumulative Probability Random Number Probability Demand 0.00 – 0.33 0.33 0.33 0 0.34 – 0.58 0.58 0.25 1 0.59 – 0.78 0.78 0.20 2 0.79 – 0.90 0.90 0.12 3 0.91 – 1.00 1.00 0.10 4 ول " ,9ز ! ا:م:Random Number ا Cumulative Probability Probability Lead Time 0.00 – 0.30 0.3 0.3 1 0.31 – 0.80 0.8 0.5 2 0.81 – 1.00 1.0 0.2 3 آ ة: ا6'fع اول: ا2م ا0ول: ا Gون ا 2-2د 12 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.419225 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :3 ا Gون ا 2-2د 11 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.672281 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا[ :P ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.556692 3ول ا " ,9ا2/9 S7ن 1و6ة. 31 ا2م اا :R ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.179291 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.066128 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا دس: ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.136442 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا :R ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.219630 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع ا0ول ! :Iا Gون 8و6ات ,Hا` .,C RfIT : ا'6ع ا: ا2م ا0ول: ا Gون ا 2-2د 8 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.345517 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :3 ا Gون ا 2-2د 7 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.520493 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :P ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.616346 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 4 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.639711 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا : ا Gون ا 2-2د 2 :و6ات. 32 ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.330888 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا دس: ا Gون ا 2-2د 2 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.949622 3ول ا " ,9ا2/9 S7ن 4و6ة. ) : , 6و(!I6 ا2م ا :R ا Gون ا 2-2د 0 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.640219 3ول ا " ,9ا2/9 S7ن 2و6ة. ) : , 6و(!I6 ; ,9 U 3ا20ع ا[ ! :9 % 3ا Gون و6ث 4 :و6ات ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.315576 3ز ! ا:م 29 2م. ا'6ع ا : ا2م ا0ول: ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.753165 3ول ا " ,9ا2/9 S7ن 2و6ة. ) : , 6و(!I6 ا2م ا[ :3 ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.132686 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.203047 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م اا :R ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.592781 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.641142 3ول ا " ,9ا2/9 S7ن 2و6ة. 33 ا2م ا دس: ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.711578 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا :R ا Gون ا 2-2د 4 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.976901 3ول ا " ,9ا2/9 S7ن 4و6ة. ; ,9 U 3ا20ع ا[ ! :9 % Pا Gون و 9 %ث .: ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.612898 3ز ! ا:م 29 2م. ا'6ع اا !: ا2م ا0ول: ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.940874 3ول ا " ,9ا2/9 S7ن 4و6ة. ) 4 : , 6و6ات( ا2م ا[ :3 ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.830444 3ول ا " ,9ا2/9 S7ن 3و6ة. ) 3 : , 6و6ات( ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.761498 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.823155 3ول ا " ,9ا2/9 S7ن 3و6ة. ا2م ا : ا Gون ا 2-2د 5 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.996509 3ول ا " ,9ا2/9 S7ن 4و6ة. ا2م ا دس: ا Gون ا 2-2د 1 :و6ة. 34 ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.382630 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا :R ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.018751 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع اا ! :9 % Rا Gون و6ث 7 :و6ات. ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.015373 3ز ! ا:م 29 1م. ا'6ع ا:"#$ ا2م ا0ول: ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.599484 3ول ا " ,9ا2/9 S7ن 2و6ة. ) 2 : , 6و6ات( ا2م ا[ ) :3و' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.583797 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :P ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.835045 3ول ا " ,9ا2/9 S7ن 3و6ة. ا2م اا :R ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.362963 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا : ا Gون ا 2-2د 5 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.699827 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا دس: ا Gون ا 2-2د 3 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.089972 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا :R ا Gون ا 2-2د 3 :و6ات. 35 ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.155004 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع ا ! :Iا Gون 3و6ات و6ث 2 :و6ة ; 3ا ,9ا20ع. ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.424699 3ز ! ا:م 29 2م. ا'6ع ا دس: ا2م ا0ول: ا Gون ا 2-2د 3 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.373323 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :3 ا Gون ا 2-2د 2 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.379252 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 11 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.630487 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.584059 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.138283 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا دس: ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.615948 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا :R ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.928577 3ول ا " ,9ا2/9 S7ن 4و6ة. ; ,9 U 3ا20ع ا دس ! :Iا Gون 2و6ات و 9 %ث .: ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.892844 3ز ! ا:م 3ا 9م. 36 ) ,9 Uا آ ة( و Rfا ?] ;- 3ول آ :3 ا 90م ا Gون ا%J ا 2-2د ا"2Oا?3 :I اS7 ا Gون ! ,H ا: ا` S7 ا%J ز! ا"2Oا?3 ا:م 2'2ل ا,7 ا20ع )(1 ا2م ا0ول 12 0.419225 1 ا2م ا[ 3 11 0.672281 2 ا2م ا[ P 9 0.556692 1 ا2م اا R 8 0.179291 0 ا2م ا 8 0.066128 0 ا2م ا دس 8 0.136442 0 ا2م ا R 8 0.219630 0 ,9 Uا20ع 8 4 8 ,C RfIT 0 ا20ع)(2 ا2م ا0ول 8 0.345517 1 ا2م ا[ 3 7 0.520493 1 ا2م ا[ P 6 0.616346 2 ا2م اا R 4 0.639711 2 ا2م ا 2 0.330888 0 ا2م ا دس 2 0.949622 4 2 ا2م ا R 0 0.640219 2 2 ,9 Uا20ع 0 12 0 10,C RV 4 0.315576 2 ا20ع)(3 ا2م ا0ول 0 0.753165 2 ا2م ا[ 3 0 0.132686 0 ا2م ا[ P 10 0.203047 0 ا2م اا R 10 0.592781 2 ا2م ا 8 0.641142 2 ا2م ا دس 6 0.711578 2 ا2م ا R 4 0.976901 4 ,9 Uا20ع 0 2 و'2ل ا,7 12 0 10,C RV 2 ا20ع)(4 ا2م ا0ول 0 0.940874 4 4 ا2م ا[ 3 0 0.830444 3 3 37 0.612898 2 ا2م ا[ P 10 0.761498 2 ا2م اا R 8 0.823155 3 ا2م ا 5 0.996509 4 ا2م ا دس 1 0.382630 1 ا2م ا R 0 0.018751 0 ,9 Uا20ع 0 و'2ل ا,7 17 0 7 10,C RV 0.015373 1 ا20ع)(5 ا2م ا0ول 0 0.599484 2 ا2م ا[ 3 10 0.583797 1 ا2م ا[ P 9 0.835045 3 ا2م اا R 6 0.362963 1 ا2م ا 5 0.699827 2 ا2م ا دس 3 0.089972 0 ا2م ا R 3 0.155004 0 ,9 Uا20ع 3 2 و'2ل ا,7 9 3 2 10,C RV 0.424699 2 ا20ع)(6 ا2م ا0ول 3 0.373323 1 ا2م ا[ 3 2 0.379252 1 ا2م ا[ P 11 0.630487 2 ا2م اا R 9 0.584059 1 ا2م ا 8 0.138283 0 ا2م ا دس 8 0.615948 2 ا2م ا R 6 0.928577 4 ,9 Uا20ع 2 و'2ل ا,7 11 2 0 10,C RV 0.892844 ا:g1 ا20ع اS7 د ا 90م ا6 3ث ;: U ا ) :ا S7ا(R? f 1 4 0 0 2 12 2 4 3 12 1 2 4 17 2 7 5 9 1 2 6 11 0 0 ا 2 Hع 65 6 15 38 3 . م90 ! ا14.3% اي: U; ث6 م9 أ6 ه ك .R? f اS7 ا, 23.07% ة أي6 و15 3 ه: I % وWC 3ات ا62د ا 3ات ا62 ا ! د ا3ة وه6 و10.83 2اء اO , 27 ات ا62 د اw2 . UC %9 :-/D)) ا4 /BJ# 5 ل# "د3 6@ أR9ز2 ا. 29 "ه9 3 اG أ,`^ د أرw2 9 I !9 ا ز6 أ99 :ولH 7"9 29 !? Gا Number of Customers/Day 8 10 12 14 Probability 0.35 0.30 0.25 0.10 :3 ا3 6@ اR9ز2 اS6 ,`^ر0ي د ! اO9 ن2 زMآ Number of Loafs/Customer 4 8 12 16 Probability 0.4 0.3 0.2 0.1 . 29 "ه ا ز9 3 ا,`^ر0 د اw2 د6 وM م9 أ, 9و9 3 آ6 :M ا م29 M/ !? G( "د ا1) ول- " Number of Customers CDF Random Number 8 0.35 0.01 - 0.35 10 0.65 0.36 - 0.65 12 0.90 0.66 – 0.90 14 1 0.91 - 1 ن2 زM/ ,`^ر0( "د ا2) ول- " 39 Number of Loafs CDF Random Number 4 0.40 0.01 - 0.40 8 0.70 0.41 - 0.70 12 0.90 0.71 – 0.90 16 1 0.91 - 1 8 !? G د اH (1) ول- ! وR = 0.25 :ول0م ا2ا Customer Number R Number of Loafs 1 0.01 04 2 0.93 16 3 0.70 08 4 0.66 08 5 0.74 12 6 0.79 12 7 0.47 08 8 0.68 08 Total = 76 8 !? G د اH (1) ول- ! وR = 0.18 :3 [م ا2ا Customer Number R Number of Loafs 1 0.88 12 2 0.07 04 3 0.99 16 4 0.51 08 5 0.04 04 6 0.01 04 7 0.43 08 8 0.60 08 Total = 64 10 !? G د اH (1) ول- ! وR = 0.59 :P [م ا2ا 40 Customer Number R Number of Loafs 1 0.55 08 2 0.64 08 3 0.10 04 4 0.61 08 5 0.22 04 6 0.85 12 7 0.42 08 8 0.01 04 9 0.98 16 10 0.05 04 Total = 76 8 !? G د اH (1) ول- ! وR = 0.20 :R م اا2ا Customer Number R Number of Loafs 1 0.11 04 2 0.23 04 3 0.68 08 4 0.41 08 5 0.96 16 6 0.48 08 7 0.11 04 8 0.59 08 Total = 60 8 !? G د اH (1) ول- ! وR = 0.11 : م ا2ا Customer Number R Number of Loafs 1 0.10 04 2 0.25 04 3 0.01 04 4 0.93 16 5 0.70 08 41 6 0.66 08 7 0.74 12 8 0.79 12 Total = 64 دw2 إذا. `^ ر76,64,76,60,64 :3 م ه9 أ, 3; , ا,`^ر0ا ;ن د أ./وه . `^ ر68 2 ه,`^ر0ا :( اء-إ :3 آ,9 " اول- ن2/ ,9آ ة او اء ا-@ م29 M/ !? G د ا,9 " ولNumber of Customers/Day Probability Cumulative Probability 8 0.35 0.35 10 0.30 0.65 12 0.25 0.90 14 0.10 1.00 ن2 زM/ ,`^ر0 د ا,9 " ولNumber of Loafs/Customer Probability Cumulative Probability 4 0.4 0.4 8 0.3 0.7 12 0.2 0.9 16 0.1 1.0 :ول0م ا2ا إذا د0.35 و0 ! %Jا ا.أن ه و0.125002 3?ا2O %J رS !? G د ا-2 8 = ول0م ا2 !? Gا 8 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number Number of Loafs 1 0.747727 12 2 0.165930 04 3 0.807279 12 42 4 0.691822 08 5 0.332073 04 6 0.865662 12 7 0.954414 16 8 0.605033 08 Total 76 `^ ر76 = ول0م ا2 , ا,`^ر0إذا د ا :3 [م ا2ا إذا0.65 و0.35 ! %Jا ا.أن ه و0.436581 3?ا2O %J رS !? G د ا-2 10 = 3 [م ا2 !? Gد ا 10 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number Number of Loafs 1 0.795704 12 2 0.191331 04 3 0.326339 04 4 0.760580 12 5 0.232169 04 6 0.766908 12 7 0.897992 12 8 0.498371 08 9 0.593898 08 10 0.917927 16 Total 92 `^ ر92 = 3 [م ا2 , ا,`^ر0إذا د ا :P [م ا2ا إذا1.00 و0.90 ! %Jا ا.أن ه و0.975134 3?ا2O %J رS !? G د ا-2 14 = 3 [م ا2 !? Gد ا 14 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number 43 Number of Loafs 1 0.500345 08 2 0.377338 04 3 0.497917 08 4 0.560237 08 5 0.742156 12 6 0.066540 04 7 0.953874 16 8 0.048342 04 9 0.133688 04 10 0.145730 04 11 0.313932 04 12 0.656628 08 13 0.146369 04 14 0.688054 08 Total 96 `^ ر96 = P [م ا2 , ا,`^ر0إذا د ا :R م اا2ا إذا0.90 و0.65 ! %Jا ا.أن ه و0.852771 3?ا2O %J رS !? G د ا-2 12 = 3 [م ا2 !? Gد ا 12 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number Number of Loafs 1 0.102021 04 2 0.352606 04 3 0.739246 12 4 0.278503 08 5 0.495604 08 6 0.471064 08 7 0.214966 04 8 0.784797 12 9 0.922574 16 44 10 0.011573 04 11 0.530562 08 12 0.811989 12 Total 100 `^ ر100 = R م اا2 , ا,`^ر0إذا د ا : م ا2ا إذا0.90 و0.65 ! %Jا ا.أن ه و0.676495 3?ا2O %J رS !? G د ا-2 12 = 3 [م ا2 !? Gد ا 12 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number Number of Loafs 1 0.113377 04 2 0.682001 08 3 0.860924 12 4 0.616596 08 5 0.670505 08 6 0.996726 16 7 0.203282 04 8 0.616869 08 9 0.337997 04 10 0.273178 04 11 0.832140 12 12 0.575714 08 Total 96 `^ ر96 = م ا2 , ا,`^ر0إذا د ا 2 ه29 , ا,`^ر0 د اw2 إذا Average Number of Loafs = 76 + 92 + 96 + 100 + 96 460 = = 92 5 5 . 29 `^ ر92 ز إادMf;0 ! اg.و 45 #ل # :6آة ;م : (M,N) >$4 `ض ان ا 2ى 11 (M) !9Gو6ة و;ة ا ا (N) ,"-ه 5 3أ 9م 9 .ان :ر ام ا آ ة w2ا62ات ا ,:ود ا 90م ا 9 3ث ; .: Uا2ز R9ا@3 6 "د ا62ات ا 3; , 27ا2م H 7"Iول ا :3 Random Numbers Cumulative Probability Probability Demand 0.00 – 0.10 0.10 0.10 0 0.11 – 0.35 0.35 0.25 1 0.36 – 0.70 0.70 0.35 2 0.71 – 0.91 0.91 0.21 3 0.92 – 1.00 1.00 0.09 4 ز ! ا:م 90م & ا2ز R9ا :3 Random Numbers Lead Time Probability Cumulative Probability 0.00 – 0.60 0.6 0.6 1 0.61 – 0.90 0.9 0.3 2 0.91 – 1.00 1.0 0.1 3 أ;ض ان و RVا ,9 U 3; RV2I ,7ا2م ا 0و M:Iآ ه2 د ! Gا:م 6 .آ3 ا Nم ة 5دورات واو -ا 27ب. ا :M `ض أ أ 2 eى 11 !9Gو6ة و C -2ITت " M9ا Gون ) ا [ ل ! _9ا /ب ا :ر ; 3ه 5.اا( ,9 اورة ا0و: ا2م ا0ول :ا Gون ا 2-2د 11و6ة 2 .ر2O %Jا? 9 3ا 0.664078 S7و ! اHول ا0ول Hا S7ه 2 2و6ة. ا2م ا[ :3ا Gون ا 2-2د 9و6ات 2 .ر2O %Jا? 9 3ا 0.607454 S7أي ا 2 S7و6ات. ا2م ا[ :Pا Gون ا 2-2د 7و6ات 2 .ر2O %Jا? 9 3ا 0.607326 S7أي ا 2 S7و6ات. 46 ا2م اا :Rا Gون ا 2-2د 5و6ات 2 .ر2O %Jا? 9 3ا 0.906827 S7أي ا 3 S7و6ات. ا2م ا :ا Gون ا 2-2د 2و6ات 2 .ر2O %Jا? 9 3ا 0.526820 S7أي ا 2 S7و6ات. ; ,9 U 3اورة ا0و :ا Gون ا 2-2د 0و6ة 11 ,C RV2I .و6ة .ز ! ا:م 9د ! اHول ا[ S 3ر2O %Jا? 0.880703 3أي ز ! ا:م 29 2م. اورة ا[ :, ا2م ا0ول :ا Gون ا 2-2د 0و6ة 2 .ر2O %Jا? 9 3ا 0.017586 S7أي اS7 0و6ات. ا2م ا[ :3ا Gون ا 2-2د 0و6ات 2 .ر2O %Jا? 9 3ا 0.312635 S7أي ا 1 S7و6ات. ) 1 :و6ة ( ا2م ا[ :Pا Gون ا 2-2د 11و6ات 2 .ر2O %Jا? 9 3ا 0.656352 S7أي ا 2 S7و6ات. ا2م اا :Rا Gون ا 2-2د 9و6ات 2 .ر2O %Jا? 9 3ا 0.037722 S7أي ا 0 S7و6ات. ا2م ا :ا Gون ا 2-2د 9و6ات 2 .ر2O %Jا? 9 3ا 0.860003 S7أي ا 3 S7و6ات. ; ,9 U 3اورة ا[ :,ا Gون ا 2-2د 6و6ة 5 ,C RV2I .و6ات .ز ! ا:م 9د ! اHول ا[ S 3ر2O %Jا? 0.808951 3أي ز ! ا:م 29 2م. اورة ا[ [:, ا2م ا0ول :ا Gون ا 2-2د 6و6ة 2 .ر2O %Jا? 9 3ا 0.921377 S7أي اS7 4و6ات. ا2م ا[ :3ا Gون ا 2-2د 2و6ات 2 .ر2O %Jا? 9 3ا 0.858579 S7أي ا 3 S7و6ات. ) 1 :و6ة ( ا2م ا[ :Pا Gون ا 2-2د 5و6ات 2 .ر2O %Jا? 9 3ا 0.989726 S7أي ا 4 S7و6ات. 47 ا2م اا :Rا Gون ا 2-2د 1و6ات 2 .ر2O %Jا? 9 3ا 0.528333 S7أي ا 2 S7و6ات. ) 1 :و6ة ( ا2م ا :ا Gون ا 2-2د 0و6ات 2 .ر2O %Jا? 9 3ا 0.784676 S7أي ا 2 S7و6ات. ) 2 :و6ة ( ; ,9 U 3اورة ا[ [ :,ا Gون ا 2-2د 0و6ة 11 ,C RV2I .و6ات .ز ! ا:م 9د ! اHول ا[ S 3ر2O %Jا? 0.059002 3أي ز ! ا:م 29 1م. اورة اا ":, ا2م ا0ول :ا Gون ا 2-2د 0و6ة 2 .ر2O %Jا? 9 3ا 0.838344 S7أي اS7 3و6ات. ) 3 :و6ة ( ا2م ا[ :3ا Gون ا 2-2د 11و6ات 2 .ر2O %Jا? 9 3ا 0.643672 S7أي ا 2 S7و6ات. ا2م ا[ :Pا Gون ا 2-2د 9و6ات 2 .ر2O %Jا? 9 3ا 0.425546 S7أي ا 4 S7و6ات. ا2م اا :Rا Gون ا 2-2د 5و6ات 2 .ر2O %Jا? 9 3ا 0.034398 S7أي ا 0 S7و6ات. ا2م ا :ا Gون ا 2-2د 5و6ات 2 .ر2O %Jا? 9 3ا 0.441595 S7أي ا 2 S7و6ات. ; ,9 U 3اورة اا " :,ا Gون ا 2-2د 3و6ة 8 ,C RV2I .و6ات .ز ! ا:م 9د ! اHول ا[ S 3ر2O %Jا? 0.224523 3أي ز ! ا:م 29 1م. اورة ا :, ا2م ا0ول :ا Gون ا 2-2د 3و6ة 2 .ر2O %Jا? 9 3ا 0.696218 S7أي اS7 2و6ات. ا2م ا[ :3ا Gون ا 2-2د 9و6ات 2 .ر2O %Jا? 9 3ا 0.883172 S7أي ا 3 S7و6ات. 48 أي0.785434 S7 ا9 3?ا2O %J ر2 .ات6 و6 د2-2 ون اG ا:P [م ا2ا .ات6 و3 S7ا أي0.169593 S7 ا9 3?ا2O %J ر2 .ات6 و3 د2-2 ون اG ا:R م اا2ا .ات6 و1 S7ا أي0.256014 S7 ا9 3?ا2O %J ر2 .ات6 و2 د2-2 ون اG ا: م ا2ا .ات6 و1 S7ا د9 م: ز ! ا.ات6 و10 ,C RV2I .ة6 و1 د2-2 ون اG ا:, اورة ا,9 U 3; .م29 1 م: أي ز ! ا0.178084 3?ا2O %J رS 3 [ول اH! ا ... ا./وه :3 ول اH ا3; و ا Days Until Beginning Ending Cycle Day Inventory Demand Inventory 1 2 3 4 5 Shortage Order Quantity Quantity Order Arrives 1 11 2 9 0 - - 2 9 2 7 0 - - 3 7 2 5 0 - - 4 5 3 2 0 - - 5 2 2 0 0 11 2 1 0 0 0 0 - 1 2 0 1 0 1 - 0 3 11 2 9 0 - - 4 9 0 9 0 - - 5 9 3 6 0 5 2 1 6 4 2 0 - 1 2 2 3 0 1 - 0 3 5 4 1 0 - - 4 1 2 0 1 - - 5 0 2 0 2 11 1 1 0 3 0 3 - 0 2 11 2 9 0 - - 3 9 4 5 0 - - 4 5 0 5 0 - - 5 5 2 3 0 8 1 1 3 2 1 0 - 0 2 9 3 6 0 - - 3 6 3 3 0 - - 4 3 1 2 0 - - 49 5 2 1 1 0 53 85 8 10 1 .ة6 و3.4 = 85/25= 29 ,: ات ا62 اw2 . م90 ! ا%20 م أي9 أ5 : U; ث6 3 م ا90د ا .3/ اS7 ! ا%15.09 ( اي8/53) M/O9 :ا : ا ل- B آ:7 ل# ! ر أن:I ,: اUI ! .! ا ل Y يHI ت ا زلT2 ا6 أI ر أن:I U آ ا. ل- ! ا20% ! ا ء و%U 80% M/O9 ! _ ا بUC 9 ل- ! ا40% w:; !/ ! ا ل وU? 7 ! :9 UC 9 3I ! ا ء ا70% R9 & ا ء7"9 ي.ر أن ا ا:I ,: اUI ! f9 أ.gن ذ2"`9 U2C 9 !9.ا 10 و7 ! ويR9ز2I f9 اR9 ل- g ل ذ9 ر22 و18 ! ويR9ز2I w2 ر:; ل6@ ` ا29 TG 15 إ10 ! 37YI ,2 أن اW إذا. ل9ر .ل2I م9 أ5 "د3 2 اUد :M ا :, ا,9 " اول ا- ن2/ ,2 وره اGI 3 د ا زل ا,9 " ولNumber of Houses Probability CDF Random Number 10 1/6 0.1666 0.00000-0.16666 11 1/6 0.3332 0.16667-0.33320 12 1/6 0.4998 0.33321-0.49980 13 1/6 0.6664 0.49981-0.66640 14 1/6 0.8330 0.66641-0.83300 15 1/6 1.0000 0.83301-1.00000 SC ا,9 " ولWho Answer Probability CDF Random Number Female 0.8 0.8 0.00 - 0.80 Male 0.2 1.0 0.81 - 1.00 ! ا لR;I M ا[ هW إذا آ,9 " ول50 Female Donate? Probability CDF Random Number Yes 0.7 0.7 0.00 - 0.70 No 0.3 1.0 0.71 - 1.00 ! ا لR;9 M هM- إذا آ ن ر,9 " ولMale Donate? Probability CDF Random Number Yes 0.4 0.4 0.00 - 0.40 No 0.6 1.0 0.41 - 1.00 [0;"& اI ي. ا ا,9 " ولFemale Donation Probability CDF Random Number 18 0.2 0.2 0.00 - 0.20 19 0.2 0.4 0.21 - 0.40 20 0.2 0.6 0.41 - 0.60 21 0.2 0.8 0.61 - 0.80 22 0.2 1.0 0.81 - 1.00 M-;"& ا9 ي. ا ا,9 " ولMale Donation Probability CDF Random Number 7 0.25 0.25 0.000 - 0.250 8 0.25 0.50 0.251 - 0.500 9 0.25 0.75 0.501 - 0.750 10 0.25 1.00 0.751 - 1.000 (ولH اf9T 6 ,?ا2O" م اJر0ون اT ف2 :,N6 ) آ ة م2ع ا2 H ول ا- ن2/ اا R;9 %آ R;9 Mه SC ا لG ا د ا زل م2ا 21 %" [ا 1 15 ول0ا 8 %" M-ر 2 19 %" [ا 3 20 %" [ا 4 18 %" [ا 5 51 ا2م ا[ 13 3 ا2م ا[ 11 P 6 ا[ "% 18 7 ا[ "% 19 8 ا[ "% 19 9 رM- "% 7 10 ا[ "% 22 11 ا[ T 0 12 رM- "% 7 13 ا[ "% 18 14 رM- T 0 15 ا[ T 0 1 ا[ T 0 2 ا[ T 0 3 رM- "% 10 4 ا[ T 0 5 ا[ "% 20 6 ا[ T 0 7 ا[ "% 22 8 ا[ T 0 9 ا[ "% 7 10 ا[ "% 19 11 ا[ "% 18 12 ا[ "% 21 13 ا[ "% 22 1 ا[ T 0 2 ا[ "% 18 3 ا[ "% 18 4 ا[ "% 20 5 ا[ "% 20 52 196 139 ا2م اا 10 R ا2م ا 14 6 رM- T 0 7 ا[ T 0 8 ا[ "% 20 9 رM- T 0 10 ا[ "% 22 11 رM- T 0 1 ا[ T 0 2 رM- "% 7 3 ا[ "% 18 4 رM- "% 7 5 ا[ "% 21 6 ا[ "% 19 7 ا[ "% 19 8 ا[ "% 20 9 ا[ T 0 10 ا[ "% 20 1 ا[ "% 22 2 ا[ T 0 3 رM- T 0 4 ا[ "% 22 5 رM- T 0 6 رM- T 0 7 ا[ T 0 8 ا[ T 0 9 رM- "% 8 10 ا[ "% 20 11 ا[ "% 19 12 ا[ "% 21 53 118 131 13 ا[ "% 19 14 ا[ T 0 131 ; 5 ,9 U 3ا 9م W" -ا 715 ,2ر 9ل أي د Uا 3; 3 2ا 143 w2ر 9ل. :!9 Iأ S6ا , :ا) ,9Nا@ 148.5 , -ر 9ل(. 54 : ا ا :J1ت اH )ام$'_ اآة : Excel )ام$'_ ز! إ4 # 1.ا :3 اR9ز2 اU 3ل ا2'2! ا 2 3 4 , أز,9 " Excel ف م2 Time between arrivals 1 5 6 7 8 Probability 0.125 0.125 0.125 0.125 0.125 0.125 0.125 0.125 :, ا, ` ا3; ا ت آM أد%X CDF 3 6@ اR9ز2 ا,ن دا2آ Y ,/ ا%:ول وا0د ا2 " ا3; CDF 3 6@ اR9ز2 ا, دا%J ن2/I أنSH9 -1 .3 [د ا2 " ا3; 3?ا2O"ا . ( ة1.00 ) I 3 ا, : 3UI ( و0 ) ` ! ا3 6@ اR9ز2 ا, دا%J أI -2 (C2 [ ) , ا, ا3; 3 اM 3?ا2O" اY %J 2I د ا اد2 " ا3; -3 = VLOOKUP( RAND(), RANGE OF SAMPLING TABLE, 2) [ 3; و,9 " ول ا- &; ي أد. ل اH اRANGE OF SAMPLING TABLE P6 . U ( 0,1) 2I 3 اRAND() , إا ا6T .$A$2:$B$9 2 ل هH ا ا.ه .ب27 , %H اي د2 C2 ,( اd) S -4 55 :0l ل# R9ز2 اS6 , , أز2I Service Times 1 2 3 Probability 0.01 0.020 0.30 4 5 6 0.25 0.10 0.05 :, ا, ` ا3; ا ت آM أد%X 3 6@ اR9ز2 ا,ن دا2آ . ا [ ل ا3; ات آ27آرا :; ت.ز4 # 1.ا :. 6D از! ا# 1. ا-1 وإ اف " ري% 165 w2 "C ,ز2 د2" g ا," - بC ال2C`ض ان أ .% بJ0 , : ب7ال ا2C ! أ, 2I 9 .% 5 :3 اM O , `' 3; : دوال3 ه ا ,J number ب ا"د:I , اا5. وه.ROUND( number, num_digits) , اا-1 .num_digits 56 هةO 37"I , اا5. وه.NORMINV(probability,mean,standard_dev) , اا-2 6T .standard_dev وإ اف " ريmean w2 3"C R9ز2I & 3?ا2O Y ! .RAND() , ! اا2I probability ان . U ( 0,1) 37"I 3 واRAND( ) , اا-3 .!" ا3?ا2O" اY هاتO ا"د ا اد ! ا2I R7 , اd :(ى0* اC) . 6D از! ا# 1. ا-2 Data وTools ا ر%X ، U 3?ا2O" اY , J 2I اد9 3 ا,د ا6 O , `' 3; 3 آAnalysis 57 ة.; اUN; ة.; اUN; .Random Number Generation ر 58 R7إ ر أي 2Iز ! R9ا, ? : و Sا2ز R9ا ر 2 YIا; .ا ت ; [ 2ز R9ا2/I 3"7ن ا ;.ة 59 P6أد " 1د ا Yات )أو ا 0ة( ا9 3اد 2Iه ،و " 20د ا Oهات ا , 27 و; 3ا " Parameters %ا :ا , :ا (Default) ,6:وه w2 0 3و 1 zاف ا " ري2 b M % .اة ا"2Oا? Random Seed ,آ أ ا, ,9 ا@د ل $A$2و ]9ا :3 60 2أي د ! ا Oهات ا2I RI 3ز2O Y R9ا? 3م ا ;.ة وا 7"I 3ا@ ر ! 2I 7ز "9ت 3; .ا` Mا 2ف رس " ا7ق 2 Oهات 0ي 2O Yا?.3 61 Excel )ام$'_ آة/ /#أ :B 4#4 ! أو1آ# آة# :1 ل# P ,/ ا3; U"fI 3 اS" د ا9 I ,/I 2IوT اg" اR !? / آ ت6 ا9I 80 S2I ,/ ا. I زجC 2 وه9 دورY9 g" ?! ان اG 362I 3/ , وIT ! تR HI " ., 40 ! W : آ,/ ا,b"I ,آOا ;ن ا.U وg , g" 3 2 اS7 3 اR9ز2ن ا2 آ,/ ا Demand 0 1 2 3 4 5 Probability 0.1 0.15 0.20 0.30 0.20 0.05 مNا ا.آ ة ه Excel ف م2 :, V2 ا9 ا3; 3 اM وأدExcel ! , `' a;أ 1) A1 => Number of Days to sell 40 items 2) A4 => Day 3) B4 => Demand 4) C3 => Cumulative 5) C4 => Demand 6) A5 = 1 7) E4 => CDF 8) F4 => x 9) E5:E10 = 0 , 0.1 , 0.25 , 0.45 , 0.75 , 0.95 10) F5:F10 = 0 , 1 , 2 , 3 , 4 , 5 11) B5 = VLOOKUP(RAND( ),$E$5:$F$10,2) 12) C5 = B5 13) A6 = IF(C5<40,A5+1,” ”) 14) B6 = IF(C5<40,VLOOKUP(RAND(),$E$5:$F$10,2),” ”) 15) C6 = IF(C5<40,B6+C5,” ”) 16) A7:A45 = A6 17) B7:B45 = B6 18) C7:C45 = C6 19) D1= MAX(A5:A45) 62 :,N6ا %Uا 3"9 M`q Aإ ر ا ,ا S H 3ا %Uو( 6 U ا Hل. ;] ا ` ,ا , ا ر D1وا wYVا ` ح ) Y; (F9ا 3; %:ا 0ة Aو Bو Cوآ g.اD1 , وا0ة 37"Iد ا 90م از MH .g , 40 R ,ا %:ا 3; ,HIا" D1 ,د 21 , HIوأو -ا w2وا 5.U !9ا" ,وأو6 -ود .%95 ,:X =$# /4ت اآة _')$ام : Excel wYfا ` ح )2:9 (F9م Excelدة 6ب '` ,ا" Mو ! ]9ه.ا إ-اء 9- آ ة ; 3آ Mة. " اeآ ! 2 Mذج ا آ ة M/Oا 27ب2: ،م -اء ا 2ذج د ! ا ات وه.ا ا"د %H6 "9ا" ,ا 27ب : M/س ! 9 :ا@داء ،و P6أن ا آ ة HIى / @ &; S 6ن أ .أ H6م ت آة Iا bت MاThف ! ا `دات. ا27ة ا , 3; ,ا آ ة ه/I 3ار إ-اء ا 2ذج ة bت ! ا ات و]? MHI ا 9ا2 I 3ى 9 :ا@داء ا اد ، U Iو`ض ا /I 150 9ارا 2ذج 63 U وWorkbook M "ة ! د; ا9- Worksheet , `' , 27 ! ا ?] ا9GIو :, ` ا, 3 م2: .Simulation .insert wYf .1 .M "ة ; ا9- , `' فV أExcel أن6 Worksheet هة رN ا, ? : ! ا.2 .Format wYf .3 .Worksheet wYf هةN ا, ? : ا3; .4 .Rename wYf , ? : ا3; و.5 .3'0 ا%@ ل اSimulation S/; راa' ا,Jر2 ا% ان ا6 .6 .Enter wYf .7 .3 ة27 وأ ! اw:; U I " M " د; ا3; , , `' د2- و, 6 3; :,N6 , ?! ! ا150 إ1 ! مJر0 اM Simulation ه3ة ا9H ا, ` ا3; :3 اM/O ا3; آA3 :3 آI ذا150 إ1 ! 9! ا/ 9و .Enter wYV واA3 , ا3; (1) ,و0 ا, : اS أآ.1 .A3 , ا ر ا.2 .Series , ? : ! ا%X Fill , ? : ا3; %X Edit wYV ا.3 64 .150 , : اStop value , J M وادSeries in Columns ه ا رN ا وق ا3; .4 .OK wYV ا.5 .150 6 مJر0 A3 W I 9 اI ذاExcel :1.ا د,9 " 9 . : ه6 3 ا,:97 Demand ذج2 ي ا2 I 3 ا, ` ا3 M"` ا.U Demand ا ة, ` ا3; D1 , ا3; 3 ا, : أي ا,"7J 40 R م90ا :3 ا B3 , ا3; , ا,Y اM .1 =’Demand’!D1 .B152 6 وA3 لH ا ر ا.2 .Data wYV ا.3 .Table wYV هة اN ا, ? : ا3; .4 .Column input cell 3; A1 M هة ادNة ا.; ا3; .5 .OK wYV ا.6 ., ` ب ا6 @ دةF9 wYV ا.7 M"` ا تM I ضY %: اW[ 3/ و, ` ب ا6 " د9 F9 wYf M ا آ6 :3 ا .B152 6 وB3 لH ا ر ا.1 .Edit wYV ا.2 .Copy wYV ا.3 .Edit wYV ا.4 .Paste Special wYV ا.5 .Values wYV ا.6 .OK wYV ا.7 .Enter wYV ا.8 65 ., ` ب ا6 دةYIT , X مJ ارB د2 " ا3; %: اa I ا./وه :3 ا ت آW[ اى,:9C ه ك:,N6 .Tools wYV ا.1 .Options wYV هة اN ا, ? : ا3; .2 .Calculation wYV هة اNة ا.; ا3; .3 .Automatic Except Tables ا ر.4 .OK wYV ا.5 :, ا, ` ] اIو 66 :3 اM " Days Y ,? 6@ ا ` ت اS 3/ :, ة ا@ رات ا.; UN; ة.; اUN; Descriptive Statistics ر 67 ا`ا^ ت آ ه ]; ! 2ا :3 اhن ا` ,Vأن w2د ا 90م اTز g , 40 R ,ه µ = 16 3أي H 0 : µ = 16 H1 : µ ≠ 16 68 :3 آg ذM " وt = ( µˆ − µ0 ) se ( µˆ ) ,? 6@ ا-2 ,V` ا5.@ ر ه 1) C19 => t 2) C20 => p-value 3) D19 = (E3-16)/E4 4) D20 = TDIST(D19,20,2) :, ة ا.; ا3; آ :, ة ا.; ;] اOK wYVا 69 ان ( " أوP ( t ≥ 0.34075 ) = 0.7368 أي أن0.7368 ويI p-value ان اـ6T . α = 0.05 ,9` ا,V`; اT ; α = 0.05 ! أآp-value اـ, J )ام$'_ Single Channel Queue ) اا9 ر اC آة# :2 ل# :Excel aV2 2 ا ت آ هM وأدExcel 3; ة9- , `' a;ا 70 " إد ل ا ت ا ,:و ` wYfح ]I F9ا ` ,ا , wYfا /ر ` ح "I F9د 6ب ا ` ,و/Iر ا `., 71 آ ة و 3; ]Iآ Mة ?] . ا [ ل ا3; ت آV; اء وأ- إ21 م "دN داء0 ا9 : MH :Excel )ام$'_ . ا#)$/ B آة أ) و# :3 ل# :M/O ا3; aV2 2 آ هA1:F6 9 ا3; ا تM وأدExcel 3; ة9- , `' a;أ :aV2 2 آ ه, ا ت اM اد%X 1:104 مJر0 اG1:G104 9 ا3; Mأد H3=> =VLOOKUP(RAND(),$A$3:$B$6,2) I3=> =H3 I4=> =I3+H4 J3=> =I3 J4=> =IF(L3<=I4,I4,"") J5=> =IF(AND(MAX(L$3:L4)<=MAX(O$3:O4),MAX(L$3:L4)>=I5),MAX(L$3:L4),IF(MAX(L$3:L4)<=I 5,I5,"")) K3=> =VLOOKUP(RAND(),$C$3:$D$6,2) K4=> =IF(J4="","",VLOOKUP(RAND(),$C$3:$D$6,2)) L3=> =J3+K3 L4=> =IF(J4="","",K4+J4) M4=> =IF(J4="",I4,"") M5=> =IF(J5<>"","",IF(AND(MAX(L$3:L4)>MAX(O$3:O4),MAX(O$3:O4)>=I5),MAX(O$3:O4),IF(MAX (L$3:L4)>I5,I5,""))) N4=> =IF(M4="","",VLOOKUP(RAND(),$E$3:$F$6,2)) O4=> =IF(M4="","",M4+N4) P3=> =IF(J3<>"",J3-I3,M3-I3) E10=> =SUM(K3:K102) E11=> =SUM(N3:N102) E12=> =SUM(P3:P102) E14=> =E10/MAX(L3:L102) 72 E15=> =E11/MAX(O3:O102) E16=> =E12/MAX(G3:G102) , ل ا/T;] ا :, ا, ` ] اI F9 ` حwYf 73 Oهة اى: :!9 Iأو 9 : -ا0داء .Uا ا 2ذج وأ ; Vت آ ; 3ا [ ل ا . 74 #ل ! /BJ# :4ا)$'_ 9ام :Excel أد Mا ت آ ه 3; aV2 2ا /0ل ا :, ; UNا ?] ا :, Iر:!9 ^ (1د ا _ اU9O9 3 ? Rا _ 29 ,` ' 40 ! 29و100 6 ' ` 9G ) 29 ,دة _ ' 10آ Mة ( و6د ا"د ا" M[ 0د ا R? U9O9ا _ . 29 75 _ ا3 3; (2آM aا و ! ,ا وTت ا ,:أ-ي ا آ ة 50ة وأو -ا2ز R9ا@3 6 ;.Net Profit 3 3; ^ (3ا2ز "9ت ا@ , 6ا ،,:وأ-ي HIرب إ 3 ,; O/ا 2ذج. #ل # :5آة ;م )$'_ (M,N) >$4ام : Excel ا /0ل ا ,:9C aV2I , آ ة Nم ا !9Gا .آ2ر ; [ 3ل 2 6اExcel ,7 76 #ل :6آ - Bا ل: Iأ 6ا T2ت ا زل HIي Y ! ا ل UI ! .ا :I ,:ر أن ! _ ! UC 9ا ب ! %U 80% M/O9ا ء و ! 20%ا -ل .آ ا:I Uر أن ! 70%ا ء ا ! U? 7 ! :9 UC 9 3Iا ل و ! 40% w:; !/ا -ل ا2"`9 U2C 9 !9.ن ذ .gأ UI ! f9ا :I ,:ر أن ا ا.ي &7"9ا ء R9 2Iز 20 w2 3"C R9ر 9ل وإ اف " ري 3ر 9ل ذ - gل R9ا2I f9زR9 10 w2 3"Cر 9ل وإ اف " ري 2ر 9ل) .إذا Wأن ا 10 ! 37YI ,2إ ` 29 TG 15ا@ 6ل( ;:ر w2د) Uا 3;) (3 2ز 9رة "د G 200ل(. ا :M أد Mا O , `' 3; 3 77 Hي ا /ة 200و MHا ?] ! ,Hا آ ة Hأن ا R HI ,2 ! 233و 242ر 9ل 29و 6ل . 95% 78 Iر:!9 (1أ-ي ا [ ل ا Yآ 2 ,ى ا Gون اMaximum Inventory %N0 Levelوا , /ا " د Reorder Quantity UC 3; (2آ Mإ-اء أو w2 -ا62ات ا ! ,Jا Gون ود ا 90م ا6 3ث ;U :ود ا62ات ا ., J (3أو -ا2ز "9ت ا@ / , 6ت ا 3; , 27ا`:ة ) (2ا ,:وأ ا` Vت ا ., 79 ا اا !: ) 4أرم J2ا : ; 3ه.ا ا` 2 Mف "ض و 60 R9 M/Oا7ق ا 2 ,أر Jم 2Oا?, وذ0 gن 2Iا0ر Jم ا"2Oا? ,آ رأ 3; 9ا` 2ل ا - %U ,:ا ; 3إ-اء ا آ ة. Vا 2 R9ا0ر Jم ا"2Oا? ,ه ه 7@ w:; 2ء ;/ة ! ا7ق ا 3; , ا ت او ,9وا ت ا ,hواI 3م Cق 27رة -ا و2ارز ت ":ة 2 ا0ر Jم وا Yات ا"2Oا? ,وا 3ا' , Wا2Hدة و 37"Iأاد و Yات 2Oا?, ذات ,J2X2آة. 0اص ارم اJ.ا : ? , U ,وه3 أي " ! ,ا0ر Jم ا"2Oا? SH9 R1 , R2 ,..., ,ان !' : Iإ6 ا2ز R9ا وي وا@:ار .آ Mر2O %Jا? Ri 3ه 2رة ! ! , 2 ,: , 2Iز R9وي 0 ! M:و 1أي ان دا ,ا ,; [/ا@ RI & , 6ا :,Y 1, 0 ≤ x ≤ 1 f ( x) = 0, otherwise وا U 3ا M/Oا :3 1.2 1 0.8 )f(x 0.6 0.4 0.2 0 1.2 1 0.8 0.4 0.6 0.2 0 x ا , :ا Ri M/ ,"J2ه3 1 x2 1 = E ( R ) = ∫ xdx = 0 2 0 2 1 80 و!9 I 1 2 x3 1 1 1 1 = − = − = V ( R ) = ∫ x dx − E ( R ) 0 3 0 2 3 4 12 2 2 1 ! ا2اص ا 2 , Uز R9ا وي وا@:ل ه:3 (1إذا W Jا`ة ) (0,1إ ,b; nذات أ2Cال و; ,9ن د ا Oهات ا 3; ,"J2 آ ,b; Mه N P6 N n 3د ا Oهات ا.3/ (2إ 6ل Oهة ; 3; , Jة " , J ! M: ,ا %:ا .,: ) 4أرم J2 L67ا : ا0ر Jم & ا"2Oا? Pseudo-Random Numbers ,ه 3أر Jم 2 Uاص ا0ر Jم ا"2Oا?, و2I U/ ر,V 9 دة إذ ` 2I !/ 9ا " ! ,ا0ر Jم آ_ Oء2 3/ . أر Jم 2Oا? ! T ,::6 ,إام (2O ,ا?, M[ ,آ ,ا0ر Jم ! 0إ 9 أوراق او آات و- U7ا و Sور ,Jاو آة Uو 2I !/ 9أر Jم 2Oا?,::6 , آ :3 S/ا0ر Jم ! 0إ 9أوراق و 3; RV2Iو ء و " ا wاq Hوراق Sور,J و U !/ا w 9 %Jا0وراق ة اى -ا " إ دة ا2ر ,Jا , 2و Sور,J اى و !/ا %Jا 2/ب 4 Uوه./ا ` Sا ,XX ,:97اوراق اى و 7 !/و 3و 7ا2ا 3اhن 2/ن ا %Jا"2Oا? 3ا0ول وه 0.94737 2وه./ا 2 6 ا"د ا 27ب ! ا0ر Jم ا"2Oا? .,وا- aVا ان ه 5.ا , ^ ,:97و Iج إ وWJ و U-آ 2د ! wا0ر Jم ا"2Oا?.U ،,ا آ ن ! ا - %Uا إ H9د Cق اى UH !/ 9 ,"9ا ت 2ااد آة ! ا0ر Jم ا"2Oا?., أ 6ه 5.ا7ق ه:3 *Cا [ DاLinear Congruential Method D$ ه 5.ا ,:97وIاآ 37"I Uا " ,ا"د ! X 1 , X 2 ,..., ,9ا ` و S6 m − 1ا ,Y ا/ار,9 X i +1 = ( aX i + c ) mod m, i = 0,1, 2,... ا , :ا0و I X 0 ,ا2اة Seedوا[ W X 9 a Wا _ fو ا[ 9 c W ا 9Gدة و 9 mا :س 6T . Modulusأن 3"9 a = b mod mان ) m %:9 ( a − b 81 ون .3Jإذا آ I c ≠ 0 Wا " د ,ا ,:9C ,:ا 7ا wو 2/Iن c = 0 ,:9C Iا 7ا.3` f إن إ ر ا X 0 %:و aو cو M/O XA9 mآ ا2اص ا@6 ?q ,ر Jم ا 2ة وآ2C g.ل اورة Cycle Lengthوا. :6T U6O 3 #ل [ ) :ل ((4) R- 8.1 2ف م ,:9Cا 7ا ! ," 2 37ا0ر Jم ا"2Oا? .e ,ا%: X 0 = 27, a = 17, c = 43, m = 100 6Tان ا0ر Jم ا2/ 2 3ن 2ز ,وي ! 0و0 99ن ) 6T ( m − 1 = 99اf9 ان ا 2أاد 2Oا? ,و Wأر Jم و ! 2 3/ه 5.ا " ,أر Jم 2Oا?2I U ,زR9 وي ! 0و -2 1ا :3 Xi , i = 1, 2,... m = Ri S Iا " ,آ :3 X 0 = 27 X 1 = (17 × 27 + 43) mod 100 = 502 mod 100 = 2 2 = 0.02 100 X 2 = (17 × 2 + 43) mod 100 = 77 mod 100 = 77 = R1 77 = 0.77 100 = R2 ⋮ وه./ا... ا0ر Jم & ا"2Oا? ,ا 2ة ,:97ا 7ا 7او ^ه ان ,; V@ : Iإ ' 3ا2ز R9ا وي وا@:ل ' ,ا ,; [/ا"Maximum Density N وا3 3"Iان ا %:ا.eI 3ه IT Ri , i = 1, 2,...ك YXات آة ; 3ا`ة ] . [ 0,1و ' ,اورة ا" Maximum Period or Cycle Nا` 3ه .eIا %:ا m −1 ودة m ,N6ان ا0ر Jم ا 2ة !/ 9ان 1 2 m m ; w:; 0, , ,...,ذا /Iر اي ر; %Jن ا "/I ,ر ! 9- و.Uا ;ن أ %Nدورة ,:97ا ,:ه m 3و 2ل أ %Nدورة SH9إ ر X 0 %J و aو cو 9 ,9 " mة و.Uا m %J .AIا m = 231 − 1 M/Oو [ Mه 5.ا, : Iم ; 3ا ت آ SH9ان 2/Iن cو ) m 82 ( c ≠ 0او! ) Uf" ,اي M[ , J .eI a د ;دي وX 0 ن2/I انSH9 g. ( وآU ,آO M ا2 -2IT 2I ع2V2 3; آ[اR2T ف2 . k = 0,1,... %J a = 1 + 4k , a = 3 + 8k , a = 5 + 8k ى2 I Uآ ! اe U ىHI 3ق " ا@ رات ا7 و,?ا2O" م & اJر0ا ., ا,? 6@اص ا2ا : اJ.رم اo رات60إ ,? 6@ اU'ا2 ! آe ,?ا2O" م اJر0ى اHI 3ه ك د آ ! ا@ رات ا و& ;نIndependence ل:@ واUniformity ا ويR9ز2 ا3 ه3وا :! J إ%:I UV" ف2 3ا@ رات ا Frequency Test ار/ إ ر ا2 ا وي وهR9ز2ول @ ر ا0 ا%:ا 3Iا. اw وإ ر ااRuns Test يHن ! إ ر ا2/9ل و:@ @ ر ا3 [ ا%:ا . Autocorrelation Test :ر از! ا وي60إ ,V`ف ا2 H 0 : Ri H1 : Ri distributed as U [ 0,1] is not distributed as U [ 0,1] Kolmogrov- ف2 – روف2-2 2إ ر آ م إ,V` ا5.@ ر ه Chi-square Test آ يR أو إ رSmirnov Test Kolmogrov-Smirnov Test ر آ=روف – ' ف60 إ-1 , ا وي وداR9ز2 F ( x ) ا ة3 ااآR9ز2 ا, رن ! دا:9 ا ا@ ر.ه . N U H6 ," S N ( x ) ," Empirical CDF 39H ا3 ااآR9ز2ا H _9"; ! ا F ( x ) = x, 0 ≤ x ≤ 1 39H ا3 ااآR9ز2 ا, ;ن داR1 , R2 ,..., RN ة2 ا,?ا2O" م اJر0 ! ا,"و 3 "ف آI S N ( x ) ," SN ( x ) = number of R1 , R2 ,..., RN which are ≤ x N 83 P R(1) , R( 2 ) ,..., R( N ) M/O اR1 , R2 ,..., RN ة2 ا,?ا2O" م اJر0 اWIوإذا ر ;نR(1) ≤ R( 2) ≤ ... ≤ R( N ) 0, k SN ( x ) = , N 1, x < R(1) R( k ) ≤ x < R( k +1) , k = 1, 2,..., N x ≥ R( N ) , ' أ سF ( x ) , ا9:I [ اآa I S N ( x ) ;نN , J /I ا& آ6T Step Function ,- در, دا3 ه," 39H ا3 ااآR9ز2 ا, دا.,9` ا,V`ا ( ا تM I M ; 3; M ` M/O U6O ف2) هةO , J Mات آG`J ذات ,? 6@ أي اS N ( x ) وF ( x ) ! آ إ اف0 ,:7 ا, :` ا9 ا ;ن ا@ ر.Uو D = max F ( x ) − S N ( x ) , ر: ا,Y ف م ا2 /ول وH "وف و مJرT ! ا, 2I ن0 N ≥ 35 ن2/I D ,? D ,? 6z 3" اR9ز2ا 6z Asymptotic Formula .& ,` ^ 2 ي0 35 ! MJ ا,?ا2O"ا D ,? N D0.10 1.22 N ≥ 35 D0.05 6z , ا%:ف م ا2 D0.01 1.36 N 1.63 N :3 ارزم ا2 ا وي م اR9ز2 ا,V; W I اء ا@ ر-@ ;نY ا3; i UI ر3 هة اO ا3 هR(i ) W ;ذا آ. 9 I مJر0 اSI ر: (1) ة27 R(1) ≤ R( 2) ≤ ⋯ ≤ R( N ) ن2/9 ]I ا ت/ اS6 أ: (2) ة27 i D + = max − R(i ) 1≤ i ≤ N N i − 1 D − = max R( i ) − 1≤i ≤ N N D = max ( D + , D − ) , / اS6 أ: (3) ة27 84 27ة )6 : (4د ا , :ا ! Dα ,-اHول ا 2 ," %:ى ا " α ,92و %H ا"N ≥ 35 , 27ة ) : (5إذا آ Wا , :ا 6z , 2 ? D ,اآ ! ا , :ا Hو; ; Dα , ا` ,Vا `e ,9ن ا0ر Jم ا"2Oا? ,ا 2ة RIا2ز R9ا وي وإ ] ; Tا % ; _O/ق ! ا2ز R9ا q 3::ر Jم } { R1 , R2 ,..., RNوا2ز R9ا وي. إ60ر آ=روف – ' ف )$'_ Kolmogrov-Smirnov Testام : Excel 2ف "ض ه.ا ا@ ر ! 3;) Excelا ,::ه.ا إ ر 2ا0ر Jم ا"2Oا?, ;9- , `' 3; ( Excel 3ة ! Excelأد Mا :3 85 ;] ا0ر Jم & ا"2Oا? ,آ :3 SIا0ر Jم ا ,HIآ :3 86 :3 اM/O ا3; aV2 2 ا آ هMأد :, ا ?] اM و مJرq 3:: اR9ز2_ ;ق ! اO/ % أي ا,-2 ا@ ر,H ان6T . ا ويR9ز2 { واR1 , R2 ,..., R1000 } ام اK-S @ ر,"` ل ا6@ ا%J ب6 !/ 9 0.11 P ( D > Dobs ) = Q N + 0.12 + D , N ≥ 2 N ∞ Q ( λ ) = 2∑ ( −1) e −2 j λ j −1 2 2 j =1 :3 آExcel امU 3وا 87 M D4 , ا3; Dobs , 2 ا, : واD3 , ا3; N ,9 ت ا- ر%J RV2 :3 آD6 , ا3; p-value ,"` ل ا6@ ا%J Chi-square Test ! آي# ر60 إ-2 ,? n χ 02 = ∑ i =1 ( Oi − Ei ) 6@م ا9 آ يR إ ر 2 Ei وi ,b` ا3; ,"J2 د ا ت ا2 هEi وi ,b` ا3; هةO د ا ت ا2 هOi 2 هi ,b` ا3; R:I 3 ! ا ت اRJ2 ا وي ا"د اR9ز2 .تb` د اn آ يR R9ز2 آ9:I زع2I χ 02 ,? 6@ ا.," ا%H6 N P6 Ei = N n . n − 1 ,96 ت-ر 88 :Excel )ام$'_ ! آي# ر60 إ:ل# Excel ! , `' 3; , هات اO اMأد R 0.34 0.9 0.25 0.89 0.87 0.44 0.12 0.21 0.46 0.67 0.83 0.76 0.79 0.64 0.7 0.81 0.94 0.74 0.22 0.74 0.96 0.99 0.77 0.67 0.56 0.41 0.52 0.73 0.99 0.02 0.47 0.3 0.17 0.82 0.56 0.05 0.45 0.31 0.78 0.05 0.79 0.71 0.23 0.19 0.82 0.93 0.65 0.37 0.39 0.42 0.99 0.17 0.99 0.46 0.05 0.66 0.1 0.42 0.18 0.49 0.37 0.51 0.54 0.01 0.81 0.28 0.69 0.34 0.75 0.49 0.72 0.43 0.56 0.97 0.3 0.94 0.96 0.58 0.73 0.05 0.06 0.39 0.84 0.24 0.4 0.64 0.4 0.19 0.79 0.62 0.18 0.26 0.97 0.88 0.64 0.47 0.6 0.11 0.29 0.78 :3 ا ت آ%X [0,0.1), [0.1,0.2), …, [0.9,1.0) 3 ;ات آ10 [ إ0,1) ا`ة%:I ! C e"I C2:C11 لH ا3; 0.1, 0.2, ,…, 1.0 تb` " ا%: اMIو :3 و ا`ا^ ت آTools => Data Analysis => Histogram أ ر 89 ; 3ا Hل F2:F11أد Mا %X Ei = N n = 100 10 = 10 , :أد Mا آ ;G1:G4 3 )ا ت ; 3ا" 2د Iب ,Y' ! CHITESTا" _9ا .(,: ا:g1 6ان ا , :ا R , 2آ ي 3.4ر -ت 9 ,96ا ! MJا , :اHو16.92 , 2ى " α = 0.05 ,92و .Uا ;ن ,Hا@ ر ,-2أي ا ; _O/ %ق ! ا2ز R9ا q 3::ر Jم } { R1 , R2 ,..., R100وا2ز R9ا وي. 90 :لr*'^رات ا60إ ,V`ف ا2 H 0 : Ri distributed independently H1 : Ri is not distributed independently : ه6 أRuns Tests يH رات اI ه ك ة إ رات,V` ا5.@ ر ه :Runs Up and Runs Down ' يT واU/2 يTا :3 & [ ل ا6O ف2 وNonparametric Test 3 " T إ ر2وه : Excel )ام$'_ ' يT واU/2 يTا Excel , `' 3; , ا ت اMأد R 0.41 0.19 0.18 0.31 0.68 0.72 0.01 0.42 0.89 0.75 0.95 0.73 0.94 0.08 0.69 0.04 0.74 0.54 0.18 0.83 0.91 0.02 0.47 0.45 0.55 0.01 0.23 0.13 0.62 0.36 0.32 0.57 0.36 0.16 0.82 0.63 0.27 0.28 0.53 0.29 :3Ih آ9 ا,: %X A2:A41 9 ا3; MI مJر0 ان ا6T B2=IF(A2<A3,"+",IF(A3="","","-")) لH ا,9 U 6 dI %X C2 = 1 %X C3=IF(B3="","",IF(B3=B2,C2,C2+1)) لH ا,: 6 dIو D2 =MAX(C:C) E2 =COUNT(A:A) F2 =(2*E2-1)/3 G2 =SQRT((16*E2-29)/90) G4 =(D2-F2)/G2 G6 =NORMSDIST(G4) 91 ; Mا,H اJح: "9ف اHي ا& " ! ,ا@ رات ا 3`; &U Oا [ ل ا - 26 -29ي آ :3 92 Run Mark 1 +++ 2 − 3 + 4 − 5 + 6 −−− 7 ++ 8 − 9 + 10 −− 11 + 12 − 13 + 14 −− 15 + 16 −− 17 + 18 − 19 ++ 20 −− 21 ++ 22 − 23 + 24 −− 25 ++ 26 − w2 ;ن,:: ا,?ا2O" م اJر0 ! ا," 3; يH 3/ ا"د ا2 هa أنV; ;ذا تJ" 7"I a !9 Iو 2N −1 3 16 N − 29 σ a2 = 90 µa = وN ( µ a , σ a2 ) R9ز2I 9:I U ن2/9 a ;نN > 20 W ;ذا آ.," ا%H6 N P6 U 3 اZ 0 = a − µa σa ,? 6@ ب ا يH ر ا,?ا2O" م اJر0ل ا: إ,V; 93 2I 9:Iز W I 3 J 3"C R9ا` ,Vا ` 6 " .,9ب Z 0و 2ى "α ,92 :ر %: UاHو; ,ذا آ ;T ; − zα 2 ≤ Z 0 ≤ zα 2 Wا` ,Vا `.,9 ا:ار 9 :ك آ . S 7 !9 اTي Aق و t4ا': Runs above and below the mean 8 إذا q !" Nر Jم ا"2Oا? 3; ,ا [ ل ا و Jر آ O Mهة w2ا Oهات H ان _ ا Oهات ا0ول )اـ O 20هة ا0و ( آ Uأ ! ا w2و R -ا Oهات ^ ; 3ا _ ا hأ ! MJا w2و6وث [ Mه.ا ا O 3; wهات 2Oا?I , .U Mا :9ح إ-اء إ ر Hي ;2ق و W Iا e w2آ ! إ ,:ا0ر Jم ا"2Oا? ,ا 2ة. إ ر اHي ;2ق و W Iا H9 w2ى ` ,:9Cا@ ر ا وذg :ر ,آM Oهة w2ا Oهات ;ذا آ 2; Wق ا + Rf w2أ إذا آ W I Wا Rf; w2 S %Xد اHي ا .3/وHي ا@ ر آ :3إذا آ n1 Wد ا Oهات ا 3ه2; 3ق ا w2و n2د ا Oهات ا 3هW I 3 ا w2و bد اHي ا 6T) 3/أن ; (1 ≤ b ≤ n1 + n2 = Nن w2و7"I b !9 I " Jت: 2n1n2 1 + N 2 ) 2n n ( 2 n n − N σ b2 = 1 2 2 1 2 )N ( N − 1 = µb ;ذا آ Wاي ! n1و n2أآ ! ; 20ن W I bا` ,Vا `2/9 ,9ن 2I 9:I UزR9 3"Cو@-اء ا@ ر 2/ن ا@6 ?, b − µb σb = Z 0و 2ى " : α ,92رU %: اHو; ,ذا آ ;T ; − zα 2 ≤ Z 0 ≤ zα 2 Wا` ,Vا `.,9 #ل :اTي Aق و t4ا'Runs above and below the mean 8 _')$ام :Excel 2ف -2إ ر اHي ;2ق و W Iا q w2ر Jم ا"2Oا? 3; ,ا [ ل ا .أدM ا Oهات ا 9- , `' 3; ,:ة ! Excelآ :3 94 ; Mا ?] ا , 95 ا:ار 9 :ك آ . S 7 !9 إ60ر اا 8ا3ا:4 وه.ا إ ر ( @ ,:ا0ر Jم ا"2Oا? ,و 9ا@ د أو ا@ر Iط ! "! , ا0اد2 .ف 7ق إ ,:9Cا@ ر ;0 w:ن ا _ ,9Nه.ا ا@ ر ,` S7I ا ! 2ى ه.ا ا /ب و2ف Iرس ; 3دة 221 آ ب Cق ا Aا@6 C) Pق ا Aا@6 ? .(3أN ? 3اGHء ا0ول _eIد .ن -ي(3) . #ل: ) 3; :,N6ه.ا ا [ ل 2ف م ' ,Yب اا wا.ا 3Iأ ! %ا ا 2-2دة ء( ; 3ا /ب ا :ر وه 5.ا ,Yأآ[ إ Oرا وإا ; 3آ Sا@6 ; 3ا [ ل ا 2ف ; ,Vا@:ل وذ gر %Jاا wا.ا," 3I ا Oهات; .ذا ; Vأن ρiه 2اا wا.ا ! 3Iار i ,-وا.ي ,J" 7"9 , i = 0,1, 2,... )− R ∑ ( R − R )( R = )∑ (R − R N −i t +i 2 t N t ا@6 ? ! ," ρi ,ا0ر Jم ا"2Oا? ,ا U ,::ا2اص ا@6 t =1 ρi t =1 ? ,ا :, E ( ρi ) = 0, i = 1, 2,... 1 , i = 1, 2,... N = ) V ( ρi Approx ) ρi ∼ N ( 0,1 N @ ر ا@:ل ;ن ا` ,Vه:3 H 0 : ρi = 0 H1 : ρ i ≠ 0 إ60ر اا 8ا3ا)$'_ 4ام :Excel @ ر ه 5.ا` ,Vام Excelأد Mا Excel ! , `' 3; 3 96 ; UNا ?] ا , 6أن ρi , i = 1, 2,...,5 %Jآ R:I Uدا Mا`ة ) ( −0.3099, 0.3099وه.ا 9A9ا`,V ا `.,9 97 ا ا:"#$ u# ) 4ات J2ا : إن Y 2Iات 2Oا?2I RI ,ز " "9ه 3أ س ا آ ة إذ 2I / 9أ6اث 2Oا?, Iآ 3أي Nم 3::6وذ2I ,9 " gز "9ت إ 7I , 6أ6اث و 2اص ه.ا ا Nم. ; [ أز , ! ا2'2ل ; 3أ , Nا27ا وه 3أ6اث 2Oا?. I ,ج ^ 2زR9 ا.30 ه ك ة Cق و2ارز ت Y 2ات 2Oا?2I ! ,ز !" R9و2ف "ض اه U وأآ[ه إ Oرا وذY gض ا@ م 5.Uا7ق ; w:و @ا U إذ ; 3ا ,::أن ا2ارز ت ا 3; ,ا ] ا Sاآ[ 27Iرا و , ]? 37"Iا ,J2X2و%I J ; Uوإ ره ! MJا ! [/ا 3; ![6أ ث H 3; ,:X2ت ا Pا" .3 O 2 3/هات 2OY x1 , x2 ,...ا?X 3 R9ا2زR9 ∞ < FX ( x ) = P ( X ≤ x ) , − ∞ < x ; م " ! ,ا0ر Jم ا"2Oا? P6 R1 , R2 ,... ,آ U Ri Mدا ,آ[ ; ,إ, 6 1, 0 ≤ x ≤ 1 fR ( x) = 0, otherwise ودا2I ,زI R9اآ 3 x<0 0, FR ( x ) = x, 0 ≤ x ≤ 1 1, x >1 و :9ل أن ). i %J R H Ri ∼ U ( 0,1 *Cا اInverse Transform Technique B. وه 3ا ,:97ا0آ[ إا و '2 ,ز "9ت ا@ , 6ا !/ 9 3إ H9د ) U FX−1 ( x وآ2 g.ز "9ت ا Empirical Distributions ,9Hو2:Iم ا 7 FX ( X ) = R و2ف 2 M ` U6Oز R9ا.30 :,N6ا2ز "9ت ا@ , 6ا .آ2رة ; 3ه.ا ا` Mوا O U 2 3هات Oو,6 ` 3; Mا` Mا دس ! ,-.ا ت. 98 :'! از! ا6 اJ2 u# # ه)اتJ# ) 4 :3 & ه, 6@ ا,; [/ ا, داW إذا آ30 اR9ز2 اR9 X 3?ا2O" اY ا λ e − λ x , x ≥ 0 f X ( x) = x<0 0, 3 اآI R9ز2I ,ودا F ( x) = ∫ x −∞ 1 − e − λ x , x ≥ 0 f ( t ) dt = x<0 0, , ز0 آ ن2 [ ; ., ة ز6 و3; د ا وثw2 ,` أ9 λ %" ا ! ة62 ل2'2 د اw2 U` اI λ ;نλ "ل3 أR9ز2I X 1 , X 2 ,... ل2'2ا ;نi , J ي0 & ا6T .ل2'2 أو "ل ا, ز E ( Xi ) = 1 λ .ل2'2! ا ! زw2 2 ه1 λ ا ;ن./وه ام3 أR9ز2I U 3 واX 1 , X 2 ,... ,?ا2O"ات اY هات ! اO 2 ف2 :3 ارزم ا2 3/" اM92 ا,:9C . X 3?ا2O" اY 3 ااآR9ز2 ا, دا- أو:(1) ة27 F ( x ) = 1 − e − λ x , x ≥ 0 3 ه3 ااآR9ز2 ا, دا30 اR9ز2 F ( X ) = R RV X لH :(2) ة27 . x ≥ 0 لH ا1 − e − λ X = R 30 اR9ز2 . R ,T X Y , F ( X ) = R , ا " دM6 :(3) ة27 :3 آR ,T X Y 1 − e− λ X = R , ا " دM 30 اR9ز2 1 − e−λ X = R e−λ X = 1 − R −λ X = ℓn (1 − R ) X= −1 λ ℓn (1 − R ) 99 M/O ا3 وه30 اR9ز2 3?ا2O Y 2 I X = −1 λ ℓn (1 − R ) ,ا " د . X = F −1 ( R ) ! هاتO اS6 ا%X ! وR1 , R2 ,... ,?ا2O" م اJر0ب ! ا27 و ا"د ا:(4) ة27 . X i = F −1 ( Ri ) ,Y اS6 X 3?ا2O" اY ا 3 آX 1 , X 2 ,... S R1 , R2 ,... ,?ا2O" م اJر0 ا7" 30 اR9ز2 Xi = −1 λ ℓn (1 − Ri ) , i = 1, 2, 3,... ( ) ذا؟X i = −1 λ ℓn Ri , i = 1, 2, 3,... إ,Y ا5. هwI !/ 9 :,N6 :Excel )ام$'_ ' از! ا# ه)اتJ# ) 4 (1) ل# . λ = 1 30 اR9ز2 اR9 ي. اX 3?ا2O" اY هة ! اO 1000 و aV2 2 ا ت آ هM وأدExcel 3; ة9- , `' a;أ 100 , ا ?] اS ; F9 ا ` حwYV" إد ل ا ت ا اري/I Rf ! 90 اM/Oا ,?ا2O" م اJرq اري/I Rf ا رM/Oا 39:I ر: 2 هHistogram اري/ اRf أن ا6T ، 30 اR9ز2 ة2 هات اO ., 6@ ا,; [/ ا,ا : (a,b) از! ا وي# ه)اتJ# ) 4 (2) ل# ,J" 7"I U , 6@ ا,; [/ ا, ;ن داX ~ U ( a, b ) إذا آ ن 1 , a≤ x≤b f ( x) = b − a 0, otherwise :3 ارزم ا2ات ا27 R X ~ U ( a, b ) 3?ا2O" اY 2 O 3/ 3 ااآR9ز2 ا, دا-2 :(1) ة27ا x<a 0, x−a F ( x) = , a≤ x≤b b − a x>b 1, . a ≤ x ≤ b لH اF ( X ) = ( X − a ) ( b − a ) = R Rf :(2) ة27ا 101 ]; R ,T X Y , F ( X ) = ( X − a ) ( b − a ) = R ,J" اM :(3) ة27ا . X = a + (b − a) R . X ~ U ( 0,10 ) 3?ا2O" اY هة ! اO 1000 و:!9 I : Weibull 6ز! و4 # ه)اتJ# ) 4 (3) ل# :3 & ه, 6@ ا,; [/ ا, داW إذا آM9 وR9ز2I R9 X 3?ا2O" اY ا β β x β −1 − x e α , x≥0 f ( x ) = α α 0, otherwise .(,Y ا5. ه3; ν = 0 RJ2 ا%" ) R9ز2 M/O وا%H ا% " 3 هβ > 0 وα > 0 P6 :, ات ا27 اR M9 وR9ز2I ! هاتO 2 3 ه3 ااآR9ز2 ا, ان داH , 6@ ا,; [/ ا, ! دا:(1) ة27ا F ( x) = 1− e x − α β , x≥0 F ( x) = 1− e X = α −ℓn (1 − R ) 1 β x − α β = R RV :(2) ة27ا ]; R ,T X - أو:(3) ة27ا : Excel )ام$'_ Weibull 6ز! و4 # ه)اتJ# ) 4 :3 آExcel امβ = 2 وα = 1 %: M9 وR9ز2I ! هةO 1000 2 ف2 2 102 اري/I Rf ! 90 اM/O ا,?ا2O" م اJرq اري/I Rf ا رM/Oا .M9 وR9ز2 ة2 هات اO : Triangular Distribution / از! ا# ه)اتJ# ) 4 (4) ل# :3 & ه, 6@ ا,; [/ ا, داW إذا آTri [ a, b, c ] 3[[ R9ز2I & ن2/9 X 3?ا2O" اY ا 2( x − a) , a≤ x≤b ( b − a )( c − a ) 2 (c − x) f ( x) = , b< x≤c ( c − b )( c − a ) 0, elsewhere :3 اآI R9ز2I , وداa ≤ b ≤ c P6 x≤a 0, 2 ( x − a) , a< x≤b ( b − a )( c − a ) F ( x) = 2 c − x) ( 1 − c − b c − a , b < x ≤ c )( ) ( 1, x>c 103 , اTri [ 0,1, 2] 3[[ R9ز2I & ي. اX 3?ا2O" اY ,?ا2O هاتO 2 ف2 :, 6 إ,; [آ 0 ≤ x ≤1 x, f ( x ) = 2 − x, 1 < x ≤ 2 0, elsewhere :3 اآI R9ز2Iو 0, x2 , F ( x) = 2 2 (2 − x) , 1 − 2 1, x≤0 0 < x ≤1 1< x ≤ 2 x>2 :6 3 ااآR9ز2 ا,! دا X = 2 R ن2/9 وه0 ≤ R ≤ 1 X2 2 هR لH ن2/9 وR = ;ن0 ≤ X ≤ 1 2 2 ( 2 − X ) ;ن1 ≤ X ≤ 2 1 ن2/9 ≤ وهR ≤ 1 2 هR لH ن2/9 وR = 1 − 2 2 2 و ,J" 7"9 X 3?ا2O" اY ,?ا2O هاتO 2 ا ;ن./ وهX = 2 − 2 (1 − R ) 1 2R , 0≤ R≤ 2 X = 1 2 − 2 (1 − R ) , < R ≤1 2 )ام$'_ Triangular Distribution / از! ا# ه)اتJ# ) 4 Excel :3 آExcel امX 3?ا2O" اY هة ! اO 1000 2 ف2 104 ا M/Oا ر /I Rfاري qر Jم ا"2Oا? ,ا M/Oا/I Rf ! 90اري Oهات ا 2ة 2ز R9ا [[.3 105 ت.ز4 أوEmpirical Distributions 6Tت ا.از Sampling Distributions 1.ا 79 3 " R9ز2I د2- م و, 6 3; ,9 " " ت ا9ز2I أو,9H" ت ا9ز2م اI ! ," H ا ت ا%N" 79 ا. وه.&I آ & و-. اد9 مN ! ," H ا ت ا هاتO ! ا, 9 W ;ذا آ.3 " R9ز2I ا ت7I ر9 و,::6 , Nا :3 آS I ," R9ز2 ا, أو دا39H اR9ز2 ا, ;ن داx1 , x2 ,..., xn S6 أx(1) ≤ x( 2) ≤ ... ≤ x( n) P x(1) , x( 2) ,..., x( n ) M/O اx1 , x2 ,..., xn هاتO اSIر :,J" ! ا39H اR9ز2 ا,دا 0, k Sn ( x ) = , n 1, x < x(1) x( k ) ≤ x < x( k +1) , k = 1, 2,..., n x ≥ x( n ) ف2 ( و, ` ) ,"7: ة او ن إ2/I ,9H" ت ا9ز2 ا ت ;ن اS6 .[ ل "ض آه :Excel )ام$'_ 1 ا6T از! اU/2 ل# , X إ6اوح ! واI ت2 H 3; اء.Y اWJ و% 7 ا6 ?! إ أG اM 9 ا تW /; .,2 H 300 ل2' ل و/ إ6 مNا ا. ت ! هW" - .أ ص :3 آ 4 5 1 2 2 3 2 4 3 2 3 3 2 3 2 6 8 3 6 4 2 2 4 4 4 1 1 4 7 3 2 3 6 2 1 2 3 2 3 4 2 2 2 3 4 8 4 5 2 4 1 2 4 2 3 1 7 8 4 2 3 1 8 2 2 3 2 7 1 2 2 4 2 6 2 4 2 8 2 3 4 4 2 2 4 4 3 4 1 2 2 1 1 6 2 1 3 4 1 1 7 7 1 6 4 2 2 7 3 2 2 5 1 4 3 2 2 4 3 2 2 1 2 2 4 2 3 5 8 2 3 3 2 2 2 3 2 4 4 4 6 2 6 4 5 2 1 5 2 4 5 1 2 1 3 4 1 2 2 2 1 3 5 3 1 2 2 8 6 3 3 2 2 2 2 2 106 4 2 4 5 5 1 2 4 2 3 2 1 2 4 1 1 2 8 2 4 8 8 6 4 2 6 4 4 2 4 4 1 4 4 5 3 4 4 2 4 7 4 2 2 4 2 2 4 3 2 3 2 1 2 6 4 2 3 2 4 5 2 3 2 3 2 3 1 1 1 4 4 2 4 2 4 2 2 5 2 4 8 6 4 3 1 1 7 3 2 8 4 4 2 3 4 2 3 8 4 4 4 2 4 2 2 2 1 3 1 1 3 1 1 1 6 2 2 7 4 4 3 1 2 ا 27ب إ H9د دا ,ا2ز R9ااآ 3ا39H ا M/Oا 37"9 90ا Rfا/اري ا 3وه: 2ر ا ,ا ,/ا@., 6 ا M/Oا 37"9 ! 90ا رج ا/اري ا 3وه 2دا ,ا2ز R9ا.39H #ل U/2از! ا 6Tا _')$ام : Excel ا ت ا q ,ز ,ا 3; S C 500 UJY9 3إ ن دة 0.6 0.2 0.4 0.6 0.4 0.4 0.4 0.5 0.5 0.6 0.6 0.4 0.7 0.4 0.4 0.4 0.6 0.7 0.9 0.4 1.0 0.7 0.5 0.5 0.6 0.3 0.3 0.4 0.5 0.5 0.6 0.5 0.6 0.5 0.4 0.3 0.6 0.5 0.6 0.7 0.7 0.6 1.0 0.3 0.4 0.4 0.5 0.5 0.4 0.7 0.4 0.4 0.5 0.4 0.6 0.6 0.6 0.5 0.6 0.4 0.5 0.5 0.8 0.5 0.5 0.6 0.4 0.4 0.4 0.7 0.4 0.5 0.6 0.6 0.5 0.6 0.5 0.6 0.9 0.4 0.5 0.6 0.4 0.6 0.5 0.8 0.4 0.6 0.4 0.6 0.7 0.6 0.8 0.5 0.6 0.3 0.4 0.5 0.5 0.8 0.5 0.4 0.6 0.4 0.5 107 0.5 0.6 0.5 0.6 0.5 0.8 0.6 0.5 0.6 0.4 0.5 0.4 0.2 0.6 0.8 0.4 0.6 0.2 0.5 0.6 0.7 0.4 1.0 0.6 0.4 0.6 0.7 0.4 0.5 0.6 0.6 0.5 0.8 0.9 0.4 0.3 0.4 0.6 0.6 0.5 0.7 0.5 0.6 0.5 0.5 آGHء ! و WJا@ ن 0.6 0.5 0.7 0.5 0.5 0.7 0.6 0.4 0.6 0.4 0.6 0.6 0.6 0.5 0.4 0.7 0.5 0.4 0.5 0.7 0.5 0.5 0.5 0.5 0.6 0.6 0.4 0.6 0.7 0.6 0.6 0.2 0.3 0.6 0.6 0.4 0.3 0.8 0.6 0.6 0.6 0.5 0.6 0.6 0.6 0.6 0.5 0.4 0.6 0.5 0.5 0.5 0.4 0.6 0.3 0.5 0.5 0.4 0.4 0.6 0.6 0.6 0.4 0.6 0.5 0.5 0.6 0.7 0.6 0.4 0.9 0.8 0.6 0.4 0.5 0.7 0.6 0.6 0.2 0.5 0.4 0.5 0.4 0.6 0.6 0.4 0.6 0.7 0.5 0.6 0.1 0.2 0.5 0.5 0.5 0.3 0.5 0.2 0.6 0.7 0.5 0.4 0.6 0.7 0.8 0.5 0.8 0.6 0.4 0.6 0.4 0.5 0.5 0.5 0.7 0.3 0.7 0.6 0.1 0.6 0.9 0.7 0.7 0.6 0.7 0.3 0.8 0.4 0.2 0.4 0.5 0.6 0.4 0.4 0.6 0.6 0.5 0.7 0.4 0.5 0.8 0.7 0.7 0.6 0.4 0.3 0.5 0.6 0.4 0.6 0.7 0.5 0.4 0.5 0.7 0.6 0.5 0.6 0.5 0.4 0.6 0.7 0.6 0.5 0.5 0.5 0.6 0.4 0.6 0.6 0.5 0.4 0.8 0.6 0.2 0.5 0.4 0.5 0.2 0.5 0.5 0.7 0.6 0.4 0.3 0.8 0.6 0.5 0.4 0.6 0.3 0.9 0.7 0.3 0.4 0.5 0.4 0.7 0.7 0.4 0.4 0.7 0.4 0.5 0.6 0.6 0.4 0.6 0.5 0.6 0.7 0.4 0.4 0.6 0.4 0.7 0.6 0.4 0.5 0.4 0.6 0.6 0.6 0.6 0.6 0.7 0.5 0.4 0.4 0.6 0.7 0.6 0.5 0.7 0.4 0.1 0.5 0.9 0.5 0.6 0.2 0.6 0.4 0.6 0.6 0.6 0.6 0.6 0.9 0.3 0.5 0.5 0.1 0.5 0.8 0.6 0.4 0.8 0.6 0.6 0.6 0.6 0.8 0.6 0.6 0.6 0.5 0.4 0.6 0.5 0.5 0.4 0.4 0.5 0.3 0.4 0.6 0.3 0.6 0.4 0.4 0.4 0.5 0.5 0.6 0.2 0.5 0.4 0.4 0.4 0.4 0.6 0.6 0.8 0.5 0.6 1.0 0.5 0.5 0.5 0.7 0.5 0.4 0.8 0.6 0.6 0.4 0.7 0.5 0.4 0.5 0.7 0.5 0.6 0.6 0.7 0.5 0.8 0.9 0.6 0.4 0.5 0.5 0.5 0.9 0.5 0.3 0.6 0.5 0.5 0.6 0.5 0.3 0.7 0.7 0.5 0.4 0.6 0.6 0.8 0.5 0.6 0.4 0.4 0.7 0.3 0.6 0.3 0.7 0.5 ا 27ب إ H9د دا ,ا2ز R9ااآ 3ا39H آ [ ل ا ا M/Oا 37"9 90ا Rfا/اري ا 3وه: 2ر ا ,ا ,/ا@., 6 ا M/Oا 37"9 ! 90ا رج ا/اري ا 3وه 2دا ,ا2ز R9ا.39H #ل )J# ) 4 (5ه)ات #از! ا 6Tا:1 :وأن J7Iإ " ,9ا2ز R9ا 39Hا ` 3; Mأول ا` Mا[ 2 W I Pان ا " 2I ! ,9ز R9إ 3 6ام .Excel #ل )J# ) 4 (6ه)ات #از! ا 6Tا _')$ام :Excel 2ف " ! !9ا2ز R9ا Mا :3 CDF 108 Interval 0.25 ≤ x ≤ 0.50 0.31 0.50 < x ≤ 1.00 0.41 1.00 < x ≤ 1.50 0.66 1.50 < x ≤ 2.00 1.00 :aV2 2 ا ت آ هM وأدExcel 3; , `' a;أ :, ا ?] اM 109 ; : ا6T از! ا# ه)اتJ# ) 4 (7) ل# :3 اM اR9ز2! ! ا9 " ف2 Interval CDF 0.00 < x ≤ 0.80 0.2 0.80 < x ≤ 1.24 1.24 < x ≤ 1.45 0.4 0.6 1.45.0 < x ≤ 1.83 0.8 1.83 < x ≤ 2.76 1.0 :aV2 2 ا ت آ هM وأدExcel 3; , `' a;أ :3 اM أدF1 د2 " ا3; Observations W I =IF(A2<=$C$3,$D$2+$E$2*(A2- C$2),IF(A2<=$C$4,$D$3+$E$3*(A2-$3),IF(A2<=$C$5, 110 $D$4+$E$4*(A2-C$4),IF(A2<=$C$6,$D$5+$E$5*(A2-$C$5),IF(A2<=$C$7,$D$6+$E$6*(A2$C$6),2))))) , ا ?] اUN; :3 ! آ: ا [ ! ا3; ة7" ! اH اM ,`ح آO ف2و .M 3?ا2O Y 39HI 3 اآI R9ز2I , ا3 اM/Oا 1.2 1 (2.76,1.0) 0.8 (1.83,0.80) 0.6 (1.45,0.60) 0.4 (1.24,0.40) 0.2 (0.80,0.20) (0,0) 0 0 0.5 1 1.5 2 111 2.5 3 Linear 37 ل ا/@ م ا3?ا2O" اY ا ا. ! ه, هاتO 2 3/ ( وx1 , y1 ) = ( 0, 0 ) !7: ! اR:I y ,T x Y , J -2 3/; Interpolation ,J" ا3; ض2" ( x, y ) [ UI Xا6! إ/ ( وx2 , y2 ) = ( 0.8,0.2 ) x −x x = x1 + ( y − y1 ) 2 1 y2 − y1 ;نy = 0.18 W ; [ إذا آ 0.8 − 0 x = 0 + ( 0.18 − 0 ) == 0.72 0.2 − 0 ;نyi < R ≤ yi +1 W ;ذا آR , J -2 3 ااآR9ز2 هات ! اO 2 3/; x −x X = xi + ( R − yi ) i +1 i yi +1 − yi ;ن0.6 < R < 0.8 أيR = 0.71 W آ2 [ ; 1.83 − 1.45 X = 1.45 + ( 0.71 − 0.6 ) = 1.659 0.8 − 0.6 ط:ا ! ,;" و R ~ U ( 0,1) ! ب27 ا"د ا2I R7 %: ,ا " د 5.ه 3; ( xi , yi ) , i = 1, 2,..., Number of 92" ا./وه Classes of CDF . هاتO ا . اR9ز2 هات ! اO 10 9و9 و:!9 I : Direct Transformation . 6Dز! ا/ 76* ا اC ,` ق7 ون ان3 : ا3"7 اR9ز2 هات ! اO 2 ارزم2 ف "ض2 .& ,V 9ا ! !I هO 37"I , ا اR2 ~ U ( 0,1) وR1 ~ U ( 0,1) !?ا2O ! J ر7" Z ~ N ( 0,1) 3?ا2O Y Z1 = ( −2ℓn R1 ) cos ( 2π R2 ) 12 Z1 = ( −2ℓn R1 ) sin ( 2π R2 ) 12 . X = µ + σ Z M92 ي اH X ~ N ( µ , σ 2 ) 2 112 :ى0ق اC & ه آ اU7YI !/ 9T 7" 3?ا2O Y ! هاتO 2 ق7[ ! ا/ه ك ا مG6 %N" 3; ,H 3?ا2O Y ! هاتO ات2 [ ! ا/ن ا0 U7YI مG9T %I J و,J2X2 دة وا2H ا, 3 وهOث ا" ت و ا ] '` ت ا2 ء و ,// اS/ ا3; رة2آ. ق ا7ان " ا آ.![6 [ ! ا/ اMJ ! ;ل وا2: ا,:9C وConvolution Method ا@` ف,:9C M[ 6@ا ] ا إ ره آة ,6 ! اUnefficient , ; ^ قC 3 هAcceptance-Rejection Method . U ق7 % ا.U و, ارز2ا :!9 I . Excel امX ~ N (160,9 ) ! هةO 1000 و 113 ا ا دس: =3ا)r0ت : Input Modeling ; 3ه.ا ا` 2 Mف 2:م را ,-. ,و M Iا ت ،وه ! 3اه %ا27ات ا" ,ا3 .Iء ا 2ذج ا.ي 2ف Hي & ا Hرب أ Xء ا ,-.و M Iا ت I M OI آ ة. %وأ .ت ! ا Nم ا اد 9:I %X ,-.ا2ز "9ت ا@ , 6ا I 3; %/ I 3ف ا Nم و2I 7Iز "9ت ,9Nا ت ا Oهة إذا أ !/ذ? ; ،gة ا2ز "9ت ا ,9Nه 2إ , /إ-اء Sensitivity Analysis , 6 M I Nم و !/إذا ."Iر 9:Iه أي ! !/ %إ H9د 2IزN R9ي 79ا Oهات و H9ز إ رات !6ا 3; !/ 9 &; Goodness of Fit Tests 7ه 5.ا ,إام ا2ز "9ت ا " ،,9Hا Mf`9 ![6إام ا2ز "9ت ا ,9Hأ' M[ I U0ا Nم ا 3::أ; Mfو ' ,إذا W" -ا" ت " .,9 2ف 7Tق إ I %وأ .ا" ت 0ن ه.ا 2V2ع M O9دراC ,ق ا " ,9وه2 ء2 ،ف `ض ; 3ه.ا ا :ر أ& 9 -29 2V2ع دة آ I ,رس % ! Vا@6 Oهات -هGة و ) U9 " W I Jأي Oوع ;3 ! ;T H 3ت 2ث ا" ت وا@6 Nم ا ; 3::ذا آ ن ا Nم إJ ا@J 2ث ا" ت Tان 2:9م & ;M O9 9 ء وا Sوأي V Iوري & ,J دي [ ; SHان 2/9ن ; 3ا` 9أ 6ا ! ;3 د (. ا.ف U/2از! #اJه)ات: إذا آ O 9 Wهات ;ن اول 27ة 2:م Uه 3إ H9د 2Iز U 79 S R9وذg % " 9:ا2ز ،R9و MJ !/أن 2:م g.ا"ف M/ا2ز R9وذ H9 gد ا2ز R9ا/اري أو ا Rfا/اري Histogramوا.ي : "9را او 3ا ,ا,/ ا@ O , 6هات ! M ` Yاو دا ,ا ,; [/ا@ O , 6هات ! .M Y و2:م Oء ا2ز R9ا/اري آ :3 H %J (1ل ا Oهات إ ;ات و ,9ذات د .S M[ (2ه 5.ا`ات ا 2ر ا.3:;0 ! (3ا/ارا 3; 3آ; Mة. %J (4إ6ا Xت ا 2ر اأ M[ 9 M/O 3ا/ارات ا., 114 (5أر %ا/ارات ا; M/ ,ة. د ا`ات %H6 "9ا" ,و إ Oر ا Oهات; ،ذا آ Wا`ات ,f9 و; ,Jن ا2ز R9ا/اري و ^ ` Mو 2 M/آ ت و .Uا ;ن &/ و2/I ! &' `Iن وا ،, Vأ إذا آ Wا`ات - ,:Vا وآ[ة ;ن ا2ز R9ا/اري و !Oآ[ ا` ' Mو! U 9ا Oهات .ه ك Jة H60 ,9:Iم ا"! , ا ,72وا/ة وه 2أ .د ا`ات 9وي ا.Hر ا " %H 3ا Oهات .ا [ ل ا !9 3أ Xد ا`ات M/ا2ز R9ا/اري. #ل)2 `v4 :د اKت B7 U/2از! اBاري: ا /0ل ا !I ,أ Xد ا` bت M/ا2ز R9ا/اري Oهات ا :, 115 ا M/Oا !9 3أ Xد ا`ات M/ا2ز R9ا/اري Oهات ا ` :, 116 ا Oهات ا ` O ! 3 "IT ,آ Mد ا`ات ' ,إذا آ Wا %:ا Y ,/ ا"2Oا? 3ا ` .,J M ا.ف U/2وإ 0ر از! #اJه)ات: : !/ 9ر M/ ,ا2ز R9ا/اري ا " ]Iف ا ? M/ 3ا2ز R9اNي ا :ح و ! 7I %Xا2ز R9ا :ح ا Oهات او ا2ز R9ا/اري وإ ر !6ا 7 2ا ,7أ 6ا@ رات [ Mإ ر آ2-2 2روف – 2ف أو إ ر Rآ ي. ه ك ا ! [/ا2ز "9ت ا@ , 6ا ,9Nا 7I 3دة ا ت ا Oهة و ! أه% ه 5.ا2ز "9ت وأآ[ه إا ا :, 4 (1ز! ذات ا) : Binomialو. 9ج د ات ا Hح ;n 3 ان 2/Iن ا و ,ط وTت ,:و ` Uا@ 6ل .و2:ل ان ا Yا"2Oا? 3ا ` M 2I & Xز R9ذات ا !9إذا آ Wدا ,ا ,/ا@ & , 6ه:3 n x n− x p (1 − p ) , x = 0,1, 2,..., n ; 0 ≤ p ≤ 1, n = 1, 2,... P ( X = x ) = p ( x ) = x 0, otherwise " %ا2ز R9ه n, p 3و& (w2 ) ,"J2 , Jو!9 I ) E ( X ) = np, V ( X ) = np (1 − p 117 3 & ه,/ ا, داM/و Binomial pmf 0.3 0.25 0.2 0.15 0.1 0.05 0 3U اR9ز2 اM OI و: Negative Binomial - ز! ذات ا) ا4 (2 ل2 ,و. ت اTو ج د ا. I و,' , آGeometric Distribution M ` ا3?ا2O" اY ل ان ا2: و.( k = 1 3U اR9ز2 ) حH k د3 :3 & ه, 6@ ا,/ ا, داW إذا آ, ! ا9 ذات اR9ز2I & X x + k − 1 k x p (1 − p ) , x = 0,1,...; 0 ≤ p ≤ 1, k = 1, 2,... p ( x ) = x 0, otherwise ! ه9 واRJ2 اk , p 3 هR9ز2 ا% " E(X ) = k (1 − p ) p , V (X ) = k (1 − p ) p2 Negative B ino mial pmf with k=5 0.3 0.25 0.2 0.15 0.1 0.05 0 k =1 3U اR9ز2 ا3 هR9ز2ا ا. ! ه,' , آ 118 x −1 p (1 − p ) , x = 0,1,...; 0 ≤ p ≤ 1 p ( x) = otherwise 0, Geometric pmf 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 , ;ة ز3; ثI 3 ا,: اث ا60ج د ا. 9 و: Poisson ز! ا'ن4 (3 ن2ا2 R9ز2I & X M ` ا3?ا2O" اY ل ان ا2: و., X , / , ; أو, X :3 & ه, 6@ ا,/ ا, داW إذا آ α x −α e , x = 0,1,...; α > 0 p ( x ) = x! 0, otherwise ! ه9 واRJ2 ا، α > 0 2 هR9ز2 ا%" E(X ) =V (X ) =α 3 اM/O اU & , 6@ ا,/ ا,ودا P o isso n pmf 0.3 0.25 0.2 0.15 0.1 0.05 0 ع " ت2 H ! إ ره آ/ 9 , R9ز2I ج. 9 و: Normal . 6D( از! ا4 R I UJY9 3 ا, ز0ع ا2 H 2 رة هR قY ! اG ; [ ا.,?G- 119 ! G , 3 ه3 وا, %J 37"9 J 3"7 اR9ز2 ان ا6T . U; ,"7J Mآ إذا3"C R9ز2I & X M ا3?ا2O" اY ل ان ا2: . رةR قY ا :3 & ه, 6@ ا,; [/ ا, داW آ f ( x) = 1 2πσ 2 e − 1 2σ 2 ( x − µ )2 , − ∞ < x < ∞ ; − ∞ < µ < ∞, σ 2 > 0 E ( X ) = µ , V ( X ) = σ 2 !9 I وRJ2I & و، − ∞ < µ < ∞, σ 2 > 0 ذج ه2 ا% " . µ = 0, σ 2 = 1 ن2/I 3 : ا3"7 اR9ز2 ا3 ه,' , 6 :M/O اU & , 6@ ا,; [/ ا,ودا N (0,1) 0.0045 0.004 0.0035 0.003 0.0025 0.002 0.0015 0.001 0.0005 0 ! إ ره/ 9 , R9ز2I ج. 9 و: Lognormal `رw/ ا. 6D( از! ا5 M' 6 2 هa اSآ9 ! إ[ رM ; [ "ل ا.,?G- _ " تfآ R9ز2I & X M ا3?ا2O" اY ل ان ا2: . د ! ا`ات3 ل2ب اV :3 & ه, 6@ ا,; [/ ا, داW إذا آ3 X^ ر2 3"C f ( x) = 1 x 2πσ 2 e − 1 2σ 2 ( log x − µ )2 , x > 0 ; µ > 0, σ 2 > 0 !9 I وRJ2I & و، µ > 0, σ 2 > 0 E(X ) = e 1 2 µ+ σ 2 , V (X) =e ( 2 µ +σ 2 ) −e ذج ه2 ا% " ( 2 µ +σ ) 2 :M/O اU & , 6@ ا,; [/ ا,ودا 120 Lognormal 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 Y ل ان ا2: .,: اث6 ! أ, ج أز. 9 و: Exponential '( از! ا6 & R9ز2 ا, ودا, 6@ ا,; [/ ا, داW إذا آ3 اR9ز2I & X M ا3?ا2O"ا : ه λ e − λ x , x ≥ 0; λ > 0 f ( x) = otherwise 0, x<0 0, F ( x) = −λ x 1 − e , x ≥ 0 !9 I وRJ2I & و، λ > 0 2 هR9ز2 ا%" E(X ) = 1 λ , V (X ) = 1 λ2 :M/O اU & , 6@ ا,; [/ ا,ودا Exponential 2.5 2 1.5 1 0.5 0 .S ^ 3?ا2O Y ج اي. 9 ا- نR9ز2I 2 وه: Gamma #= !ز4 (7 , ودا, 6@ ا,; [/ ا, داW إذا آ - R9ز2I & X M ا3?ا2O" اY ا : & هR9ز2ا 121 β −1 − βθ x βθ , x > 0; β > 0, θ > 0 Γ β ( βθ x ) e f ( x) = ( ) 0, otherwise ∞ βθ β −1 − βθ t x>0 1 − ∫x Γ β ( βθ t ) e dt , ( ) F ( x) = 0, otherwise ;نa ' دβ ن2/I , ا3;و ∞ - , داI Γ ( β ) = ∫0 x β −1e − x dx ,اا !9 I وRJ2I & و، β > 0, θ > 0 3 هR9ز2 ا% " ، Γ ( β ) = ( β − 1)! E(X ) = 1 θ , V (X ) = 1 βθ 2 :M/O اU & , 6@ ا,; [/ ا, ودا.W X ,; V ` ! اR9ز2 ا,6! إزا/ 9 Gamma & ود ) أي 3?ا2O Y ج اي. 9 ا- نR9ز2I 2 وه: Beta !ز4 (8 , داW إذا آR9ز2I & X M ا3?ا2O" اY ا.( , X ود ود6 :3 & ه, 6@ ا,; [/ا β −1 1 α −1 Β α , β x (1 − x ) , 0 < x < 1; α , β = 1, 2,... ) f ( x) = ( 0, otherwise وα 3 هR9ز2 ا% " ،, ' و,-2 β وα %: Β (α , β ) = Γ (α ) Γ ( β ) ,اا Γ (α + β ) ! ه9 واRJ2 ا، β E(X ) = α αβ , V (X)= 2 α +β (α + β ) (α + β + 1) 122 بf [ 0,1] ! U H R2I !/ 9 آW X ,; V ` ! اR9ز2 ا,6! إزا/ 9 :M/O اU & , 6@ ا,; [/ ا, ودا.W [ Beta 0.06 0.05 0.04 0.03 0.02 0.01 0 U Mع "ة ت آ2 H ! إ ره آ/ 9 , ج. 9 و: Erlang gfز! إر4 (9 P6 k ,-] ! ارT إرR9ز2I & X M ا3?ا2O" اY ا.3 اR9ز2I & :3 & ه, 6@ ا,; [/ ا, داW إذا آk = 1, 2,... k −1 − kθ x kθ k − 1 ! ( kθ x ) e , x > 0 ; k = 1, 2,..., θ > 0 ) f ( x) = ( 0, otherwise ]T إرR9ز2I أن3"9 ا.وه 1 θ w2 3 اa 9 R9ز2ا ا. ;ن هk = 1 ان6T ,?ا2O"ات اY ! اk ع2 H ! رة2 ه3?ا2O Y "9ز2I ! إ رة/ 9 !9 واRJ2 واθ وk ] هT إرR9ز2I % " .3 اR9ز2I U 6 واM/ 3 ا,: ا 1 1 θ kθ 2 :M/O اU & , 6@ ا,; [/ ا, ودا. E ( X ) = , V ( X ) = ه Erlang 0.6 0.5 0.4 0.3 0.2 0.1 0 , آMO; ث9 6 قY ! اGج ا. 9 و:Weibull 6ز! و4 (10 Y ا._/ ز اU- M7"9 36 قY ! اG ; [ ا.Time-to-failure 123 & R9ز2 ا, ودا, 6@ ا,; [/ ا, داW إذا آM9 وR9ز2I & X M ا3?ا2O"ا : ه β β x −ν β −1 − x −ν e α , x ≥ ν ; −∞ < ν < ∞, α > 0, β > 0 f ( x ) = α α otherwise 0, x <ν 0, β F ( x) = x −ν − 1 − e α , x ≥ ν س: ا%" α > 0 وLocation Parameter ن/ ا%" −∞ < ν < ∞ ,X[ ا% " ا ! ه9 واRJ2 ا. Shape Parameter M/O ا%" β > 0 وScale Parameter 2 2 1 1 2 E ( X ) = ν + α Γ + 1 , V ( X ) = α Γ + 1 − Γ + 1 β β β :3 & ه, 6@ ا,; [/ ا,ودا Weibull 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 Discrete or Continuous 1از! ا وي ا أو ا (11 . ل6@ ` اU ,/ ا%: اR - آ ا م إذ انeج م ا. 9 و: Uniform , ودا, 6@ ا,; [/ ا, داW وي إذا آR9ز2I & X M ا3?ا2O" اY ا : & هR9ز2ا 1 , a ≤ x ≤ b ; −∞ < a < b < ∞ f ( x) = b − a 0, otherwise 124 0, x−a F ( x) = , b − a 1, x<a a≤ x≤b x≥b (b − a ) a+b .E(X ) = , V (X ) = 2 12 2 ! ه9 واRJ2 ا، b وa 3 هR9ز2 ا% " M ` واM ا وي اR9ز2 , 6@ ا,; [/ ا,دا Unif or m 1.2 1 0.8 0.6 0.4 0.2 0 M ` ا وي اR9ز2 , 6@ ا,/ ا,دا Uniform 1.2 1 0.8 0.6 0.4 0.2 0 %: ^ اU "فT ج ت. 9 و: Triangular /از! ا (12 & X M ا3?ا2O" اY ا.(ال2 )اXو6 [آ0 ا, :ى وا/ى واY ا : & هR9ز2 ا, ودا, 6@ ا,; [/ ا, داW وي إذا آR9ز2I 2( x − a) , a≤ x≤b ( b − a )( c − a ) 2(c − x) f ( x) = , b<x≤c ( c − b )( c − a ) 0, otherwise 125 x≤a 0, 2 ( x − a) , a< x≤b ( b − a )( c − a ) F ( x) = 2 c − x) ( 1 − c − b c − a , b < x ≤ c )( ) ( 1, x>c %" و اX 3?ا2O" اY , J MJ اM[ 9 −∞ < a < ∞ R9ز2 ا% " M[ 9 −∞ < c < ∞ %" و اX 3?ا2O" اY , J اآM[ 9 −∞ < b < ∞ ! ه9 اRJ2 اa ≤ b ≤ c P6 X 3?ا2O" اY Xو6 [آ0 ا, :ا E(X ) = a+b+c 19 7 , V ( X ) = ( a 2 + b 2 + c 2 ) + ( ab + ac + bc ) 3 18 9 :3 & ه,; [/ ا, داM/و Triangular 0.6 0.5 0.4 0.3 0.2 0.1 0 ," H ! ` ا ت ا,9 " إ دة ا: Empirical 6Tاز! ا (13 ,[ "ة أJ7I J و. هاتO ا79 يN R9ز2I HT م دة9و .,: ل ا2 ` ا3; & : Parameters Estimation .*) ا4 .,; ا "و,? 6@ق ا7 R9ز2ا ا. ه% " 9: م2: ،ح: R9ز2I " ا"ف ،& " 9: م2: ,: ق ا7 R9ز2 اM/ ة و " ا"ف7" هات اO ; ! ا : تJ" 7"I 3 وا,"! ا9 I وw2 % " ا5. ه%و ! أه 126 2 ه," اw2 { x1 , x2 ,..., xn } U G 3 واX 3?ا2O Y ! n U H6 ," x= 1 n ∑ xi n i =1 2 ه,"! ا9 Iو s2 = 1 n 2 xi − nx 2 ∑ n − 1 i =1 2 هw2 ;ن ا,9ار/I تb; 3; ," H هاتO و ∑ x= ∑ k i =1 k f i xi i =1 fi ∑ = n i =1 f i xi n !9 I و، تb` د اk وi %J ر,b`ار ا/I fi P6 s2 = 1 k fi xi2 − nx 2 ∑ n − 1 i =1 :ت. ازa.6 * ا*)رات اa. :% " اg ,6: رات ا: واU " و, U " ت ا9ز2! " ا9 3 ول اHا Distribution Parameters Suggested Estimators Poisson α αˆ = x Exponential λ λˆ = Gamma Uniform 1 βˆ = 0.105 + 0.504 n 1 ℓn x − ∑ ℓn xi n i =1 1 θˆ = x β ,θ n +1 bˆ = Max ( x ) n b on ( 0, b ) Normal 1 x µ ,σ 2 µˆ = x , σˆ 2 = s 2 127 1β 1 n β ∑ xi n i =1 α, β Weibull αˆ = with ν = 0 βˆ'0 = ( ( f βˆ" j −1 x ˆ , β j = βˆ j −1 − s f ′ βˆ" j −1 f (β ) = + ∑ ℓnxi − β n ∑ i =1 xiβ ℓnxi n n n ∑ i =1 f ′( β ) = − β2 − n xβ i =1 i n∑ i =1 xiβ ( ℓnxi ) n n ) ) ∑ n xβ 2 + i =1 i n ( ∑ x ℓnx ) (∑ x ) β n i =1 i n 2 i β 2 i =1 i : Goodness of Fit Tests [ Dرات أو =دة ا60إ : Quantile-Quantile Plots ت. ا-ت. ت ا#' ر:fاو R ;ن اF ( x ) = P ( X ≤ x ) , − ∞ < x < ∞ 3 اآI R9ز2I , & دا3?ا2O Y X إذا آ ن إذا آ نF (γ ) = P ( X ≤ γ ) = q, 0 < q < 1 P γ , : ا2 هX 3?ا2O" اY q : X ! , { x1 , x2 ,..., xn } !/ . γ = F −1 ( q ) ب ;ن2: 3 ااآR9ز2 P6 { y(1) , y( 2) ,..., y( n) } SI! " ا/آ وq Y'0 هات ! اO اSI ر:(1) ة27ا .آq G I j = n وY'q G 9 j = 1 أي انSI ا%J رj !/ y(1) ≤ y( 2) ≤ ... ≤ y( n) j − 0.5 S6 أ:(2) ة27ا n . F −1 j − 0.5 V y j % أر:(3) ة27ا n . F −1 X ; ] ان9:I a ' 1 M & %: w 9:I ]I ا% إذا آ ن ا:(4) ة27ا . F ( x ) R9ز2 & ا79 Excel )ام$'_ Quantile-Quantile Plots ت. ا-ت. ت ا#'ر : 2 w2 3 اR9ز2I ! 3IeI , هات اO ان ا:"9 0.20692 0.58793 1.21450 0.41281 1.31682 0.29661 3.21539 5.33858 2.09976 1.18708 2.97769 1.41334 0.67564 0.39297 1.49500 2.44013 1.92938 0.15600 5.91988 2.58200 1.09586 4.20245 1.09669 5.00697 0.39858 2.92840 1.05554 0.44567 2.55631 1.59807 0.33593 6.20755 0.59653 0.13079 2.76867 1.99443 0.99720 1.01247 4.08498 4.30203 2.49832 5.17293 3.51228 0.22544 6.50522 1.90866 0.45222 0.06469 0.50055 2.48196 2.09068 0.33031 1.19646 2.00545 2.47376 1.14820 0.55138 4.09509 5.18077 0.58391 0.53511 5.33081 0.23273 0.33408 1.09374 1.97417 0.16207 0.67742 6.34901 3.61865 5.66158 0.37610 0.67374 0.59829 0.01717 1.41298 4.37080 1.28729 2.91489 1.34904 5.42604 5.78524 3.23956 6.51468 2.25422 1.35675 1.95070 0.42152 0.89192 0.75789 1.37260 0.94249 2.39745 3.28936 0.83093 0.73263 1.53591 1.38920 1.45426 0.76330 . د:@ا ا. هV اوf" q-q %أم ر 128 ا :Mأد Mا : Excel ! , `' 3; 3 ;] ا %ا :3 وا ! aVر q-q %أن ا Oهات 2/9T Jن 2I Uز R9ا.3 :,N6ه.ا ا@ ر "9اأي ا 3 Oو` & .A9Tدا 7I SH9 Mأ6 ا@ رات ا ., 129 Chi-square Goodness of Fit [ Dدة اT ! آي# ر60 إ: ` : Test Y ! 3IeI هاتO ! ا,2 H أن,V` ا9 7دة ا2H آ يR إ ر "! أيR9ز2I R9 3?ا2O H 0 : X is distributed with F ( x ) H1 : X is not distributed with F ( x ) ,? k χ 02 = ∑ ( Oi − Ei ) 6@ ;ن ا,9` ا,V` ا, ' و أ س 2 Ei i =1 i ,b` ا3; R:I 3 هات اO د اOi P6 k − 1 ,96 ت- آ ي رR R9ز2I U ن2/9 . ا `وضR9ز2ب ! ا2 ,b` ` ا3; R:9 ي. هات اO ! اRJ2 ا"د اEi و Chi-square Goodness of Fit Test [ Dدة اT ! آي# ر60إ : Excel )ام$'_ 3 w2 ن2ا2 R9ز2I U ان:"9 , هات اO ا 3 3 1 3 4 2 3 3 9 2 3 4 3 3 7 2 2 5 1 6 2 4 3 1 6 4 2 2 4 6 6 2 1 3 1 2 4 2 1 5 3 3 2 3 1 1 3 2 3 2 6 3 6 4 1 2 1 2 5 2 1 4 5 4 6 3 4 1 8 3 1 0 1 2 2 3 1 2 3 5 2 5 5 3 6 0 1 2 5 6 3 3 3 2 3 2 4 3 2 5 3 w2 ن2ا2 R9ز2I R هاتO ا7I دة2- أ :M ا ,J" ! ا,"J2 ا%: اS I Ei = n × P ( X = xi ) , xi = 0,1, 2,... ;نx1 = 0 , : [ ; E1 = 100 × P ( X = 0 ) = 100 × 30 −3 e 0! Excel , `' 3; 3 اMا أد. ب ه 130 ;] ا %:ا :, ا:ار9 :ك S 7آ .!9 إ ر Rآ ي ! ا@ رات ا ,`"fو 3/ 2X2 ]? Mق T Uان 2/Iن %H6ا" ,آ و2/Iن R -ا %:ا ,"J2أآ ! , 6 3`; 5و2-د ,"J2 %Jأ5 ! MJ ] Iه 5.ا %J R %:ا` bت ا Hورة . Uإ ر آ2-2 2روف2 -ف أ2Jى ! إ ر Rآ ى وأآ[ ,:X2آ ا& H60 a 9م Y' ,ة. ` :إ60ر آ=روف ' -ف Tدة اK-S Goodness of [ D : Fit Test إذا آ ن 2O Y Xا? & 3دا2I ,زI R9اآ F ( x ) = P ( X ≤ x ) , − ∞ < x < ∞ 3وآ W ! , 9ه.ا ا2ز; { x1 , x2 ,..., xn } R9ن دا ,ا2ز R9ااآ 3ا:,J" 7"I 39H 131 Sn ( x ) = number of x1 , x2 ,..., xn ≤ x n x(1) ≤ x( 2) ≤ ... ≤ x( n ) P x(1) , x( 2) ,..., x( n ) M/O اx1 , x2 ,..., xn هاتO اWIوإذا ر ;ن 0, k Sn ( x ) = , n 1, ,? x < x(1) x( k ) ≤ x < x( k +1) , k = 1, 2,..., n x ≥ x( n ) 6@ اS F ( x ) 3 ااآR9ز2 ! ا3IeI ," أن ا,V` ا3/; D = max F ( x ) − S n ( x ) . α = 0.05 ,92" ى2 g وذ1.36 n R ,? 6@ رن ا:I n ≥ 35 %:و K-S Goodness of Fit [ Dدة اT ' ف-ر آ=روف60إ : Excel )ام$'_ Test . α = 0.05 ,V` ا5. أ ه.3 J 3"C R9ز2I ! , هات اO أن ا:"9 :, V2 ا اR 3 اM/O ا3; aV2 2 هات آ هO اM :, ا,H " ا ب ا,: ا, ` ] ! ا9 132 ا:ار9 :ك S 7آ .!9 133 :! ا ا SIMAN (SIMulation ANalysis) اآةu )ام$'_ اآة , HI رC وإMODEL FRAME ذج2 رC ! إSIMAN ! M /ذج ا2 ن ا2/9 EXPERIMENT FRAME ذج2 ر اC إ3; وا" رات. مN ! اV اث6q 3:7 _ ا@ ب ا9 :ذج2 ر اCإ SM.MOD آ [ لMOD ,; V@ ا _ ا7"9 وBLOCKS Sا2J 3 I ' I , H ر اC إ3; ا" رات.ذج2 اء ا-@ , H"! وط ا9 :, H ر اCإ SM.EXP آ [ لEXP ,; V@ ا _ ا7"9 وELEMENTS SIMAN ات إ=اءD0 1- C:\SIMAN5\MODEL.EXE EXAMPLE.MOD ====> EXAMPLE.M 2- C:\SIMAN5\EXPMT.EXE EXAMPLE.EXP ====> EXAMPLE.E 3- C:\SIMAN5\LINKER.EXE EXAMPLE.M EXAMPLE.E ====> EXAMPLE.P 4- C:\SIMAN5\SIMAN.EXE EXAMPLE.P ====> EXAMPLE.OUT Text File *.MOD Text File *.EXP MODEL EXPMT *.M *.E LINKER *.P SIMAN *.OUT 134 SIMAN A =31أ'' ت ا " ت،د2: ، ت6 ،R7J ،!? G اM[ مN ب ل اI أ ء: ENTITIES ? ت/ ا.dا . JA ? ت/ ا,آ6 _J2I P6 رN إC : QUEUES ا2C ، 'اف، ل،تTh اM[ ? ت/ اU 9 3 م اNاء اG- أ: RESOURCES ارد2 .d " ت اC ! ز،ل2'2 اWJ و،,`2ع ا2 M[ !? آM/ ,' %J M[ I و: ATTRIBUTES '` ت.d ا, ا _? 2 د اM[ مN ا, 6 _ I %J M[ I و: GLOBAL VARIABLES , اتY .d ا,6 ت اTh د ا، مN ا3; : SIMAN u )2ا : MODEL BLOCKS ذج1 ا-ا BEGIN, Model Listing, Model Name; CREATE, Batch Size, Offset Time: Interval, Maximum Batches; ( CREATE: EXPONENTIAL(4.4) ) ASSIGN: Variable or Attribute = Value: repeats; QUEUE, Queue ID, Capacity, Balk Label; SEIZE, Priority: Resource ID, Number of Units:repeats; (SEIZE,3: DELAY: / SEIZE: Machine:Worker) Duration, Storage ID; RELEASE: COUNT: Worker, 2; Resource ID, Quantity to Release: repeats; Counter ID, Counter Increment; (COUNT: JobsDone; / COUNT: 7, BatchSize) DISPOSE; MARK (Attribute ID); * A modifier that can be added to any block in the model. * It stores the time at which an entity arrives at the block in an attribute of the activating entity 135 TALLY: Tally ID, Value; * Tally ID: specifies the tally register to which the observations are added (Tally’s name or number defined in TALLIES) * Value: specifies the value recorded at each entity’s arrival at the block. It can be any SIMAN defined or user defined variable or an expression involving one or more variables * Interval( Attribute ID): To record the elapsed time (TNOW – Attribute Value) * Between: To Record the time between successive arrivals to the block. (TNOW – Time of Previous Arrival) BRANCH, Max Number of Branches: WITH, Probability, Label: IF, Condition, Label: ELSE, Label: ALWAYS, Label; (BRANCH, 2: ALWAYS, Repeat: IF, TNOW < 4, Go;) : EXPERIMENT ELEMENTS T اH12 PROJECT, Title, Analyst Name,Date,Summary Report; ATTRIBUTES: Number, Name(Index), Initial Values, …:repeats; QUEUES: Number, Name, Ranking Criterion: repeats; {FIFO, LIFO, LVF(A ID), HVF(A ID)} RESOURCES: Number, Name, Capacity: repeats; COUNTERS: Number, Name, Limit, Initialize Option, Output File: repeats; REPLICATE: Number of Replications, Beginning Time, Replication Length, Initialize System, Initialize Statistics, Warm-Up Period; 136 DSTATS: Number, Expression, Name, Output File: repeats; * To record statistics about time-dependent variables * For sequences of values persisting over a period of time * The statistics for the sequences of values are weighed by the length of the period the value persist TALLIES: Number, Name, Output File: repeats; * To record statistics about observational data * For sequences of values that are one-shot (non-persistent) * The statistics for the sequences are based on equally weighed observations VARIABLES: Number, Name(Index), Initial Values, …: repeats; STORAGES: Number, Name: repeats; (Associated with DELAY block) 137 The Single Machine Problem اا)ة1 B ا/BJ# :1ل# M"& آ7J M I ول0ع ا2 ا. تH ! ` ! ! ا2 ة @ ج6 وا," آI ,ور , " M 9 R7: ! ا3 [ع ا2 ا., & آM " ? J د4 ج إ9 ? وJ د10 ,"7: ج اI ? وJ د6 M آ," ,"7J M I %X ول0ع ا2 ! ا,"7J ل أول2' ? ! وJد ., ا آM ? J د3 , . ت8 3; U- ! إ/ 9 3ع وا2 M ! آR7:د د ا6 Type 1 Arrivals Out Buffer Machine Type 2 Arrivals : أنxf . ? ت/ ا3 هR7: ا. '` ت3 هProcessTime ,"7: اM " و ز ! اJobTybe ,`2ع ا2 . Buffer , G ر ه2 7 ا.رد2 3 ه, ا آ:[D1إ ب ا - CREATE arriving jobs. -ASSIGN values to ProcessTime and JobType. - QUEUE the jobs for machine in the Buffer - SEIZE the machine. - DELAY by ProcessTime. - RELEASE the machine. - COUNT the JobType completed. - DISPOSE of the finished jobs. 138 SM.EXP : T ا9/# BEGIN; ;Single Machine job Shop PROJECT, Single Machine, OR241; ATTRIBUTES: 1, JobType: 2, ProcessTime; RESOURCES: 1, Machine, capacity(1); QUEUES: 1, Buffer; COUNTERS: 1, Type 1 Job Count: 2, Type 2 Job Count; REPLICATE, 1, 0, 480; END; SM.MOD :ذج1 ا9/# BEGIN; ;Single machine job shop ;Attributes: JobType, ProcwssTime ;Resources: Machine ;Queue: Buffer CREATE: 10; Create type 1 jobs ASSIGN: JobType=1: ProcessTime=4: NEXT(process); CREATE, 1, 5: 6; Create type 2 jobs ASSIGN: JobType=2: ProcessTime=3; processQUEUE, Buffer; SEIZE, 1: machine, 1; DELAY: ProcessTime; 139 RELEASE: machine; COUNT: JobType; DISPOSE; END; :3 م2: , Hذج وا2 ` ت ا, " آ 1- C:\SIMAN5\MODEL.EXE SM.MOD ====> SM.M 2- C:\SIMAN5\EXPMT.EXE SM.EXP ====> SM.E 3- C:\SIMAN5\LINKER.EXE SM.M SM.E ====> SM.P 4- C:\SIMAN5\SIMAN.EXE SM.P ====> SM.OUT :]; SM.OUT :=ت$ ا9/# SIMAN V - License #6666666 Systems Modeling Corporation Summary for Replication 1 of 1 Project: Single Machine Run execution date : 7/28/2002 Analyst: OR241 Model revision date: 7/28/2002 Replication ended at time : 480.0 COUNTERS Identifier Count Limit _________________________________________ Type 1 Job Count 48 Infinite Type 2 Job Count 79 Infinite Execution time: 0.00 minutes. Simulation run complete. 140 : 2 ل# 3ن أ2/9 ول0ع ا2 ! اR7: ل2'2! ا , أن ازP ذج ا2 ر ا27 ف2 M " )ا, ز ! ا،? J د6 w2 3 أ3 [ع ا2 ! اR7: ? وJ د10 w2 .,:J د4.5 و1.5 ! وي3 [ع ا2 ? وJ د6 و2 ! ول وي0ع ا2 (,"7:ا :, ? ت ا 6@ اR -ا . Machine Utilization , ا آ, "; -1 .ر2 7 ا3; ةN اR7: د ا-2 .R7: مN ا3; قY ! اG ا-3 .! اوج , از-4 Type 1 Arrivals EXP(10) Out Buffer Machine Type 1 PT U(2,6) Type 2 PT U(1.5,4.5) Type 2 Arrivals EXP(6) SM2.EXP : T ا9/# BEGIN; ;Modified Single Machine job Shop PROJECT, Single Machine, OR241; ATTRIBUTES: JobType: ProcessTime: ArrTime; RESOURCES: Machine; QUEUES: Buffer; COUNTERS: Type 1 Job Count: Type 2 Job Count; TALLIES: Flowtime: ExitPeriod; 141 DSTATS: NQ(Buffer), Queue Length: NR(Machine), Machine Utilization: REPLICATE, 1, 0, 480; END; SM2.MOD :ذج1 ا9/# BEGIN; ;Modified Single machine job shop CREATE: EXPO(10): MARK(ArrTime); ASSIGN: JobType=1: ProcessTime=UNIF(2,6): NEXT(process); CREATE, 1, 5: EXPO(6): MARK(ArrTime); ASSIGN: JobType=2: ProcessTime=UNIF(1.5,4.5); process QUEUE, SEIZE: DELAY: Buffer; machine; ProcessTime; RELEASE: machine; TALLY: 1, INTERVAL(ArrTime); TALLY: 2, BETWEEN; COUNT: JobType; DISPOSE; END; :3 م2: , Hذج وا2 ` ت ا, " آ 1- C:\SIMAN5\MODEL.EXE SM2.MOD ====> SM2.M 2- C:\SIMAN5\EXPMT.EXE SM2.EXP ====> SM2.E 3- C:\SIMAN5\LINKER.EXE SM2.M SM2.E ====> SM2.P 4- C:\SIMAN5\SIMAN.EXE SM2.P ====> SM2.OUT :]; 142 SM2.OUT :=ت$ ا9/# SIMAN V - License #6666666 Systems Modeling Corporation Summary for Replication 1 of 1 Project: Single Machine Run execution date : 7/29/2002 Analyst: OR241 Model revision date: 7/29/2002 Replication ended at time : 480.0 TALLY VARIABLES Identifier Average Variation Minimum Maximum Observations ____________________________________________________________________________ ___ Flowtime 7.6548 .56697 1.5939 18.865 116 ExitPeriod 4.1137 .61447 1.5089 18.021 115 DISCRETE-CHANGE VARIABLES Identifier Average Variation Minimum Maximum Final Value ____________________________________________________________________________ ___ Queue Length 1.0582 1.1846 .00000 5.0000 1.0000 Machine Utilization .80701 .48902 .00000 1.0000 1.0000 COUNTERS Identifier Count Limit _________________________________________ Type 1 Job Count 43 Infinite Type 2 Job Count 73 Infinite Execution time: 0.00 minutes. Simulation run complete. 143 #ل : 3 # 2ا 9yو: Two Job Types and Two Workstation 2 D# Repair Reject Depart Good Buffer Inspector Buffer Machine ا R7:ا اد MI U" Iو NIدوره %9 3/ا" 2 U Mا ,7آ ,وا6ة " .إ Uء ,ا Rا آ; ,ن ا I R7:إ ا` _ Iا R7:ا آ; %9 P6 , X , . U ,7 " ,آHة او ; ,V2او "9د ، U" Iا R7:اHة واR7: ا ; YI ,V2در ا Nم وا R7:ا "9 3د R-I U" Iة اى إ 3ا آ ,ا0و P6 "9د ا" ، U Mا Nا w7ا.5 ز! ! ا2'2ل 2 R7:زع ا 9 w2د ! !2 -29 .? Jا _? 2اM I 3 2O M/Oا? ! U 30% ،3ا2ع ا0ول و U 70% ! ا2ع ا[ ،3ا R7:ا Nة " SII U Mآ ! Mا آ ,و ,7ا` ،و ?_ ا2ع ا0ول Uا; ,f و ?_ ا2ع ا[ ! V 3ا2 7ر ا2ا ،6اGHء ا0ول ! ا2 7ر 2 9ي ا2ع ا0ول ! ا S6 ,I _? 2ز ! و' ; U2ا2 7ر ،وا2ع ا[ ! 3ا R9 _? 2ا2ع ا0ول ! ا _? 2و2/9ن S6 SIا2'2ل ا N . f9م ا` ^ ,f;0غ " إذا آ W و` ! ,ا2ع ا[ U M "9 3أ Xء و'2ل و` ! ,ا2ع ا0ول ;ن ا" 9 M ا ,"7:ا[ ,و ،R7:9Tا R7:ا "9 3د 2"I U" Iد إ 2 Cر ا آ MJe ,ا; ,fوآU g. أ MJأ; , 3; ,fإ دة ا` ،وه./ا X -29ث إ' ف ! اI ,f;0م ا آ ,و ,7ا` 2 :ع أول و2ع 3 Xو2ع " د .&" I ز ! ا` Y ،,"7J M/ا U2 !Nأو 2ع ا" 2I & ، U Mز( 5,8,10) 3[[ R9 ! ا _? 2ا `I 3 ,7ا` - _ I U 80%ة و YIدر ا Nم10% ، ,V2; _ I Uو YIدر ا Nم ا "9 _ I U 10% ، f9د U" Iو2"Iد إ 2 Cر ا آ ` ،,ا Sا 7I ,:آ ! Mا ! !2ا Y _? 2ا, 6 ! N إ دة ا 6T ،Rان اي و` !/ 9 ,إ دة ا" U Mة ات. 144 3"C R9ز2I & U" I وا " د3 [ول وا0ع ا2 ! اR7: اM " واf ز ! ا :3 ول اH ا3; ? آJ ,9 ت وإ ا; ت " ر72 Regular Rework Mean Std Mean Std Type 1 5 2 4 1 Type 2 3 1 2 1 ,`2ع ا2 S6 ,U اR7: د اMHI و,:J د480 م ةNا ا.آ ة ه , ";ر و2 C Mل آ2C ! ? ت 2ه; ه 6 إR H انf9 ا9 .,V2; اR7: 3/ ا"د اg.وآ 3; R7:& اJYI ي. ! اG ?_ ( وا2اع ا2ع ! ا2 M/ ` ا, "; M OIارد ) و2 ا . مNا SM3.EXP : T ا9/# 145 SM3.MOD :ذج1 ا9/# :3 م2: , Hذج وا2 ` ت ا, " آ 1- C:\SIMAN5\MODEL.EXE SM3.MOD ====> SM3.M 2- C:\SIMAN5\EXPMT.EXE SM3.EXP ====> SM3.E 3- C:\SIMAN5\LINKER.EXE SM3.M SM3.E ====> SM3.P 4- C:\SIMAN5\SIMAN.EXE SM3.P ====> SM3.OUT :]; 146 SM3.OUT :=ت$ ا9/# 147 :, اا ] اM ; أدرس و:!9 رI 1) MODEL FILE: SIMPLE QUEUEING EXAMPLE BEGIN; CREATE: EXPO(4.4); QUEUE, BUFFER; SEIZE: MACHINE; DELAY: RELEASE: TRIA(3.2,4.2,5.2); MACHINE; COUNT: JOBSDONE; DISPOSE; END; EXPERMINT FILE: SIMPLE QUEUEING EXAMPLE BEGIN; PROJECT, SAMPLE PROBLEM; DISCRETE, 100; QUEUES: BUFFER; RESOURCES: MACHINE; COUNTERS: JOBSDONE; REPLICATE, 1, 0, 480; END; 148 2) MODEL FILE: Simple Processing System ; ; ; Model statements for module: Arrive 1 ; 42$ CREATE, 1:EXPO( 5.0):MARK(Time of Arrival); 3$ STATION, In Door; 51$ TRACE, -1,"-Arrived to system at station In Door\n":; 6$ ASSIGN: Picture=Default; 27$ DELAY: 0.; 55$ TRACE, -1,"-Transferred to next module\n"::NEXT(0$); ; ; ; Model statements for module: Server 1 ; 0$ STATION, Machine; 158$ TRACE, -1,"-Arrived to station Machine\n":; 121$ DELAY: 0.; 165$ TRACE, -1,"-Waiting for resource Machine_R\n":; 82$ QUEUE, Machine_R_Q:MARK(QueueTime); 83$ SEIZE, 1: Machine_R,1; 192$ BRANCH, 1: If,RTYP(Machine_R).eq.2,193$,Yes: If,RTYP(Machine_R).eq.1,95$,Yes; 193$ MOVE: Machine_R,Machine; 95$ TALLY: Machine_R_Q Queue Time,INT(QueueTime),1; 202$ DELAY: TRACE, 0.0; -1,"-Delay for processing time TRIA( 1, 4, 8)\n":; 149 84$ DELAY: TRIA( 1, 4, 8); 166$ TRACE, -1,"-Releasing resource\n":; 85$ RELEASE: Machine_R,1; 149$ DELAY: 0.; 172$ TRACE, -1,"-Transferred to next module\n"::NEXT(2$); ; ; ; Model statements for module: Depart 1 ; 2$ STATION, Out Door; 233$ TRACE, -1,"-Arrived to station Out Door\n":; 203$ DELAY: 0.; 225$ COUNT: Production,1; 230$ TALLY: Flowtime,Interval(Time of Arrival),1; 240$ TRACE, -1,"-Disposing entity\n":; 232$ DISPOSE; EXPERMINT FILE: Simple Processing System PROJECT, Simple Processing System,Desdemona Rocketship; ATTRIBUTES: QueueTime: Time of Arrival; QUEUES: Machine_R_Q,FIFO; PICTURES: Default; RESOURCES: Machine_R,Capacity(1,),-,Stationary; 150 STATIONS: In Door: Out Door: Machine; COUNTERS: TALLIES: Production; Machine_R_Q Queue Time: Flowtime; DSTATS: NR(Machine_R),Machine_R Busy: NQ(Machine_R_Q),# in Machine_R_Q: MR(Machine_R),Machine_R Available; REPLICATE, 1,0.0,15,Yes,Yes; 151 3) MODEL FILE: Electronic Assembly and Test ; ; ; Model statements for module: Arrive 1 ; 50$ CREATE, 1:EXPO( 5 ):MARK(Arrival Time); 51$ ASSIGN: Sealer Time=TRIA( 1 , 3 , 4 ); 11$ STATION, 59$ TRACE, -1,"-Arrived to system at station Part A Arrive\n":; 14$ ASSIGN: Picture=Default; 35$ DELAY: 0.; 64$ TRACE, -1,"-Transferred to station Part A Prep\n":; 37$ ROUTE: 2,Part A Prep; Part A Arrive; ; ; ; Model statements for module: Arrive 2 ; 129$ CREATE, 4:EXPO( 30 ):MARK(Arrival Time); 130$ ASSIGN: Sealer Time=NORM( 2.4 , 0.5 ); 90$ STATION, Part B Arrive; 138$ TRACE, -1,"-Arrived to system at station Part B Arrive\n":; 93$ ASSIGN: Picture=Default; 114$ DELAY: 0.; 143$ TRACE, -1,"-Transferred to station Part B Prep\n":; 116$ ROUTE: 2,Part B Prep; ; 152 ; ; Model statements for module: Server 1 ; 0$ STATION, Part A Prep; 245$ TRACE, -1,"-Arrived to station Part A Prep\n":; 208$ DELAY: 0.; 252$ TRACE, -1,"-Waiting for resource Part A Prep_R\n":; 169$ QUEUE, Part A Prep_R_Q:MARK(QueueTime); 170$ SEIZE, 1: Part A Prep_R,1; 279$ BRANCH, 1: If,RTYP(Part A Prep_R).eq.2,280$,Yes: If,RTYP(Part A Prep_R).eq.1,182$,Yes; 280$ MOVE: Part A Prep_R,Part A Prep; 182$ TALLY: Part A Prep_R_Q Queue Time,INT(QueueTime),1; 289$ DELAY: 0.0; TRACE, -1,"-Delay for processing time TRIA( 1 , 4 , 8 )\n":; 171$ DELAY: TRIA( 1 , 4 , 8 ); 253$ TRACE, -1,"-Releasing resource\n":; 172$ RELEASE: 236$ DELAY: 0.; 258$ TRACE, -1,"-Transferred to station Sealer\n":; 176$ ROUTE: 2,Sealer; Part A Prep_R,1; ; ; ; Model statements for module: Server 2 ; 2$ STATION, Part B Prep; 366$ TRACE, -1,"-Arrived to station Part B Prep\n":; 329$ DELAY: 0.; 153 373$ TRACE, -1,"-Waiting for resource Part B Prep_R\n":; 290$ QUEUE, Part B Prep_R_Q:MARK(QueueTime); 291$ SEIZE, 1: Part B Prep_R,1; 400$ BRANCH, 1: If,RTYP(Part B Prep_R).eq.2,401$,Yes: If,RTYP(Part B Prep_R).eq.1,303$,Yes; 401$ MOVE: Part B Prep_R,Part B Prep; 303$ TALLY: Part B Prep_R_Q Queue Time,INT(QueueTime),1; 410$ DELAY: 0.0; TRACE, -1,"-Delay for processing time TRIA( 3 , 5 , 10 )\n":; 292$ DELAY: TRIA( 3 , 5 , 10 ); 374$ TRACE, -1,"-Releasing resource\n":; 293$ RELEASE: 357$ DELAY: 0.; 379$ TRACE, -1,"-Transferred to station Sealer\n":; 297$ ROUTE: 2,Sealer; Part B Prep_R,1; ; ; ; Model statements for module: Inspect 1 ; 4$ STATION, Sealer; 523$ TRACE, -1,"-Arrived to Inspect station Sealer\n":; 464$ DELAY: 0.; 411$ QUEUE, Sealer_R_Q:MARK(QueueTime); 412$ SEIZE, 1: Sealer_R,1; 576$ BRANCH, 1: If,RTYP(Sealer_R)==2,577$,Yes: If,RTYP(Sealer_R)==1,425$,Yes; 577$ MOVE: Sealer_R,Sealer; 154 425$ TALLY: Sealer_R_Q Queue Time,INT(QueueTime),1; 594$ DELAY: 0.0; TRACE, -1,"-Delay for processing time Sealer Time with failure probability 0.09\n ":; 413$ DELAY: 420$ BRANCH, Sealer Time; 1: With,0.09,531$,Yes: Else,530$,Yes; 531$ TRACE, -1,"-Entity failed inspection\n":; 516$ DELAY: 0.0; 475$ RELEASE: 500$ DELAY: 0.; 535$ TRACE, -1,"-Transferred to station Rework\n":; 419$ ROUTE: 2,Rework; 530$ TRACE, -1,"-Entity passed inspection\n":; 515$ DELAY: 0.0; 414$ RELEASE: 499$ DELAY: 0.; 541$ TRACE, -1,"-Transferring to station Shipping\n":; 418$ ROUTE: 2,Shipping; Sealer_R,1; Sealer_R,1; ; ; ; Model statements for module: Inspect 2 ; 6$ STATION, Rework; 707$ TRACE, -1,"-Arrived to Inspect station Rework\n":; 648$ DELAY: 0.; 595$ QUEUE, Rework_R_Q:MARK(QueueTime); 155 596$ SEIZE, 1: Rework_R,1; 760$ BRANCH, 1: If,RTYP(Rework_R)==2,761$,Yes: If,RTYP(Rework_R)==1,609$,Yes; 761$ MOVE: Rework_R,Rework; 609$ TALLY: Rework_R_Q Queue Time,INT(QueueTime),1; 778$ DELAY: 0.0; TRACE, -1,"-Delay for processing time EXPO( 45 ) with failure probability .2\n":; 597$ DELAY: 604$ BRANCH, EXPO( 45 ); 1: With,.2,715$,Yes: Else,714$,Yes; 715$ TRACE, -1,"-Entity failed inspection\n":; 700$ DELAY: 0.0; 659$ RELEASE: 684$ DELAY: 0.; 719$ TRACE, -1,"-Transferred to station Scrap\n":; 603$ ROUTE: 2,Scrap; 714$ TRACE, -1,"-Entity passed inspection\n":; 699$ DELAY: 0.0; 598$ RELEASE: 683$ DELAY: 0.; 725$ TRACE, -1,"-Transferring to station Salvaged Parts\n":; 602$ ROUTE: 2,Salvaged Parts; Rework_R,1; Rework_R,1; ; ; ; Model statements for module: Depart 1 ; 156 8$ STATION, Shipping; 809$ TRACE, -1,"-Arrived to station Shipping\n":; 779$ DELAY: 0.; 801$ COUNT: Shipping_C,1; 806$ TALLY: Shipping_Ta,Interval(Arrival Time),1; 816$ TRACE, -1,"-Disposing entity\n":; 808$ DISPOSE; ; ; ; Model statements for module: Depart 2 ; 9$ STATION, Salvaged Parts; 848$ TRACE, -1,"-Arrived to station Salvaged Parts\n":; 818$ DELAY: 0.; 840$ COUNT: Salvaged Parts_C,1; 845$ TALLY: Salvaged Parts_Ta,Interval(Arrival Time),1; 855$ TRACE, -1,"-Disposing entity\n":; 847$ DISPOSE; ; ; ; Model statements for module: Depart 3 ; 10$ STATION, Scrap; 887$ TRACE, -1,"-Arrived to station Scrap\n":; 857$ DELAY: 0.; 879$ COUNT: Scrap_C,1; 884$ TALLY: Scrap_Ta,Interval(Arrival Time),1; 894$ TRACE, -1,"-Disposing entity\n":; 157 886$ DISPOSE; EXPERMINT FILE: Electronic Assembly and Test PROJECT, Electronic Assembly and Test,Mr. Munchkin; ATTRIBUTES: Sealer Time: Arrival Time: QueueTime; QUEUES: Part B Prep_R_Q,FIFO: Rework_R_Q,FIFO: Part A Prep_R_Q,FIFO: Sealer_R_Q,FIFO; PICTURES: Default; RESOURCES: Sealer_R,Capacity(1,),-,Stationary: Part A Prep_R,Capacity(1,),-,Stationary: Rework_R,Capacity(1,),-,Stationary: Part B Prep_R,Capacity(1,),-,Stationary; STATIONS: Part B Arrive: Shipping: Rework: Part B Prep: Sealer: Part A Prep: Scrap: Part A Arrive: Salvaged Parts; COUNTERS: Salvaged Parts_C: 158 Scrap_C: Shipping_C; TALLIES: Salvaged Parts_Ta: Rework_R_Q Queue Time: Sealer_R_Q Queue Time: Scrap_Ta: Part B Prep_R_Q Queue Time: Shipping_Ta: Part A Prep_R_Q Queue Time; DSTATS: NQ(Rework_R_Q),# in Rework_R_Q: NR(Part A Prep_R),Part A Prep_R Busy: NQ(Sealer_R_Q),# in Sealer_R_Q: MR(Part B Prep_R),Part B Prep_R Available: NQ(Part A Prep_R_Q),# in Part A Prep_R_Q: MR(Sealer_R),Sealer_R Available: MR(Part A Prep_R),Part A Prep_R Available: MR(Rework_R),Rework_R Available: NR(Sealer_R),Sealer_R Busy: NR(Rework_R),Rework_R Busy: NR(Part B Prep_R),Part B Prep_R Busy: NQ(Part B Prep_R_Q),# in Part B Prep_R_Q; REPLICATE, 1,0.0,2000,Yes,Yes; 159 :#ا ا : ARENA اآة#> )ام$'_ = واآة31ا :#)*# Process Analysis, Modeling and آ ة ا" ت و,-. وM I 3; Arena I .Business Decision Support ل0ارات اJ % Simulation ! Resource رد2 ,7ا2 مN ا3; !? آ%9 M اء أو- أي إ3 هProcess , "وا . مNارد ا2 م ام2:I ا" وUf" R م وN ت ا2/ R M `I ,آ6 أ ء3 ? ت ه/وا .6ا2 م اN ا3; ? ت/ ! ا6ع وا2 ! [ن ه ك أآ2/9 J و. مNارد ا2 . مN ا3; ! ا" تM6 اI آ ? ت," g ا" ت وذ,-. Arena م2:I :Arena تB# ذج2 ;& إد ل ا%9 3 ا@ ب واw7 N ,-. ة ا.; UN; Arena ] MY ت2/ اص2 &; UN9 وO ا, `' N ,-. ة ا.; إ ب وw7 M/ ا" ت,62 ي2 9 وProject Bar وعO د ا2 وO , `' M/ ذج2 ا Navigate ال2Hة ا.; وReports Panel 9 ر: ا,62 وBasic Process Panel , 0ا UN; وعO د ا2 M ! دا90ر ا` رة اG wYf ت اى62 ,; V! إ/ 9 آPanel ا" تM[ رة27 ت62 ي2 I ! ا ` ت, ? J UN; Attach... U ار أ ر26 ة.; ' " ا,62 وBlocks Panel Sا2: ا,62 وAdvanced Process Panel رة27 ا . و^هElements Panel 160 161 SIMAN ( SIMulation ANalysis) اآةu , HI رC وإMODEL FRAME ذج2 رC ! إSIMAN ! M /ذج ا2 ن ا2/9 EXPERIMENT FRAME ذج2 ر اC إ3; وا" رات. مN ! اV اث6q 3:7 _ ا@ ب ا9 :ذج1ر اCإ SM.MOD آ [ لMOD ,; V@ ا _ ا7"9 وBLOCKS Sا2J 3 I ' I , H ر اC إ3; ا" رات.ذج2 اء ا-@ , H"! وط ا9 : Tر اCإ SM.EXP آ [ لEXP ,; V@ ا _ ا7"9 وELEMENTS 3b ا5 HI@ اRI وU Jآ ة وأ ت اY ى2J ! أ3 هSIMAN آ ة ا,Yو M " م2:I 3 ا,` اM " ا, آArena ] ري27 U أJ وObject-Orientation ري27 U"- J و.Arena ] GUI ,9ر2 ا م ا,- واW I 3`I 3 وا3"`ا , آR79 3/ ( f9 اVBA ,H ا,Y R ) ر27 ول ا م ا3; Arena ] .;ة م ا" دي2 ^ ة9- ات6و ., ا,[ 0 ا3; UV" ف2و 162 أو :fأ U/2 /#ا /.ت ا'' : #ل :1 2ف أ ء 2ذج أو M' `I 59G %X w 3أآ[ M 6إ إ"اض "%N 2/ت .Arena ء 2ذج ج إ 2Iا ? /ت ا 3; M `I 3ا Nم و ! %Xج إ ا ! ه5. ا ? /ت. 2آ ? ت م و6ة Create Moduleو Uم ا62ة Dispose Module و)ة و) )Create Module () 4 2I %9ا ? /ت 62ة Create Moduleإ %ا62ة 3; S/9دا Uو; 3ا7ف ا! 90 ا` -29 3د ا) 2و (`' 6 UN9آ -29ج وا ! 6ا62ة ) (. Mه.ة ا62ة ! Sأ.; ! U2:9ة ا" ت ا Basic Process , 0وا3 Arena ] 3; -2Iوه 5.ا ;.ة " Iت ا , 0وا "I 3أه %وأول ا" ت ; Arena 3وا0آ[ %N" 3; 2ا., N0 2Iا ? /ت ء Schedule WJ2او از , ! Inter Creation Time 2I ) .(ICTو Iك ا ? /ت ; 3ا Nم , U %أو ت ` .,و 9د 2ع ا !? /أ Xء 3; 52Iه 5.ا62ة. وIم ا62ة ^ Createآ :3 آا @ ,9ج .R I w 3; ,"7J و'2ل و SC M[ ) ,:Xأو أ 'ف أو إ رة ا HI , " (dر.,9 -و'2ل ز 2ن " %"7 M[ ) , ,أو gأو , :أو _2إم ا.(d 163 اص2 ة.; UN; !I ` رةU wYf وCreate ة6 وS U'ا2 ة.; رU@ , اCreate : ا@ بw7 ر2C 3; اص2ة ا.; :3 اM/O ا3; ه/ 3وا 164 Random(Expo) 3?ا2O Type ع2 ار26 ة.; 165 Schedule (,و-) WJ2I Type ع2 ار26 ة.; Constant W X Type ع2 ار2 ة ا.; Expression "I Type ع2 ار26 ة.; Expression "I Expression "I Type ع2 ار26 ة.; 166 :O ا, `' ر2C 3; اص2ة ا.; Random(expo) 3?ا2O Type ع2 ار26 ة.; Schedule (,و-) WJ2I Type ع2 ار26 ة.; Constant W X Type ع2 ار2 ة ا.; 167 Expression "I Type ع2 ار26 ة.; :3Ih ? آ ا.;ا2 M `و _'2ا ب27 ا 6 وModule Identifier ة62 "ف2وه Name %إ .ة62 اM/ UN9ر و/9T .2 ي. ?! ا/ ا%إ Entity Type !? /ع ا2 ي. اArrival Streem "ل2'2 اM" ع2 Type ع2 أوRandom "3?ا2O" M O9 و2 أوConstant "W X" أوSchedule "WJ2 " .Expression ""I" "3?ا2O" ع2ن ا2/9 w:; م9و Value , J , J 7"I" )وW X" ( أوw2 ا37";) .(20 M[ , X .ي م." اWJ2 ا%"ف "إ9و Schedule Name WJ2 ا%إ . مN ? ت/ل ا2' وw "ف9 "WJ2"ا ."WJ2I" ع2ن ا2/9 w:; م9و ."2! ا ! د "زI , J أوR9ز2I أي Expression "I .""I" ع2ن ا2/9 w:; م9و "2 ـ" ! ا, ! اGات ا6و Units ات6و First Creation Time "2I أوـ"ز ! أول ."WJ2I" ع2ن ا2/9 م9Tو .2I M م آN اM 3 ? ت ا/د ا Entities per Arrival ل2' وM/ !? آ M 9 و.2 3 ? ت ا/ دJأ Max Arrival ل2' وJأ 168 .2_ اJ29 %Jا ا.U ة2 ? ت ا/د ا . مN اM9 !? أول آ2 ز ! ائ First Creation 2I أول ."WJ2I" ع2ن ا2/9 م9Tو : SIMAN u/ Create ) 4 و)ة : T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Create 1.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"); PICTURES: Picture.Airplane: Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: 169 Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ENTITIES: Entity 1,Picture.Report,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Yes,,) ; :ذج1 ا9/# ; ; Model statements for module: Create 1 ; 0$ CREATE, 1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(EXPO(1)):NEXT(1$); 1$ ASSIGN: Create 1.NumberOut=Create 1.NumberOut + 1; Dispose Module (ءW )إz/$4 و)ة .& U مI م " إN ا3; !? /د ا2- ء وU@ ة62 ا5.م هIو : ^ م9و .ق2 R در اYI ," اءG- أ- .,9 رHI , ءU إ- 170 ., : دروY9 !? ز: ا@ بw7 ر2C 3; اص2ة ا.; و :O ا, `' ر2C 3; اص2ة ا.; و :ي2 Iو _'2ا ب27 ا M/ UNIة و62_ ا9" 6 و%إ Name %إ .ة62ا دم: ?! ا/ءات ا 6 إW د ; إذا آIو Record Entity !? /ءات ا .T أوMHI 6 إMH Statistics : SIMAN u/ Dipose z/$4 و)ة : T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Dispose 1.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; :ذج1 ا9/# ; ; Model statements for module: 171 Dispose 1 ; 0$ ASSIGN: Dispose 1.NumberOut=Dispose 1.NumberOut + 1; 1$ DISPOSE: Yes; دروY9 و2 9 !? G .Dispose وCreate !I62ا ا [ ل "اض ا. ه3; م2: ف2 : ا@ بw7 ر27 Create اص2 ة.; إN Customer 2 هEntity Type !? /ع ا2 وCustomers Arrive 2ة ا6 وName % إ6T w2 , J وRandom (Expo) 2 هType &2 Time Between Arrivals ل2'2! ا ! ز Minutes ? J ه دUnits ! Gات ا6 وو1 3 هValue 30 اR9ز2 ل2'2! ا ! ز ? ت/ دJ وأ1 هEntities per Arrival ل2'ث و6 M آ2I 3 ? ت ا/د ا 0.0 هFirst Creation (ل2' )و2I وز ! أوInfinite 3? UT هMax Arrival M I 3ا :O ا, `' ر27 Create اص2 ة.; إN 172 ه.ا ا 2ذج ا- wا 2 9Tي 2ي آ ? ت M Iو YIدر2 .ف Nإ أ 6و6ات ا ت Data Modulesوه3 و)ة اEntity Module B wYfو6ة ا2 3; !? /د ا Oوع .; W Iة ا" ت ا ,'0وا.ي & اM/O .; 3; UN9ة ا 2ذج ) , `' Nا (Oا 7ا :3 و & : & V2إ !97 وو6ة ا"I !? /ف _ أ2اع ا ? /ت و'2ره ا0و ,و U7"I ,`/Iو ,`/Iا, : ا ,; fا0و ,و , Jا ^ , :ا ,; fا0و ,و ,`/Iا@ Nر ا0و 3و ,`/Iا@ :ل ا0و وأي _ /Iأو ,اي آ 9 I R7إذا أرد MHIإ6 و9م دة: 3; ]I R7J - .R ات ;.S/ 3 -ز ?! ;.g 3 173 ءات أم .T ,-. ة ا.; 3; UN9و wYf رI !? /ة ت ا6 وwذج ا2 :(aV2 !?G- W J) 3 ( اO ا, `') Initial ,رة أو2' ,? 7 إM[ 2 ?! ا/ إد ل ت ! اR7 ر27ا ا. ه3; 6T M7" , ا3; ,`/! إد ل ا/ 9 ( آPicture Man M-رة ر2' )ه أPicture ,; f ^ ا,و0 ا, : واInitial VA Cost ,; f ا,و0 ا, : واHolding Cost/Hour Initial ,و0 اM: ا,`/I وInitial Waiting Cost ,و0 ر اN@ ا,`/I وInitial NVA Cost ,7ا2 YI ! أن/ 9 %:ة ا. ان ه6T) Initial Other Cost , أو,`/I وأيTran Cost ءات 6( وأ إذا أرد إAssign Module ة أ6 و,7ا2 آ ة أو ء اX أY " أوI .Report Statistics 3; A ة62 ا5.! ه :3 آ5GUH م2: أنT ذج2 اء ا- إMJ Setup... %X Run ر,? ا, ? :! ا 174 GUHار ا26 ة.; UN; M % وإProject Title وعO ان ا2 أدProject Parameters وعO ا% " 3; " أ "آ ? تStatistics Collection ," H ءات ا (آ ة 6@ ا3; وAnalyst Name مNا اء ا-ار )د ات إ/ ا% " 3; .(ذج2 ا ا. ه3; اه2 9 ) Entities Replication Parameters 175 Warm-up (! )أو ا, ;ة ا1 هNumber of Replications ار/د ات ا &; يH ي. ! اG ا2 );ة ا! ه, Time Units UIا6 وو0.0 هPeriod U 9 3 اTransient State , :@ `ة اI g? ت وذ 6 أي إMHI آ ة ون ا هReplication Length ار/ل ا2C .(Steady State ازن2 ا,6 إM 9 6 ذج2 ا ا.ض ! هY ) ا, &Iا6 وو24 هHours Per Day م2 ا3; د ا ت. ت10 Base Time ! G , 0ة ا62 وا.( ت8 ن2/9 J [ M "م ا29 ت9 I 2ه Run Control اء-@e %/ واSpeed , اM[ %: ا,: . Hours , وهUnits .Default ,V ا@;اU J 3; U: Reports 9 ر:وا :ا^=اء ! Run أو رF4 ` حwYf gذج وذ2 آ ! اe م2: آ ة اء ا- إMJ Check Model %X ,? ا, ? :ا 176 إذا آ ن ا 2ذج ! %ا ,6ا UNI ,:7ا ;.ة Rا -2IT " ,أ 7ء أو 9. Iات ; 3ا 2ذج" ! , ? Jا0دوات ا, : @-اء ا 2ذج إ ` wYfح F5أو ; 3ا , ? :ا? ,أو ! Go %X Run ا* 177 .]? ` اI و9: اa` I S 7 ك9 :!9 I SIMAN u/ ال T ا9/# PROJECT, "First Example ( Create - Dispose )","Dr. A. Barry",,,No,Yes,No,No,No,No,No; VARIABLES: Customers Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Customers Leave.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"); PICTURES: Picture.Airplane: 178 Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; REPLICATE, 1,,HoursToBaseTime(10),Yes,Yes,,,,24,Hours,No,No; ENTITIES: Customer,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Ye s,,); ذج1 ا9/# ; 179 ; Model statements for module: Create 1 ; 1$ CREATE, 1,MinutesToBaseTime(0.0),Customer:MinutesToBaseTime(EXPO( 1)):NEXT(2$); 2$ ASSIGN: Customers Arrive.NumberOut=Customers Arrive.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Dispose 1 ; 0$ ASSIGN: Customers Leave.NumberOut=Customers Leave.NumberOut + 1; 5$ DISPOSE: Yes; 180 :2 ل# ? ت/ & ا9 Resource رد2 مN ا3; M"H P أو ذج ا2 ر ا27 ف2 M " م2:I 3 واProcess Module , "ة ا6ض م وYا ا.U مN ا%U2د :3 اS اآU ? ت و/ :Process Module /.و)ة ا M ة62 '` و6 2 وهU` ا3; S/9 ة62ى ا2 وU دا3; S/9 ة62 ا%إ .( ارد2 ك اIي رات @ ك و2 Iآ ة و ) 6( و ج وا ) 6وا ا3; M " أو ا,H " م2:I ة62ة ا.وه ي. ا3:7 اM ا9 I وSubmodel 3; ذج2 ر إامU -29 آ.,6 ا 3; !? / 7"9 ,H " ز ! ا.Hierarchical User-defined Logic ا م,7ا2 7"9 , J ! 9GI , " أن ا3"9 ا. ) وهValue Added ",; f , J" ن2/9 ! ان/ 9ة و62 ا5.ه أوNon-value Added ",; f ^ , J" ?!( أو/_ إ اfI ن أوe ! R;I أو M " ا,I _ ا/ ا.Other "( " أو ايWait " رN أو "إTransfer " ل:"إ ., ا,b` فfI ف2 181 وإا 2/I UIن ^ آ :3 " ., ,"7J ,H ا ,"-و.,:X C : Iت. ,ز 2ن. ;.ة ا2اص ;2C 3ر w7ا@ ب: ;.ة 26ار 2ع : Type 182 : Action فI Logic 7 ار ا26 ة.; (Triangular 3[[ R9ز2I) Delay Type eع ا2 ار26 ة.; 183 (Constant W X) Delay Type eع ا2 ار26 ة.; (Normal 3"C) Delay Type eع ا2 ار26 ة.; 184 (Uniform ) ويDelay Type eع ا2 ار26 ة.; (Expression "I) Delay Type eع ا2 ار26 ة.; 185 Allocation !"ار ا26 ة.; :O ا, `' ر2C 3; ? ة ا.; ع2 ار26 ة.; R 186 ;.ة 26ار ا ف ;.ة 26ار 2ع ا("I , 6 3;) e ;.ة 26ار ا"! ;.ة 26ار "I و` .; Mة ا ? آ :3Ih ا 27ب ا_'2 إName % وه" 2ف 62ة Module Identifierو6 /9Tر و M/ UN9ا62ة. 2ع Type 9 I ,:9Cا 7دا Mا62ة,H " . 187 " I Standard ", Jد ان آ Mا 2 7ف G9ن دا Mو6ة ا " ,Hو"9ف 2ا,7 إ-اء "!2 " .ذج ;Submodel "3 9د أن ا 2 7ف "9ف 3I M/O ;2 3ذج ; 3وا.ي M O9 Jأي د ! و6ات ا .7 إ-اء Action 2ع ا " ,Hا 3ث دا Mا62ة. " 9 Delay "eIد ,Cا& ث 3; eIا" ,ون إ 7ء 2رد" .إ ك 3"9 Seize Delay "eIأن 2رد 2ف 6 R 7"9وث eIوI !/ك ا 2رد % و" .( WJإ ك I eIك" Seize 3"9 Delay Releaseأن 2رد 2ف 7"9 I %9 %X eI , " R9ك ا 2ردeI" . Iك" 3"9 Delay Releaseأن ا 2رد J ا : 37وأ& ث "9" %X "eIك" ا 2رد .وه.ا ا2/9 w:; 79 0ن ا2ع "."3 J أوPriority , , Jا0و !? / ,ا.ي N9ه 5.ا62ة 2رد ا د .و9م 2/9ن آ ?! أو أآ[ ! و6ة اى ` N9ا 2رد. و9Tم 2/9ن ا@-اء " "eIأو "I eIك" أو 2/9ن ا2ع " 2ذج ;."3 2ارد Resources و"9د ا 2ارد أو 2 ,2 Hارد وا3 Iم " ,HاIT .!? /م 2/9ن ا@-اء " "eIأو 2/9ن ا2ع " 2ذج ;."3 188 .e ا% " 9 I ,:9C أوR9ز2ع ا2 Delay Type eع ا2 Expression ""I" وConstant "W X" "3"C" " ت9ز2ة ا6 وا, J جI "3[[ " وUniform " و " ويNormal .% " ج ةI Triangular .e ا% " ! Gات ا6و Units ات6و M " ا,`/I وM " ز ! اI ,` د آIو Allocation I , J" 5" ! ان/ 9 M " وا. ? ت/ ",; f ^ , J" أوValue Added ",; f أوTransfer " ل: أو "إNon-value Added Other "g أو "^ ذWait " رN"إ , ا,b` فfI ف2 ,' ا,`/وا ., " ?! وا/ R9ز2 ىY ا, : ا9 %" ا, Minimum , J Y'أ ."3[[ "ا وي" أو "ا "3"C" R9ز2 w2 ا9 %" ا, Value , J ال2 أو ا3 زe "W X" , J أو ."3[[ " R9ز2 R9ز2 ى/ ا, : ا9 %" ا, Maximum , J أآ ."3[[ " " وي" أو R9ز2 ا@ اف ا " ري9 %" ا, Std Dev ا@ اف ا " ري ."3"C" " & J مI ""I" 9 %" ا, Expression "I ., "" اeI" ! زU"I ,? 6@ ت ا2" اW د ; إذا آ9 Report Statistics 3? 6 إ9:I 37أ .T أوI ذاR HI ف2 Process Module – Resources Dialog , "ة ا62 ارد2 ار ا26 ة.; :3 ارد2 ة ا.; M/ Y9 Seize Delay Release إ ر 189 و SH9إ2 ,; Vع ا 2رد ; .; UNI Add… wYfة 26ار ا 2ارد: و2 Iي: ا 27ب ا_'2 2ع Type 2 9 Iرد "! أو إ ر 2رد ! ,2 H 190 .Resource Set ارد2 .&آI أو/ب إ آ& و27 رد ا2 ا%إ Resource Name رد2 ا%إ ."رد2 " ع2ن ا2/9 w:; م9و إ ك% U 3ارد وا2 ,2 H %إ Set Name,2 H ا%إ ن2/9 w:; م9 ."رد2 " كI أو/و .Set ",2 H " ع2ا ,2 H ! د أو %ارد ذات إ2 د ا Quantity , آ . UآI أو/ وU إ آ% 3دة وا ارد2 "! د اI , : ا5. ه، ت2 H و :C UآI أو/ وU إ آ% 3ا رة وا 3 ا,2 H رد و د ا;اد ا2 ا," .كI/g I ف2 3; ,6 ارد ا2 ا@ ر ! ا,:9C ا@ ر%9 وCyclical " "دوري.,2 H .!6 ء اf0 دوري ! اM/O ?ا2O ا@ ر%9 وRandom "3?ا2O" "Mf;0 اSII" . ءf0! ! ا ح2f إ ر اول%9 وPreferred Order "د 2f" .ا./ وه3 [ ا%X ول0ا ج إد ل9 ا ا@ ر. وهSpecific Member J ن2/I 3 )واAttribute Value ",`' , J" Save ",`' نG لH " 3; WG ! 2f أي9 ( Attribute Field ",: ," "أآ.ب27 ,2 H ا دMJ و "اLargest Remaining Capacity مI Smallest Number Busy"ل2YO w:; مIارد ذات " ت "دة و2 .",2 H " ع2ن ا2/9 191 Selection Rule ة ا@ رJ Gن '`Save Attribute , إ %ا ` ,ا ` ,ر %Jا@ د ;3 ,2 Hا f0ء ا 3ات.ه 5.ا `, !/ 9ان 2 Iا J ,7ة ا@ ر "2f د" IT .Specific Memberم 2/Iن Jة ا@ ر "2f د" .إذا ! ا Oط ا& "I eIك" ;ن ا, : ا دة !"Iأي ! ا fء ا % ,2 H Iآ& .وإذا I %د '`; ,ن ا2 !? /ف 9ك 2fا ,2 Hا.ي أ 3; gا.h "ر %Jا@ د" ,2 H 3; Index Number ا Set Index ,2 H ا f0ء ا .! 27وIم ;2/I w:ن Jة ا@ ر ه2f" 3 د" .إذا 6د ا Oط ا& "I eIك" ;ن ا, : ا دة "Iف أي ) 2fر %Jا@ د( ! ا ,2 Hا.ي I %آ&. 2ف :م و ! !I6و6ات ا ت Data Modulesه:3 و)ة ارد Resource Module و Uا M/Oا 3 و ا UN9 U wYfا , `' 3; 7اO و"9ف ا 2ارد ; 3ا Nم و 2" M OIت ! ;2Iا 2ارد و2ع ا" ,و :ار ا" ,و,`/I ا 2رد إ62 & Yة ز ! و; ,`/Iا^ ,و ,`/Iآ Mإام وإ ,2 H %ا ,و;MO ا 2رد وإ 7ء إ6 ءات. و)ة ا Dر Queue Module 192 3 ا7 اUN9و 3 اM/O اUو ر2 7ر وإذا آ ن ا2 7 م اN Y م وN ا3; ا27_ ا9" مI ر2 7ة ا6وو Service !9ر2 C -29 اM/O ا3; 6T .ءات 6 إMH9 Mك وهO .File.Queue وStation.Queue SIMAN u/ Process Module /2 و)ة T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Process 1.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Process 1.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Process 1.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; Model statements for module: Process 1 ; 0$ ASSIGN: Process 1.NumberIn=Process 1.NumberIn + 1: Process 1.WIP=Process 1.WIP+1; 2$ DELAY: Triangular(.5,1,1.5),,VA; 49$ ASSIGN: Process 1.NumberOut=Process 1.NumberOut + 1: 193 Process 1.WIP=Process 1.WIP1; 194 %X ," , %U ىHIر و2 7 2: 9 م وN ل ز ?! إ2'2 gر ا [ ل ا وذ27 مN ! ا2; 9 3 آCreate اص2 M9" J Process اص2 ة.; "كI - eI - "إ كAction اء-@ اStandard U2 Customers Service , " ا%إ : Resources ارد2 اMedium(2) 2 أو,72 Priority ,f;0 اSeize Delay Release 195 دة2" و.1 هQuantity U آServer ه دمResource Name رد2 ا%رد" إ2 " ع2ا وإ اف5 w2 "C زع2 Delay Type eع ا2 أ, "اص ا2 ة.; .",; f ^ , J" ? واJ د, Gات ا62 ا1 " ري O ا, ` اص2ة ا.; ! ت2" ه ` اO أنR7 wYf U M 3ا وا27ة ت ا.; إN T أوM9 ! " Type ر2 7ع ا2 I_ ذاV اCustomer Service Queue ر2 7 ا% إ6T .,V ا@;اU : WآI %: ا,: FIFO أوFirst In First Out "Tج أو9 wYf U M 196 3ارد وا2 ة ت ا.; إN Server رد2 اName % إM/O ا3; aV2 2ه آ.M/O اaV2 !?G- J آ Busy/Hour , , ,`/I 1 Capacity &" وFixed Capacity ", X ,"" Type &2 %: ا,: و0.0 Per Use 6ا2ام اz &`/I 0.0 Idle/Hour , &^ ;ا,`/I 0.0 .,Vإ;ا :,م ا آ2_ ! اf ذج2 اء ا- إMJ ة ا" ت.; 3; Entity ,2:9 أwYf مN و9 % ?! وهGر ا2' UN 3/ UN; وعO د ا2 ! , 0ا . Picture Man M-رة ر2' رInitial Picture W I ط:zة ا.; ! ( حf9z ? هG-) 3وا Resource ,2:9 أwYf g ا دم وذM[ I ,م آ2 ر,; V! إ/ 9 آ أ ر%?ا2:ة إ ر ا.; UN; Toolbars... %X View ر,? ا, ? : ده ! اH9! إ/ 9 ,م ا آ2 أدوات ا, ? J UN; ! رة/I % إنAnimate ارد2 م ا2ة ر.; UNI 197 Resource ,2:9 أwYf ا [ S ا%م ر ا2ة ا.; ! %X ا`اغ دمRVأي و M/O اa ; ر wYfو 3; ا دمM[ ا. وهIdle RV2 اState ! وServer رد2 اIdentifier ! أ أ6T a ; S اM/Oم ر ا2: Busy ل2YO RV2 M[ . ا`اغRVو 198 . ه%U ! 0 Default 3V ا@;اRV2 ا3; !9h"! اV2ك ا + A اM/ a 9ارد و2 م ا2ة ر.; 3`I OK %X Seize Area وAuto Scale ر M/O اa ; ءOI ` آU H6 M/ رة ا دم2' UN; S ن ا/ ا3; wYVأ :اء-@ اGUHI 199 ! :ا 2ذج H; F4 wYfأ& -29Tأ 7ء أو 9. Iات H %Xي ا F5 wYf 200 آة ا:9: a` I :!9 Iا 9:وأج ا ?]. 2ف " _fا ت 2ذج وذ ! , ,; V gز ! ا آ ة وآ%92:I g. @ 7ء ا ر d9ودات "د ا !? Gا Yدر !9وا :د ! ر %ا رج ا/اري "د ا!? G ا !9.أآ 2ا ,ور" %د ا !? Gاا! , ? J ! .ا2م ا آ, 201 wYf wYf .; UNIة 26ار ا wYf , .; UNIة 26ار ا Y و Uر ا" ! ;.ة ا@ :ط @2 ,; Vص `ة wYf ! , ? Jا2م ;.; UNة إد ل ا 2ص 202 .; UNIة 26ار ا%92: " آ ,ا ا اد A a ; OK wYfا` رة +و 3; wYfا`اغ ا UN; S ا ,; V@ .ا رج ا/اري wYf Mا ت ا , 27وآwYf % g. Mا ت ا , 27 ا M/Oا !9 3ا 2ذج " إد ل ه 5.ا ت. 203 SIMAN u/ ال T ا9/# PROJECT, "Unnamed Project","amb",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Service Station.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Service Station.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Service Station.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Customers Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Finish Service.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"); QUEUES: Service Station.Queue,FIFO,Shared,AUTOSTATS(Yes,,); PICTURES: Picture.Airplane: Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: 204 Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: Server,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources ),,AUTOSTATS(Yes,,); REPLICATE, 10,,MinutesToBaseTime(480),Yes,Yes,,,,24,Hours,No,No; ENTITIES: Customer,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Ye s,,); T ا9/# ; ; Model statements for module: Create 1 ; 2$ CREATE, 1,MinutesToBaseTime(0.0),Customer: MinutesToBaseTime(DISC(0.125,1,0.25,2,0.375,3,0.5,4,0.625 ,5,0.75,6,0.875,7,1.0,8)):NEXT(3$); 3$ ASSIGN: Customers Arrive.NumberOut=Customers Arrive.NumberOut + 1:NEXT(0$); 205 ; ; ; Model statements for module: Process 1 ; 0$ ASSIGN: Service Station.NumberIn=Service Station.NumberIn + 1: Service Station.WIP=Service Station.WIP+1; 9$ QUEUE, Service Station.Queue; 8$ SEIZE, 2,VA: Server,1:NEXT(7$); 7$ DELAY: MinutesToBaseTime(DISC( 0.1,1,0.3,2,0.6,3,0.85,4,0.95,5,1.0,6 )),,VA; 6$ RELEASE: Server,1; 54$ ASSIGN: Service Station.NumberOut=Service Station.NumberOut + 1: Service Station.WIP=Service Station.WIP-1:NEXT(1$); ; ; ; Model statements for module: Dispose 1 ; 1$ ASSIGN: Finish Service.NumberOut=Finish Service.NumberOut + 1; 57$ DISPOSE: Yes; :3 ل# مN ا3; ? ت/ار ور اJ ذI ن إ/ @ ا3; ن2/9 P ذج ا2 ر ا27 ف2 :3 اS اآU 3ار ا:ة ا6ا و.U م2:9 . ل و ط6 أو إ, أو,; "I 206 و)ة ا*ار Decide Module و.Uة ا62ة Mوا) 6 ا) e7 ( و !-أ6ه :ار ا ) a ( وا: hار ( 6Tد ا:ارات آ; Mع 6و.` 9 ه 5.ا62ة ! !/ Iت أJ .ار ; 3ا Nم .و M OIة رات J .0ار إ دا ط أو أآ[ ) [ :Mإذا آ ن 2ع ا ,J 7 !? /ذه (,أو إ 6ل أو أآ[ ) [a' 75% :M .(e7 25% ،و !/ 9ان "IاOوط `' %Jت ) [ :Mا0و (,أو :M[ ) Y %J ا"د ا ;2ض( أو 2ع ا !? /أو ا". ! !- -29و6ة ا:ار 2/9ن U2ا د ،إ !:9Cإ 6ل او !:9C ط ،و -29ج وا ? / 6ت ا "True a'" : I 3ووا ? / 6ت اe7" : I 3 9 ."Falseد ة Cق إ 6ل N-way Chanceأو وط ;2/ن ه ك ة رج M/إ 6ل أو ط و ج وا Y 6ذ .Else gد ا ? /ت اI 3ج ! آ2 Mع )'.w:; !:97 UNI (e7/a إا ت و6ة ا:ار ا " دة: إر ل @ , ' ^ ,"7Jدة ا" . U M إر ل ا /Oت ا ,UH ,2:وا ,UH ,2: Yاى. إر ل ز ?! %Uأ; ,fإ .,' , ;.ة ا2اص ;2C 3ر w7ا@ ب: 207 ;.ة 26ار 2ع ;.ة ا ? ;2C 3ر '` ,ا:O .; Rة ا 2ار 2ع و2 Iي: ا 27ب ا_'2 208 إName % إ %و _9" 6ا62ة وM/ UNI ا62ة. 2ع Type و ; !Iإذا آ ن ا:ار " "9ط" ) [ (IF X>Y :Mأو "إ 6ل" أو "", ) [ (60%, yes; 40%, no:Mو9 I !/ 9 ا2ع آ !:97أو ة Cقa 9 "!:9C" . !"Iط وا 6أو إ 6ل ) @ ,; Vج " (Falseة Cق" !" a 9ة وط أو إT 6ت @ ,; Vج .Else وط Conditions "Iف ط أو اآ[ 9م &-2ا ? /ت إ و6ات ` .,و9م ;2/9 w:ن ا2ع "ة Cق Oط". Percentages ,92b S و Iد ,أو أآ[ Iم &-2ا ? /ت إ و6ات ` .,وIم ;2/9 w:ن ا2ع "ة Cق 6ل". Percent True a' , و Iد , !" , Jا ? /ت اI 3ج ! ج "'.7" "a إذا IF Named أ2اع اOوط ا .%: ,6 Iد إ "إ "Y %أو "'` ",أو "2ع آ ?!" وا.ي :ر M9ا !? /ا62ة. وITم 2/9ن ا2ع ".""I هIS M :ر Oط .و9م ;2/9 w:ن "ط '` ",أو " ."Y Value , J "Iوا.ي :9 Jرن ` ,أو Yأو ا.ي :ر آ" وا 9 6إذا آ ن "' "aأو "9T ."e7م 2ع "آ ?! ."3Cإذا آ ن ا2ع "; ""Iن ه 5.ا T , :ان M OIا :ر ) [.(Color<>Red :M 209 SIMAN u/ Decide Module و)ة ار T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Decide 1.NumberOut True,CLEAR(Statistics),CATEGORY("Exclude"): Decide 1.NumberOut False,CLEAR(Statistics),CATEGORY("Exclude"); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; Model statements for module: Decide 1 ; 0$ BRANCH, 1: With,50/100,1$,Yes: Else,2$,Yes; 1$ ASSIGN: Decide 1.NumberOut True=Decide 1.NumberOut True + 1; 2$ ASSIGN: Decide 1.NumberOut False=Decide 1.NumberOut False + 1; h واw:; "O ا: م2:9 %ه6! أJ6 &; M "9 ,J M & ل2'2! ا ! أن زP 3ف آ2 ا ا [ ل. ه3; 3?ا2O M/O M ?! إ اG اM 9 .& :9" وO اMY9 ي. ا ق ا.w:; " J و99 !? G ! ا25% .,:J ا3; !? ز4 "ل3& ا9ز2I 1 ? وإ اف " ريJ د3 w2 3"C R9ز2I & ن2/9 ! ز3; g. م2:9 "O ا:9 .,:J د2 ? وإ اف " ريJ د5 w2 3"C ! G g. م2:9 : واMYق ا6 .,:Jد .5 س أداؤJ م وNا ا.آ ة ه ب27 ا :ذج2 ا 210 ا@ بw7 ر2C 3; Create اص2 ة.; O ا, `' ر2C 3; Create اص2 ة.; ا@ بw7 ر2C 3; Decide اص2 ة.; 211 O ا, `' ر2C 3; Decide اص2 ة.; ا@ بw7 ر27 w:; "O ا,J Process اص2 ة.; w:; "Oرد ق ا2 ار ا26 ة.; O ا, `' ر27 w:; "O ا,J Process اص2 ة.; 212 ا@ بw7 ر2C "O ا,J6 وMY Process ار26 ة.; ا@ بw7 ر2C "O ا,J6 وMY رد2 ار ا26 ة.; 213 ;.ة 26ار2اص ,J Processا "Oو MYو ,J6ا27 "Oر '` ,اO 3; 6Tه.ا ا27ر 9 I R7ا" ! " . وأا 2ا;26 .ار ? Dispose ;.ة و6ة ا ت ? /ت ;.ة 26ار و6ة ا ت 27ا 214 و ;.ة 26ار و6ة ا ت 2ارد " _fا 2ت 6Tه أ2J `Vل ا;G ) Level 3:ان :س ا@ ء( ! , ? Jا2م ا آ, ! :ار إ ء و2Yل ا 2رد. وأا MJإ-اء ا آ ة GUHا 2ذج 215 .F5 wYV آ ة ي اH %X F4 wYf ذج2 ! ا: 216 9:ا . نJ ا, "; 37"I M/O ا3; , ا, ` وا, `' 14 ! ن2/9 9:ا ., 27 داء ا0 ا9 : واج9: اa` I :!9 I SIMAN u/ ال T ا9/# PROJECT, "Barber Shop","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,Yes; VARIABLES: Hair Cut Only?.NumberOut False,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): 217 Customers Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut.NVATime,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut and Shampoo.VATime,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut.WaitTime,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut and Shampoo.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Customer Finish.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut and Shampoo.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut and Shampoo.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Hair Cut.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut and Shampoo.WaitTime,CLEAR(Statistics),CATEGORY("Exclude"): Hair Cut Only?.NumberOut True,CLEAR(Statistics),CATEGORY("Exclude"); QUEUES: Hair Cut and Shampoo.Queue,FIFO,,AUTOSTATS(Yes,,): Hair Cut.Queue,FIFO,,AUTOSTATS(Yes,,); PICTURES: Picture.Airplane: Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: 218 Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: Shampoo,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resource s),,AUTOSTATS(Yes,,): Hair Cut Server,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources ),,AUTOSTATS(Yes,,); TALLIES: Hair Cut.TotalTimePerEntity,,DATABASE(,"Total Time","Process","Hair Cut"): Hair Cut and Shampoo.VATimePerEntity,,DATABASE(,"VA Time","Process","Hair Cut and Shampoo"): 219 Hair Cut.NVATimePerEntity,,DATABASE(,"NVA Time","Process","Hair Cut"): Hair Cut.WaitTimePerEntity,,DATABASE(,"Wait Time","Process","Hair Cut"): Hair Cut and Shampoo.WaitTimePerEntity,,DATABASE(,"Wait Time","Process","Hair Cut and Shampoo"): Hair Cut and Shampoo.TotalTimePerEntity,,DATABASE(,"Total Time","Process","Hair Cut and Shampoo"); OUTPUTS: Hair Cut.NVATime,,Hair Cut Accum NVA Time,DATABASE(,"Accum NVA Time","Process","Hair Cut"): Hair Cut.NumberIn,,Hair Cut Number In,DATABASE(,"Number In","Process","Hair Cut"): Hair Cut and Shampoo.VATime,,Hair Cut and Shampoo Accum VA Time,DATABASE(,"Accum VA Time","Process", "Hair Cut and Shampoo"): Hair Cut.WaitTime,,Hair Cut Accum Wait Time,DATABASE(,"Accum Wait Time","Process","Hair Cut"): Hair Cut and Shampoo.NumberIn,,Hair Cut and Shampoo Number In,DATABASE(,"Number In","Process", "Hair Cut and Shampoo"): Hair Cut and Shampoo.NumberOut,,Hair Cut and Shampoo Number Out,DATABASE(,"Number Out","Process", "Hair Cut and Shampoo"): Hair Cut.NumberOut,,Hair Cut Number Out,DATABASE(,"Number Out","Process","Hair Cut"): Hair Cut and Shampoo.WaitTime,,Hair Cut and Shampoo Accum Wait Time,DATABASE(,"Accum Wait Time","Process", "Hair Cut and Shampoo"); 220 REPLICATE, 1,,MinutesToBaseTime(200),Yes,Yes,,,,8,Hours,No,No; ENTITIES: Customer,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Ye s,,); T ا9/# ; ; ; Model statements for module: Create 1 ; 4$ CREATE, 1,MinutesToBaseTime(0.0),Customer:MinutesToBaseTime(EXPO( 4)):NEXT(5$); 5$ ASSIGN: Customers Arrive.NumberOut=Customers Arrive.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Decide 1 ; 0$ BRANCH, 1: With,25/100,8$,Yes: Else,9$,Yes; 8$ ASSIGN: Hair Cut Only?.NumberOut True=Hair Cut Only?.NumberOut True + 1:NEXT(1$); 9$ ASSIGN: Hair Cut Only?.NumberOut False=Hair Cut Only?.NumberOut False + 1:NEXT(2$); 221 ; ; ; Model statements for module: Process 1 ; 1$ ASSIGN: Hair Cut.NumberIn=Hair Cut.NumberIn + 1: Hair Cut.WIP=Hair Cut.WIP+1; 39$ STACK, 1:Save:NEXT(13$); 13$ QUEUE, Hair Cut.Queue; 12$ SEIZE, 2,NVA: Hair Cut Server,1:NEXT(11$); 11$ DELAY: MinutesToBaseTime(Normal(3,1)),,NVA:NEXT(54$); 54$ ASSIGN: Hair Cut.WaitTime=Hair Cut.WaitTime + Diff.WaitTime; 18$ TALLY: Hair Cut.WaitTimePerEntity,Diff.WaitTime,1; 20$ TALLY: Hair Cut.TotalTimePerEntity,Diff.StartTime,1; 44$ ASSIGN: Hair Cut.NVATime=Hair Cut.NVATime + Diff.NVATime; 45$ TALLY: Hair Cut.NVATimePerEntity,Diff.NVATime,1; 10$ RELEASE: Hair Cut Server,1; 59$ STACK, 1:Destroy:NEXT(58$); 58$ ASSIGN: Hair Cut.NumberOut=Hair Cut.NumberOut + 1: Hair Cut.WIP=Hair Cut.WIP1:NEXT(3$); 222 ; ; ; Model statements for module: Dispose 1 ; 3$ ASSIGN: Customer Finish.NumberOut=Customer Finish.NumberOut + 1; 61$ DISPOSE: Yes; ; ; ; Model statements for module: Process 2 ; 2$ ASSIGN: Hair Cut and Shampoo.NumberIn=Hair Cut and Shampoo.NumberIn + 1: Hair Cut and Shampoo.WIP=Hair Cut and Shampoo.WIP+1; 91$ STACK, 1:Save:NEXT(65$); 65$ QUEUE, Hair Cut and Shampoo.Queue; 64$ SEIZE, 2,VA: Shampoo,1:NEXT(63$); 63$ DELAY: MinutesToBaseTime(Normal(5,2)),,VA:NEXT(106$); 106$ ASSIGN: Hair Cut and Shampoo.WaitTime=Hair Cut and Shampoo.WaitTime + Diff.WaitTime; 70$ TALLY: Hair Cut and Shampoo.WaitTimePerEntity,Diff.WaitTime,1; 223 72$ TALLY: Hair Cut and Shampoo.TotalTimePerEntity,Diff.StartTime,1; 96$ ASSIGN: Hair Cut and Shampoo.VATime=Hair Cut and Shampoo.VATime + Diff.VATime; 97$ TALLY: Hair Cut and Shampoo.VATimePerEntity,Diff.VATime,1; 62$ RELEASE: Shampoo,1; 111$ STACK, 1:Destroy:NEXT(110$); 110$ ASSIGN: Hair Cut and Shampoo.NumberOut=Hair Cut and Shampoo.NumberOut + 1: Hair Cut and Shampoo.WIP=Hair Cut and Shampoo.WIP-1:NEXT(3$); 224 #ل :4 ; 3ه.ا ا [ ل 2ف "ض و6ة أ Assign Moduleوا U 3اآ Sا :3 و)ة أ'Assign Module )1 وIم ه 5.ا62ة @ د 9- %Jة Yات أو آ ? ت أو '` ت أو أ2اع آ ? ت أو '2ر آ ? ت أو اي Yات Nم .و !/ 9إ د ة أ ء 62ة إ د وا6ة. ا@ا ت ا" د:,9 Iاآ %د أG-اء ا R Hا .R I ,"7: ,; f 2 YIع آ ?! [ , Mا" 2I ` Mرة. إ 7ء ز 2ن أ;.,fو ;.ة ا2اص ;2C 3ر w7ا@ ب: ;.ة 26ار إ دات Assignments 225 ;.ة 26ار إ دات 2ع ;.ة ا ? ;2C 3ر '` ,ا:O ;.ة ا 2ار zدات و2 Iي: ا 27ب ا_'2 إName % إ %و _9" 6ا62ة وM/ UNI ا62ة. إ د Assignment و 9د إ د أو أآ[ وا.ي " 7 M9آ ?! ا62ة. 2ع Type 2ع ا@ د ا.ي .%ا2ع "^ذ"g !/ 9 Otherأن Y M OIات Nم [," M ا 2رد أو ز ! إ Uء ا إ %ا Variable Name Y آ ة. إ %ا Yا.ي إ& 9- , Jة د2ل ا !? /ا62ة .و9م ; w: 2/9ن ا2ع " ."Y 226 ة9- , J U إ3 ?!" ا/ ا,`'" %إ Attribute Name ,` ا%إ w:; مI و.ة62 ?! ا/ل ا2 د .",`'" ع2ن ا2/9 ,2ي إ& د. ا9H ?! ا/ع ا2 Entity Type !? /ع ا2 ع2" ع2ن ا2/9 w:; م9 و.ة62ا Entity Type "!? آ Entity Picture !? رة آ2' & إ3ة وا9Hرة آ ?!" ا2'" ع2 ن2/9 w:; مI و.ة62& ا2 د ."!? رة آ2'" ع2ا &ي إ. م ا ص واN اY !"Iو Other g^ ذ م9 و.ة62 ?! ا/ل ا2ة د9- , J ."gع "^ذ2ن ا2/9 ! g أو ^ذY أو ا,` ا@ د, J New Value ة9H ا, :ا ع2ن ا2/9 م9T . مNات اY ."!? رة آ2'" ع آ ?!" أو2" SIMAN u/ Assign Module )1'و)ة أ T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; ; Model statements for module: ; 0$ ASSIGN; 227 Assign 1 ور" a I ,ات ! U M "9 .,:Xأ6ه %ه و2:9م ت ا 6 O ,"9ت ا Yة ذات ا 3; ,f;Tا aوا2 3IeI 3رe ,ز , ! و'2ل 2ز ,ا رة آ 15 Mد ,:JوY9ق ; 3إ' U6ز ! 2زع "C 5 w2د ? Jوإ اف " ري 1د .,:Jا 6 Oت ا/ة وا 3IeI 3ت 2 M I , -رe ,ز , و'2ل 2ز ,ا "ل ! "ل رة آ 10 Mد ? Jو2:9م ' ^ M U6ه ; 3ز ! 2زع 6 w2 3"Cد ? Jوإ اف " ري 1د.,:J 6آ 3ا Nم وأو 9 : -ا@داء. ا 2ذج: و %:اaV2 M/O 228 w:; O ا, `' ر2C 3; ? 229 ا.;ا2 ! ف2 Cteate ? ة.; Assign ? ة.; . ت6 Oاع ا2ع ! أ2 M/ ,` ع ا2 S6 ,f; ه أ أ6T Decide ? ة.; .S اM "( إ ا,6 O ?! )ا/ اMI 3/ ,f;0 ا,`' امW J Decide ة6و 230 Process ? 231 ة.; 9:ا .]? إاج اS 7 ك9 :!9 I SIMAN u/ ال T ا9/# PROJECT, "WorkShop","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; ATTRIBUTES: Priority; VARIABLES: Which Worker?.NumberOut True,CLEAR(Statistics),CATEGORY("Exclude"): Skilled.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): 232 Not Skilled.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Normal Repair.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Skilled.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Not Skilled.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Not Skilled.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Finished Repair.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Which Worker?.NumberOut False,CLEAR(Statistics),CATEGORY("Exclude"): Fast Repair.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Skilled.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"); QUEUES: Skilled.Queue: Not Skilled.Queue,FIFO,,AUTOSTATS(Yes,,); PICTURES: Picture.Airplane: Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: 233 Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: Skilled Worker,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources ),,AUTOSTATS(Yes,,): Not Skilled Worker,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources ),,AUTOSTATS(Yes,,); REPLICATE, 1,,MinutesToBaseTime(480),Yes,Yes,,,,8,Hours,No,No; ENTITIES: Van,Picture.Van,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Yes,,): Truck,Picture.Truck,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Yes ,,); ذج1 ا9/# ; ; Model statements for module: ; 234 Create 1 6$ CREATE, 1,MinutesToBaseTime(0.0),Truck:MinutesToBaseTime(EXPO(10) ):NEXT(7$); 7$ ASSIGN: Normal Repair.NumberOut=Normal Repair.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Assign 1 ; 0$ ASSIGN: Priority=2:NEXT(2$); ; ; ; Model statements for module: Decide 1 ; 2$ BRANCH, 1: If,Priority==1,10$,Yes: Else,11$,Yes; 10$ ASSIGN: Which Worker?.NumberOut True=Which Worker?.NumberOut True + 1:NEXT(3$); 11$ ASSIGN: Which Worker?.NumberOut False=Which Worker?.NumberOut False + 1:NEXT(4$); ; ; ; Model statements for module: ; 235 Process 1 3$ ASSIGN: Skilled.NumberIn=Skilled.NumberIn + 1: Skilled.WIP=Skilled.WIP+1; 15$ QUEUE, Skilled.Queue; 14$ SEIZE, 2,VA: Skilled Worker,1:NEXT(13$); 13$ DELAY: MinutesToBaseTime(Normal(5,1)),,VA; 12$ RELEASE: 60$ ASSIGN: Skilled Worker,1; Skilled.NumberOut=Skilled.NumberOut + 1: Skilled.WIP=Skilled.WIP1:NEXT(5$); ; ; ; Model statements for module: Dispose 1 ; 5$ ASSIGN: Finished Repair.NumberOut=Finished Repair.NumberOut + 1; 63$ DISPOSE: Yes; ; ; ; Model statements for module: Process 2 ; 4$ ASSIGN: Not Skilled.NumberIn=Not Skilled.NumberIn + 1: Not Skilled.WIP=Not Skilled.WIP+1; 67$ QUEUE, Not Skilled.Queue; 236 66$ SEIZE, 2,VA: Not Skilled Worker,1:NEXT(65$); 65$ DELAY: MinutesToBaseTime(Normal(6,1)),,VA; 64$ RELEASE: Not Skilled Worker,1; 112$ ASSIGN: Not Skilled.NumberOut=Not Skilled.NumberOut + 1: Not Skilled.WIP=Not Skilled.WIP-1:NEXT(5$); ; ; ; Model statements for module: Create 2 ; 115$ CREATE, 1,MinutesToBaseTime(0.0),Van:MinutesToBaseTime(EXPO(15)): NEXT(116$); 116$ ASSIGN: Fast Repair.NumberOut=Fast Repair.NumberOut + 1:NEXT(1$); ; ; ; Model statements for module: Assign 2 ; 1$ ASSIGN: Priority=1:NEXT(2$); 237 :5 ل# م2:I وSeparate Module وBatch Module M ; م وG6 !I62ا ا [ ل "ض ا. ه3; 3; Uf" R !" "I أو ط أو,`' : I 3 ? ت ا/ " اR - م أوG وTا إ%U ` M ; ة6م و2:I WJA م اG ا, 6 3; وWJA أو%? داM/O 9- !? آM/ :, اS ااآ%U و.,'0 ا%UI 2/ Batch Module مG6 ة6و 3 ? ت ا/ة د ا62 اM` أ3; %J ا37"9 و6 و ج وا6 واM U ة62 ا5.وه .مG I أ ي أوM/O R HI ! ان/ 9 مG ا.آ ة ذج ا2 M داR HI ,ة آ62 ا5.م هIو .“Separate Module” M ; ة62 ا,7ا2 M `I `ق أوI انSH9 ,JA م اG ا.WJA .," ,`' : I ة أو آ ? ت62 اMI 3 ? ت ا/د ! ا إ د%9 %9G ا " و. U ب27 ا"د اR H9 6 ر2 C 3; RV2I مG6 ة6 إ وM I 3 ? ت ا/ا . U[ 9 9- !? آ29 U" HI :,9ا@ا ت ا" د . زU- R I MJ R7: د ! اR HI . U ; ,Y' ! d R HI إ دة.SC &2 دMJ &` R 9 R - : ا@ بw7 ر2C 3; اص2ة ا.; 238 ;.ة ا 2ار 2ع ;.ة ا 2ار " ر ا ` Save Criterion ;.ة ا 2ار :ة 239 ;.ة ا ? ;2C 3ر '` ,ا:O .; Rة 26ار ا2ع ;.ة 26ار " ر ا ` ;.ة ا 2ار :ة و2 Iي: ا 27ب ا_'2 إName % إ %و _9" 6ا62ة وM/ UNI ا62ة. 2ع Type G6 ,:9Cم ا ? /ت " . %H6ا Batch Size , G د ا ? /ت اG 3م. 240 و "ف,2 H اM[ 9 !? إ د آ,:9C Save Criterion ` " ر ا . م "أي.ة62 , د: ? ت ا/م اG6 ,` د آIو Rule ةJ %H6" أول.eI ف2 Any Entity "ة6و . " U G I و, د: ? ت ا/" ! ا, G6 %H6" " مG I By Attribute ",` " U 3 م واN , د: ? ت ا/ اM" آ, G6 .," ,`' 3 ? ت ا/ اM آSH9 3 ا,` ا%إ Attribute Name ,` ا%إ مI و. U; كOI م " أنG ",` " ة:ن ا2/I SIMAN u/ Batch Module و)ة >م T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Batch 1.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"); QUEUES: Batch 1.Queue,FIFO,,AUTOSTATS(Yes,,); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; ; Model statements for module: Batch 1 ; 0$ QUEUE, Batch 1.Queue; 1$ GROUP, ,Permanent:2,Last:NEXT(2$); 241 Batch 1.NumberOut=Batch ASSIGN: 2$ ;1.NumberOut + 1 و)ة Separate Module A و M Uو d !-ا ,'0و 37"9ده ;2ق ا ج و dا ,-و7"9 ده ا` Mا62ة. ه 5.ا62ة !/ 9ان Iم إ dآ ?! Jدم إ ة ! dا ? /ت أو ` Mآ ? ت %I . : U G6آ 2J 7"Iا _ /I Iوأز d ,ا G6 M ; .,HIم ;ن ا [ g Mا Gم %9ا & و R-Iا ? /ت ا .,'0و Iك ا ? /ت ا M/O ,HI S6 3" Iا SIا.ي 3; U" HI & %Iا d ., Gآ ? ت ;ن ا"د ا 27ب ! ا & %9 dوإر & ! ا62ة آ أن ا !? /ا Y9 3'0در ا62ة. ا@ا ت ا " دة: إر ل آ ? ت ` ' M[ I ,د 6 ! ,- 9و.,9 إر ل أ' Mإ رة 2 U M "9 3/ U Rازي. ; ! ,2 H Mا ات . : W" - ;.ة ا2اص ;2C 3ر w7ا@ ب: 242 وه26 M/ 3; 3ار ا2ع dا.M'0 ;.ة 26ار ا2ع 243 , G6 M ; , 6 3; ع2ار ا26 ة.; :O ا, `' ر2C 3; اص2ة ا.; ع2ار ا26 ة.; ر2U R , G6 M ; , 6 3; ع2ار ا26 :ي2 Iو _'2ا ب27 ا M/ UNIة و62_ ا9" 6 و%إ Name %إ .ة62ا "M'0 اd" ., د: ? ت ا/ اM ; ,:9C ! د دd %9 وDuplicate Original 244 Type ع2 "دة2-2 ا, G ا%J" .3'0 ?! ا/ا 3; !? آM ; %9 وهSplit Existing Batch م" إG6" ة62 ا,7ا2 W" - , G6 M/ .,'0 ? ت ا/ا ,- ا رd دم: ?! ا/ وز ! ا,`/I 37"I Percent Cost to d ا,`/I , , 0 ا,`/ ! ا, د آI , : ا5.وه Duplicates , ا5.( وه100-0 ! ) 3'0 ?! ا/ ! :9 و,HI اdزع وي ! ا2I w:; M "I و.3'0 ?! ا/ MNI , ."M'0 اd" ع2ن ا2/9 ة62 در اY 3 وا,HI ? ت ا/د ا # of Duplicates dد ا w:; M "I .3'0 ?! ا/ إ ا,; V@ ."M'0 اd" ع2ن ا2/9 !? / '` ت ا%J إ د,`"! آI ,:9C Member Attributes 2f"'` ت ا 5. ه.,'0 ? ت ا/ إ ا,2 H M[ ا ,' ! ا ` ت ا6 د إ2"I ا@ رات Entity.Type, Entity.Picture, ) Entity.Station, Entity.Sequence, ( Entity.HoldCostRate, and Entity.Jobstep مI و. م,;" ا ` ت اM/و ."," H ا, G ا%J" ع2ن ا2/9 W آ3 واM[ ?! ا/ أو '` ت ا,`' %إ Attribute Name ,` ا%إ م9 و, G ا3; ,'0 ? ت ا/ ة “Take 3" ه2f"ن "'` ت ا2/9 w:; Specific Representative Value” SIMAN u/ Separate Module A و)ة T ا9/# 245 PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: Separate 1.NumberOut Dup,CLEAR(Statistics),CATEGORY("Exclude"): Separate 1.NumberOut Orig,CLEAR(Statistics),CATEGORY("Exclude"); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; Model statements for module: Separate 1 ; 0$ DUPLICATE, 100 - 50: 1,3$,50:NEXT(2$); 2$ ASSIGN: Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1; 3$ ASSIGN: Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1; 246 و" 3; %UVا [ ل ا :3 آC ,ان '? C g I ,ات 'Yة 10 M Iرآ ب ;2:I .w:م ه 5.اOآ6 ,ت إ -ة وا م وا .,9اآ ب ا Yدرون إ e 2 9 5-ز , ا" 3Tل 7رآ ب ; 3ا ,:Jورآ ب ا م e 2 9ز , "ل 6رآ ب ; 3ا ,:Jو ورآ ب ا e 2 9 ,9ز , ! و'2ل RIا2زR9 ! و'2ل RIا2ز R9ا3T ! و'2ل RIا2ز R9ا3T "ل 8رآ ب ; 3ا .,:Jا? 7ة M /9 6 R:ITد اآ ب .ز ! اH ,6ة & 2IزR9 وي ! 1.9و , 2.2و م & ا2I f9ز R9وي ! 0.9و , 1.1و ,9 ا2I f9ز R9وي ! 1.15و 6 ., 1.25آ 3ا Nم وأو 9 : -ا0داء. ا 2ذج: وaV2 & : 247 248 O ا, `' ر27 ات62? ا "ض3`/ Create ? Batch ? ( ?ة7 ا,") 10 2 هBatch Size , G ا%H6 .Temporary WJA Type مG ع ا2 أن6T (` ) ة: واM 9 (S آ ?! )راآLast ( 2 هSave Criterion , G ` ا6 و " ر Entity.Type !? /ع ا2 2 هAttribute Name ,` 249 ا% وإBy Attribute ,` Rule Decide ? Process ? ارد2 ? ا .;ا2 Separate اص2 ءf0 ا,`' وSplit Existing Batch دة2-2 ا, G اM ; 2 هType M `ع ا2 ه6T .Retain Original Entity Values ,'0 ? ت ا/ ا%J ء: @ ا2 هMember Attribute .Dispose اص2 أا 250 9:ا .]? إاج اS 7 ك9 :!9 I SIMAN u/ ال T ا9/# PROJECT, "Private Air","amb",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: To Madina.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): To Jedda.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): 251 To Dammam.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): To Madina Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): To Jedda.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): To Dammam Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Fly To.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Dispose 1.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): To Madina.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): To Jedda Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): To Jedda.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): To Dammam.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): To Madina.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Arrival Terminal.NumberOut Orig,CLEAR(Statistics),CATEGORY("Exclude"): To Dammam.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"); QUEUES: Fly To.Queue,FIFO,,AUTOSTATS(Yes,,): To Dammam.Queue: To Jedda.Queue,FIFO,,AUTOSTATS(Yes,,): To Madina.Queue; PICTURES: Picture.Airplane: Picture.Green Ball: 252 Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: Flight Three,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources) ,,AUTOSTATS(Yes,,): Flight One,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources),, AUTOSTATS(Yes,,): Flight Two,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources),, AUTOSTATS(Yes,,); 253 REPLICATE, 1,,HoursToBaseTime(10),Yes,Yes,,,,24,Hours,No,No; ENTITIES: To Dammam Passinger,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Y es,,): To Madina Passinger,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Y es,,): To Jedda Passinger,Picture.Man,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Y es,,); ذج1 ا9/# ; ; Model statements for module: Create 1 ; 7$ CREATE, 1,MinutesToBaseTime(0.0),To Jedda Passinger:MinutesToBaseTime(EXPO(7)):NEXT(8$); 8$ ASSIGN: To Jedda Arrive.NumberOut=To Jedda Arrive.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Batch 1 ; 0$ QUEUE, 11$ GROUP, Fly To.Queue; Entity.Type,Temporary:10,Last:NEXT(12$); 12$ ASSIGN: Fly To.NumberOut=Fly To.NumberOut + 1:NEXT(3$); 254 ; ; ; Model statements for module: Decide 1 ; 3$ BRANCH, 1: If,Entity.Type==To Jedda Passinger,6$,Yes: If,Entity.Type==To Dammam Passinger,4$,Yes: If,Entity.Type==To Madina Passinger,5$,Yes: Else,2$,Yes; ; ; ; Model statements for module: Dispose 1 ; 2$ ASSIGN: Dispose 1.NumberOut=Dispose 1.NumberOut + 1; 15$ DISPOSE: Yes; ; ; ; Model statements for module: Process 4 ; 6$ ASSIGN: To Jedda.NumberIn=To Jedda.NumberIn + 1: To Jedda.WIP=To Jedda.WIP+1; 19$ QUEUE, To Jedda.Queue; 18$ SEIZE, 2,NVA: Flight One,1:NEXT(17$); 255 17$ DELAY: Uniform(1.9,2.2),,NVA; 16$ RELEASE: Flight One,1; 64$ ASSIGN: To Jedda.NumberOut=To Jedda.NumberOut + 1: To Jedda.WIP=To Jedda.WIP1:NEXT(1$); ; ; ; Model statements for module: Separate 1 ; 1$ SPLIT::NEXT(67$); 67$ ASSIGN: Arrival Terminal.NumberOut Orig=Arrival Terminal.NumberOut Orig + 1:NEXT(2$); ; ; ; Model statements for module: Process 2 ; 4$ ASSIGN: To Dammam.NumberIn=To Dammam.NumberIn + 1: To Dammam.WIP=To Dammam.WIP+1; 73$ QUEUE, To Dammam.Queue; 72$ SEIZE, 2,NVA: Flight Two,1:NEXT(71$); 71$ DELAY: Uniform(0.9,1.1),,NVA; 70$ RELEASE: Flight Two,1; 256 118$ ASSIGN: To Dammam.NumberOut=To Dammam.NumberOut + 1: To Dammam.WIP=To Dammam.WIP1:NEXT(1$); ; ; ; Model statements for module: Process 3 ; 5$ ASSIGN: To Madina.NumberIn=To Madina.NumberIn + 1: To Madina.WIP=To Madina.WIP+1; 124$ QUEUE, To Madina.Queue; 123$ SEIZE, 2,NVA: Flight Three,1:NEXT(122$); 122$ DELAY: Uniform(1.15,1.25),,NVA; 121$ RELEASE: Flight Three,1; 169$ ASSIGN: To Madina.NumberOut=To Madina.NumberOut + 1: To Madina.WIP=To Madina.WIP1:NEXT(1$); ; ; ; Model statements for module: Create 4 ; 172$ CREATE, 1,MinutesToBaseTime(0.0),To Dammam Passinger:MinutesToBaseTime(EXPO(6)):NEXT(173$); 257 173$ ASSIGN: To Dammam Arrive.NumberOut=To Dammam Arrive.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Create 5 ; 176$ CREATE, 1,MinutesToBaseTime(0.0),To Madina Passinger:MinutesToBaseTime(EXPO(8)):NEXT(177$); 177$ ASSIGN: To Madina Arrive.NumberOut=To Madina Arrive.NumberOut + 1:NEXT(0$); 258 @آ ل إ"اض :رات 2 Arenaف :م ,:ا62ات ; ,62 3ا62ات ا , 0وه:3 و)ة Record Module T 4 Iم ه 5.ا62ة R Hإ6 ? ت ;2 3ذج ا آ ة. ا@ا ت ا " دة: R HIد ا Uم ا 3اآ Wآ., M آ. U:: I eI SC % MHا ! Gا.ي 5 fJز 2ن 2 C 3; ,f;eر ا` ا0و.3 ;.ة ا2اص ;27ر w7ا@ ب: و UNIا2ع Count ;.ة 26ار 2ع ; , 6 3إ6 ? ت ا!? / ;.ة 26ار 2ع ;; , 6 3ة ز , 259 ;.ة 26ار 2ع ; , 6 3ا! ! G ;.ة 26ار 2ع ;"I , 6 3 ;.ة ا2اص ;2C 3ر '` ,ا:O .; Rة 26ار 2ع هة 260 :ي2 Iو _'2ا ب27 ا M/ UNIة و62_ ا9" 6 و%إ Name %إ .ة62ا ب27 3 هة أو واO ءات 6@ع ا2 Type ع2 , J :9 أو9G9 Count "" . U" ءات ءات 6 "إ. ا دة, : ة,? 6إ 6 إ29 Entity Statistics "!? /ا Time Interval "! ";ة ز.!? / ! ا, دة ,`' , J ! ا`قMH9 وS 9 Time "! ! "ز.3 آ ة ا وز ! ا ? ت/ ! ! اG اMH9 وR 9 Between MHI Expression ""I" .ة62 اMI 3ا .7" ا" ا, J ? ت 6@ U J م3 ا,` ا%@ Attribute Name ,` ا%إ ."ع ";ة2 إذا آ ن اw:; مI و.ا`ة هةO ا,? 6z MH 3 ا, :ا Value , J ف إ ا"ادfI "" أوI" ع2ن ا2/9 ."" ع2ن ا2/9 ي. واMH اG ر%"ف إI , ا5.ه w:; م9 هات وO ;& اMH ع ";ة ز !" أو "ز ! !" أو2ن ا2/9 .""I" 261 Tally Name MH ا%إ اد أوG ي. "اد اG ا%"ف إ9و Counter Name ا"اد%إ ."ع "اد2 إذا آ ن اw:; م9 و.:9 د ; إذا آ ن9 3/ آe ر 'وق ا9و Record into Set ,2 H 3; MH ,2 H أوMH ,2 H T م أم .اد ي م. اMH ا,2 H %إ م9 و. هO ع ا2? ت ! ا Tally Set Name MH ,2 H %إ 6z ع ";ة ز !" أو "ز ! !" أو2ن ا2/9 .""I" ع2 MH م3 ا"اد ا,2 H %إ ن2/9 مI" وI 3? ت ا Counter Set Name اد,2 H %إ 6@ا ."" ع2ا . د,2 H اوMH ,2 H 3; A Set Index ,2 H اA :3ات ا ت ه6! ! وI6 وg.وآ Schedule Module t 4 و)ة 3 ا7 اUN9و M/O اUو WJ2I _9" 2ة ا6 وR رد أو2 MYOI WJ2I _9" رد2 ة6 وR م9و .ل2'و :&I وإا .ت " ل7" اM O9 وR 3; MY WJ2I .تTh اM7"I w - .H !'ا2 ?! اG ا%H6 .دH " ل ا%" ' اSet Module 2Tو)ة ا 262 و& اM/O و57 و"9ف _ أ2اع ا 2 Hت ; Uا 2ارد وا"ادات واHت وأ2اع ا ? /ت و'2ر ا ? /ت .آ ان R Hا 2ارد !/ 9ان Iم ; 3و6ة ا" ,و وا"ادات واHت !/ 9 ان Iم ; 3و6ة ا.MH وإا : UI -ا !? /ا2:I 3م ` ا" 3; , . R ا !;Oوا ا;! ; 2 3رآ.W ا .S/ 3; !`2 2' ,2 Hر ?ة ! ,2 Hأ2اع ا ? /ت.و)ة Variable Module u# و UاM/O و7ه و"9ف أ " د ا Variable Dimension Yو & Jا0و .,و !/ 9أن _ 3; R-I ا62ات ) [ Mو6ة ا:ار( أو "9د إ د M[ ) U %Jو6ة ا( و !/ 9ان Iم ; 3أي ."I إا : UI د ا ات ا , /آ., M أر Jم ! R7: 7"I ,Iأ M-ا"._9 ا`اغ ا ح ;.,UI 3و)ة SIMAN u/ T 4 9/#ا T 263 PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; COUNTERS: Record 1,,,,DATABASE(,"Count","User Specified","Record 1"); REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; ذج1 ا9/# ; ; Model statements for module: Record 1 ; 0$ COUNT: Record 1,1; 264 Case ,ت دراT 6 3; U رة و27 ات ا" ت ا6ف "ض و2 .Studies رةD ت ا/.ا Flowchart Modules ب ^ ا8D$# و)ات Delay Module 0v4 و)ة-1 U إا,[ وأ.! Gد ! ا ار: !? / اe م2:I eة ا6و .g 3; g ! : ا-1 .M " ,( GUHI -2 .( %J إM: -3 : ا@ بw7 ر2C 3; ? ة ا.; Allocation !"ار ا26 ة.; (أ Delay Time e اWJار و26 ة.; (ب 265 Units ! Gات ا6ار و26 ة.; (ج :O ا, `' ر2C 3; ? ة ا.; Allocation !"ار ا26 ة.; (أ Delay Time e اWJار و26 ة.; (ب 266 Units ! Gات ا6ار و26 ة.; (ج SIMAN u/ ا)ة DELAY: 0.0,,Other; Dropoff Module (و)ة إ'*ط )إ)اع ة اى6 إ و%UI ? ت و/ ! ا,2 H ! ? ت/ د ! ا,م زا2:I ط:@ة ا6و UI إا,[ وأ.Graphical Connection ,77 ,'2 دI .R? f _; أرM I -1 . مJ ة أ,7ا2 امz ر2' ! ةM ; -2 : ا@ بw7 ر2C 3; ? 267 ة ا.; 2f"ار '` ت ا26 ة.; :O ا, `' ر2C 3; ? ة ا.; 2f"ار '` ت ا26 ة.; f9 أUNو SIMAN u/ ا)ة DROPOFF, 1,1:, 268 ;* و)ة إ #ك )Hold Module (!1# ه 5.ا62ة 2:Iم ك آ ?! ;2 C 3ر Nإ رة ) ! و6ة ا@ رة ; 3ا 2ذج( أو :ط "! أو ^ 0 g 9 د ) G9 3/ال " ذ62 gة إزا .(,وأ [ , إا &Iه3 -1إ Nر إ رة ور 2ل إ ا2ن ا.f0 .& ` e9 6 g -2 ,( , 6 ; -3أو M /I 6 Mا.MYO ;.ة ا ? ;2C 3ر w7ا@ ب: ;.ة 26ار 2ع Type 269 ;.ة 26ار 2ع ا2 7ر Queue Type ;.ة ا ? ;2C 3ر '` ,ا:O و UNأ.; f9ة 26ار 2ع ;.ة 26ار 2ع ا2 7ر 270 SIMAN u/ ا)ة QUEUE, Hold 1.Queue; WAIT: 1; Match Module [ D4 و)ة 3; `I 3 وا,` ا2C 3; ةN ? ت ا/د ! ا " دR R HI 7ة ا6و 3 ا,7: اS6 gا وذ2C 5 ! 6 وا3; RV29 7I ة6ل آ ?! و2 د.," ,`' 3 ? ت ا/ در اYI %X ! و7I M 9 6 ر2 7 ا3; :Iة و62 ?! إ ا/ اU Mد U إا,[ وأ.ة62 اU: 7I %I . إ جw 3; ,"7J R HI -1 .ن2 زSC S6 تH ةR HI -2 .," ,H ` رات,7 3; د ! اآ بR HI -3 : ا@ بw7 ر2C 3; ? 271 ة ا.; ;.ة 26ار د اNumber of Match 7 ;.ة 26ار 2ع Type ;.ة ا ? ;2C 3ر '` ,ا:O و.; UNIة 26ار د ا 7 ;.ة 26ار ا2ع 272 SIMAN u/ ا)ة 0$ QUEUE, Match 1.Queue1:DETACH; 3$ QUEUE, Match 1.Queue2:DETACH; MATCH: 0$: 3$; Pickup Module و)ة إ*ط 3; ," ,I ا ر7" ر2 C ! ," ? ت ا/ ط د ! ا: ة62 ا5.م ه2:Iو ,[ وأ. ? ت/ ! ا, دJ ,2 H ,9 U ف إfI ,7: ات ا62 ا.ر2 7ا UI إا .,` RJا2 3; ا2C ! SC R HI -1 . مJ0 ! _ ا,U ' R HI -2 .,' , ر,; 273 . اR HI -3 : ا@ بw7 ر2C 3; ? ة ا.; :O ا, `' ر2C 3; ? ة ا.; ا)ة SIMAN u/ PICKUP: ;Queue 1,1,1 و)ة اءة وآ ReadWrite Module وIم ه 5.ا62ة :ا? ,ت ! _ إد ل أو ! ,62ا ` aIوإ د اY %:ات أو '` ت )أو أي (( "Iوآ9 g.م , /ت إ _ إاج أو إ ا ., Oوأ [, إا U J -1اءة " 2ت و'2ل و Yدرة ر6ت ا7ان. -2ا ! S7ا م @د ل ت ! ا 2ذج أ Xء MYOIا -3آ 2" ,ت ! ._ 3; SC ;.ة ا ? ;2C 3ر w7ا@ ب: 274 آ ة. ;.ة 26ار 2ع ;.ة إAdd.. ,; V 2ع 275 و@ %ا `, ;.ة ا ? ;2C 3ر '` ,ا:O Rإ Uر ;.ة 26ار ا2ع ;.ة 26ارJاءة ! ,62ا ` aI ;.ة 26ار Jاءة ! _ ا)ة SIMAN u/ ;READ: 276 و)ة إrCق )Release Module ({A وIم ه 5.ا62ة @Cق و6ات ! ا 2ارد وا 3آ W .!? / ,/و9 Jم @Cق 2ارد `دة أو ! 2 M/ .,2 Hرد 9اد إ I ,JCد إ & ود ا62ات ا 27ب إ . UJCد2ل آ ?! ه 5.ا62ة ;9 ,ك ا 2رد ا.ي أ & gوأي آ ?! 3; N9 2 Cر ه.ا ا 2رد R79إ آ& ;2را .وأ [ ,إا & -1إ Uء ! SCز 2ن ) 79ا دم(. Y -2درة ا 79) `Oا C0ء وا !Vو^; ,ا"ج(. ;.ة ا ? ;2C 3ر w7ا@ ب: ;.ة 26ار إAdd... ,; V 277 ع2 ار26 ة.; ,`' ع2 , 6 3; :O ا, `' ر2C 3; ? ة ا.; ,`' ع2 ار26 ة.; R SIMAN u/ ا)ة RELEASE; 278 و)ة إزا Remove Module و2:9م زا ,آ ?! واRJ2 ! 6 د ;2 C 3ر وإر & إ و6ة " .,وأ [ , إا & -1إزا %J U 9T , SC ,إ .( %J -2إ ء H6 3; 9ة ا@ Nر " دة "., -3أ .راآ ! Sرآ ب ا@ Nر R -ا6ت `. ;.ة ا ? ;2C 3ر w7ا@ ب: ;.ة ا ? ;2C 3ر '` ,ا:O ا)ة SIMAN u/ REMOVE: ;1,Queue 1 279 و)ة إ #ك )أSeize Module (30 و2:9م 7ء ا !? /و6ات ! 2رد أو أآ[ ,` "Iأو ."Iد2ل آ ?! ه 5.ا62ة ;& 2 C 3; N9ر R - ;2I 6ا 2ارد ا U79 3ة وا6ة ) " ( آ ان 2ع Iإام ا 2رد 9د ه .و ! أ [ ,إ &I -1ا SC ,9ز 2ن )إ gا دم(. -2د2ل ) `Oإ ك ^; ,و SCا.(d ;.ة ا ? ;2C 3ر w7ا@ ب: 280 !"ار ا26 ة.; Priority ,f;0ار ا26 ة.; 281 ;.ة 26ار إ,; V ;.ة 26ار إ2 ,; Vع 282 ;.ة 26ار 2ع ا2 7ر ;.ة ا ? ;2C 3ر '` ,ا:O Rإ Uر ;.ة ? ا"! ;.ة 26ار ا 2ارد 283 ر2 7ع ا2 ار26 ة.; SIMAN u/ ا)ة QUEUE, Seize 1.Queue; SEIZE, 2,Other; DELAY: 0.0,,VA; Search Module و)ة : 9 ( J ) مY , J ?! أو/ ا,I رH "I أو,2 H ر أو2 C 3; P م2:9و :3; [ م9 و.د P ط .ر2 C 3; ," ,I ر%J ! رP ا-1 .R7:ع "! ! ا2 ! ,2 H 3; P ا-2 .("I 3; P ) رد2 ; ا2I ?! إ دا/ اU9 أي ! ا" ت9 I -3 : ا@ بw7 ر2C 3; ? 284 ة ا.; ع2ار ا26 ة.; :Oر '` ت ا2C 3; ? ة ا.; ع2ار ا26 ة.; R SIMAN u/ ا)ة 0$ SEARCH, Queue 1; 285 1$ BRANCH, 1: If,J<>0,2$,Yes: Else,3$,Yes; 2$ DELAY: 0.0,,VA; 3$ DELAY: 0.0,,VA; Signal Module رة7^و)ة ا Sا2: ا3; N )أWait Module رNة إ6 وM/ إ رة, J م ر ل2:9و &I و ! إا. ? ت ا د/ اآ د ! ا79ذج و2 ا3; (Blocks .(fq ء2fل ا2 9 A9 ) قC RC :I أ ط اM I -1 . ^ ر,"7J N9 آ نSC M /9 3/ M " e ا-2 : ا@ بw7 ر2C 3; ? ة ا.; :O , `' ر2C 3; ? ة ا.; SIMAN u/ ا)ة SIGNAL: 1; 286 و)ة Store Module >$4 و _f9آ ?! إ Gن .آ ا& 9م "ض '2ر آ ? / ,ت ل ا" 3; U M و6ات اى @ ,; Vإ R -إ6 ? ت ! ا ? /ت .وأ [ ,إا & -1ض '2ر آ" I ,"7J ! ,ة ت. RI -2د ا !? Gدا., : M ;.ة ا ? ;2C 3ر w7ا@ ب: 287 ;.ة 26ار 2ع ;.ة ا ? ;2C 3ر '` ,ا:O ا)ة SIMAN u/ STORE: ;Storage 1 و)ة إ0ج >$#ون Unstore Module 2:9م اج آ ?! ! Gن أن د& ! ل ا62ة Gن .و& /إا ت ا62ة Gن. ;.ة ا ? 27ر w7ا@ ب: ;.ة 26ار ا2ع 288 :O ا, `' ر2C 3; ? ة ا.; SIMAN u/ ا)ة UNSTORE; 289 :رةD ت ا6و)ات ا Advanced Set Module رةDت ا2Tو)ة ا ت2 H وأيStorage Sets ت ا زن2 H وQueue Sets ا27 ت ا2 H د9و ! Group ,2 H "فI Set ,2 H وا. ت2 H ة ا. ء هf"ف أI Uاى آ أ ت2 H .Set Index ,2 H A ك وO % I 3 وا,U O ا" ' ا اد2 اR M "9 ي.ع ا2ة ! ا6 أو أي وSeize g ة أ62 اM"ف داI ! أن/ 9 ا27ا !9GI ات6 و3; "فI ! أن/ 9 ت ا زن2 H .Material Handling Type Module .Unstore ونG وإاجStore Expression Module 6.4 و)ة ذج2 ا3; " اI و. U ," ا%: واExpressions "I "فI ة62 ا5.وه M/OI !/ 9 و.!9" ذات " أوArrays ف2` _ ا" آ9"I !/ 9 . U? ام أ " ت9ز2Iز و2 وأ ء ر,:: اد ا0 وا, اد ا0 ! اSاآI ا" ام < M[ ) ,:7 اس و ت2J و*( وأ+ M[ ) , 6 ( و تNORM(10,2) M[ ) ,? 6إ 3; " a 9T !/" ( وI 3; "I ! إام/ 9 .اتY ( و'` ت و.GT. و .&` إام 290 Failure Module JA و)ة R امz , 3 وه.MO`9 &رد آ2 ;ن اMO; وث6 .ارد2 اR م9و .WJ2 ` ا3; " UI 2/ M آMO`I 3 وا," أو "دة ا," ا,9 د6ارد أ2 ا File Module 9/# و)ة 5. وه.ReadWrite ة62 ا,7ا2 3-اد إام _ ر9 دا2-2 ن2/9 أنSH9و .ىTاص ا _ ا2 وM/Oل وا2'2 ا,:9C و3- ا _ ا ر% د إI ة62ا StateSet Module 2T# و)ة ,I ذا, ,7I ن2/I ! أن/ 9 تT وا.ارد2 رد أو د ! ا2 تT 6 9 م9و ,2 H 3I , 0 ا" ت ا3; Resource ة6 و.رد2 ة9- تT أوAutostate .!" رد2 مI ف2 3 وا, ا Statistic Module و)ة إء .آ ة ء اX اR HI 3/ ,; V? ت إ 6 إ9 م9و Storage Module >$4 و)ة . UI ة6ي وe I ذا2I ! ان/ 9 وا زن.نG %"ف إ9و :Advanced Modules #)*ا)ات ا 3 ه3 واSIMAN ,Y SاآI ,:: ا3; ات62ة ا.ات اي )ه6 وArena ] -29 Advanced Transfer Modules , : ل ا:@ات ا6 وM[ 291 (Arena 3; 3`ا ك ا (SIMAN ,Y ت2/ ! ) Blocks Sا2:ات ا6وو (SIMAN ,Y ت2/ ! ) Elements ' "ات ا6وو 292 وو6ات ا Gم Packaging و^ه ! ا62ات ا - , :ا2 .ف Oح أي و6ة ! U-ه 5.ا62ات اGوم. 293 :Case Studies 'ت دراf :) اا9 ر اC U M `9 3?ا2O M/O R; ا,7: ?! إG اM 9 .6 واS ` U ل2'! و & Y' , : M , ز0 ا5. ? وهJ د8 و1 ! Interarrival times ل2'! و , أز :3 ول اH ا3; ل آ6@ا :ل2'2! ا , أزR9ز2I ول- Time between Arrivals (Minutes) Cumulative Probability Probability 1 0.125 0.125 2 0.125 0.250 3 0.125 0.375 4 0.125 0.500 5 0.125 0.625 6 0.125 0.750 7 0.125 0.875 8 0.125 1.000 :3 ول اH ا3; ت آT 6 ? J د6 و1 ! 294 اوحI Sevice times , ا, أز ول 2Iز R9أز ,ا :,Cumulative Probability ا 27ب M Iا Nم Service Time Probability )(Minutes 0.10 0.10 1 0.30 0.20 2 0.60 0.30 3 0.85 0.25 4 0.95 0.10 5 1.00 0.05 6 آ ة و'2ل و 500 ,ز . 2 ء ا 2ذج: ا 2ذج - wا ،ز 2ن &H9اف و2 7 9ر: -1ا2 7ر :3 أ -ا اف 9 :3أ ا ,ة و 9ف " .& ,9 U ب -ا اف 2YOل 2 6 N9 :ا دم %9 %Xا دم و9أ ا ,و 9ف " ,9 U &. -2ا2 7ر ^ :3 أ ,9 U 9 -ا2 7ر و a 9 6 N9ا0ول ; 3ا2 7ر و 9ا ,و 9ف " .& ,9 U ب !/ 9T -أن Y9در ا Nم إ ! Tل .& ,9 U ,7: ج إ 2Iز ?! وذ gام Createأ wYVوأ SأCreate ,2:9 295 ا دم M[ 9ام Process 6Tا wا2ا' U Mوا.ي 9ث eI) ? :Iآ ! أن ا M'2ا.ا 3Iر آ :3 وإ R H %J Tا@ رات آ ه 3; aV2 2ا M/Oا(5 9 %Xف ا2 Gن و9ج ! ا Nم ! ل Dispose 296 اhن Mا " 2ت ! ,:9Cا 2وا ,واوج ! ا Nم. أ ر Createوأ.; UN; !I U wYVة 2ا'U "Iا ت آ ; 3ا.M/O 26 3; 6Tار "2ع" Typeأ " Expression ""Iو;26 3ار " ""Iا )…DISC(P1,V1, وا 3"I 3أن ا2ز0 R9ز , ! ا2'2ل ه2I 2زH 7" M ` R9ول و اGوج P1,V1 ه 2ا , :ا0و ا ,ا2ز R9ااآ 3وا , :ا0و ا Y ,/ا"2Oا?" 3ز ! ! ا2'2ل" وا Mه2 ) ( x1 ) , x1, F ( x2 ) , x2 ,..., F ( xn ) , xn DISC( F " 6Tا@ Uء ! إد ل ا " 2ت و 2/Iن Createرة , `' 3; UN9ا Oه5. ا " 2ت 297 . اص إذا أرد2 اYI ! هR7 !I wYf U'ا2 ة.; UN وProcess ر ة.; ت اUN; Add… 7YV Resources "ارد2 " ار26 3; 6T .OK %X OK wYf %X.aV2 2 ت آ ه2" اb و (aV2 !?G- W J) O ا, `' ة.; 6T 298 . ءO ,' أيM9"I أوYI ! هR7 U'ا2 ة.; UN; !I U wYf وDispose وأا ر O ا, `'و Setup وRun دوات ر0ة ا.; ! .اء-z G ه- ذج2 ن اhا GUHار ا26 ة.; N; 299 Number of ارات/ د اM Replication Parameters ار/ ا% " ة.; ! ود,:J د480 Replication Length ار/ل ا2Cارات و/I 10 وه أReplications 3ي آ ه0 ا.;ا2 ا3; % " ا,: 3: و0.0 ! و ة ا, 24 م2 ا3; ا ت .Default Values UN9 ء وU@ ا6 آ ة ي اHI Go %X Run ر Yes wYf 9: ه اO 3/ 300 ا:9: ا 9:ا.ي 2 9 ) M ` Arena 5UNIي ه `' 9ت ( و2ف 3; ,OJا 6Tا" 2د ا 90وا.ي 9م 2Hال ; 3ا.9: وه.ة ! ,7:ا آة 301 Vة SIMAN u/ ال T ا9/# PROJECT, "mm1","amb",,,No,Yes,Yes,Yes,No,No,No; VARIABLES: FinishedService.NumberOut,CLEAR(Statistics),CATEGORY("Excl ude"): Customers.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Service.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Service.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Service.WIP,CLEAR(System),CATEGORY("ExcludeExclude"); QUEUES: Service.Queue,FIFO,,AUTOSTATS(Yes,,); PICTURES: Picture.Airplane: 302 Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: service1,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resource s),,AUTOSTATS(Yes,,); REPLICATE, 1,,MinutesToBaseTime(100),Yes,Yes,,,,24,Hours,No,No; 303 ENTITIES: Arrival,Picture.Report,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Y es,,); SETS: Servers,service1; ذج1 ا9/# ; ; ; Model statements for module: Create 1 ; 2$ CREATE, 1,MinutesToBaseTime(0.0),Arrival:MinutesToBaseTime(EXPO(1 )),100:NEXT(3$); 3$ ASSIGN: Customers.NumberOut=Customers.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Process 1 ; 0$ ASSIGN: Service.NumberIn=Service.NumberIn + 1: Service.WIP=Service.WIP+1; 9$ QUEUE, Service.Queue; 8$ SEIZE, 2,VA: SELECT(Servers,POR, ),2:NEXT(7$); 7$ DELAY: MinutesToBaseTime(Uniform(.5,1.5)),,VA; 6$ RELEASE: SELECT(Servers,LAST),2; 304 54$ ASSIGN: Service.NumberOut=Service.NumberOut + 1: Service.WIP=Service.WIP1:NEXT(1$); ; ; ; Model statements for module: Dispose 1 ; 1$ ASSIGN: FinishedService.NumberOut=FinishedService.NumberOut + 1; 57$ DISPOSE: Yes 305 . ا#)$/ B أ) و .ر2 C _' د اآ[ ! ر او2-آ ة و ا,:9C ض2ا ا [ ل ه.ض ! هYا راتS7 اM'2I و.0 ! ت د7 ا,I م2:9 رات,"9 , %"7 :, ل ا2'2! ا , ازR9ز2I S6 %"7 ا رات إ اM I .%"7 ,'ا2ا :ل2'2! ا , أزR9ز2I ول- Time between Arrivals (Minutes) Cumulative Probability Probability 1 0.25 0.25 2 0.40 0.65 3 0.20 0.85 4 0.15 1.00 S^ ا,f`9 g. )و/ ! رة وةJ [ اآ6 ا،/ 3 [ وا6 ا%ه6 ا9 ! ا د 3 ه/ و6 ! اM/ , ا, ازR9ز2I ،!? G ا, 3; ?!( آ ا& اعGا :3ا2ا : 60 , ا, أزR9ز2I ولService Time (Minutes) Cumulative Probability Probability 2 0.30 0.30 3 0.28 0.58 4 0.25 0.83 5 0.17 1.00 :/ , ا, أزR9ز2I ولService Time (Minutes) Cumulative Probability Probability 3 0.35 0.35 4 0.25 0.60 306 ا 27ب 0.80 0.20 5 1.00 0.20 6 آ ة ا Nم "; ,أدا?&. ,-. !/ 9ه.ا ا Nم "ة Cق .أ2 3Ihذج :ح و ا S 7ا ت ا 3; , 27 2ا; . ? R -ا62ات وaV2 &?GH 6 :!9 Iول ,-.ه.ا ا Nم "ة Cق اى و Jرن . U 307 SIMAN u/ ال T ا9/# PROJECT, "Unnamed Project","amb",,,No,Yes,Yes,Yes,No,No,No; ATTRIBUTES: Ahmad Service.Busy; VARIABLES: Wait Line.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Ahmad Available?.NumberOut True,CLEAR(Statistics),CATEGORY("Exclude"): Bakur Service.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Customers Arrive.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Ahmad Available?.NumberOut False,CLEAR(Statistics),CATEGORY("Exclude"): Customers Leave.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Ahmad Service.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Bakur Service.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Wait Line.NumberIn,CLEAR(Statistics),CATEGORY("Exclude"): Wait Line.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Bakur Service.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"): Ahmad Service.NumberOut,CLEAR(Statistics),CATEGORY("Exclude"): Ahmad Service.WIP,CLEAR(System),CATEGORY("Exclude-Exclude"); 308 QUEUES: Wait Line.Queue,FIFO,,AUTOSTATS(Yes,,); PICTURES: Picture.Airplane: Picture.Green Ball: Picture.Blue Page: Picture.Telephone: Picture.Blue Ball: Picture.Yellow Page: Picture.EMail: Picture.Yellow Ball: Picture.Bike: Picture.Report: Picture.Van: Picture.Widgets: Picture.Envelope: Picture.Fax: Picture.Truck: Picture.Letter: Picture.Box: Picture.Woman: Picture.Package: Picture.Man: Picture.Diskette: Picture.Boat: Picture.Red Page: Picture.Green Page: Picture.Red Ball; RESOURCES: Ahmad,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources), ,AUTOSTATS(Yes,,): Bakur,Capacity(1),,,COST(0.0,0.0,0.0),CATEGORY(Resources), ,AUTOSTATS(Yes,,); 309 REPLICATE, 1,,MinutesToBaseTime(480),Yes,Yes,,,,24,Hours,No,No; ENTITIES: Customr,Picture.Van,0.0,0.0,0.0,0.0,0.0,0.0,AUTOSTATS(Yes, ,); ذج2 _ ا ; ; ; Model statements for module: Create 1 ; 5$ CREATE, 1,MinutesToBaseTime(0.0),Customr:MinutesToBaseTime(EXPO(3) ):NEXT(6$); 6$ ASSIGN: Customers Arrive.NumberOut=Customers Arrive.NumberOut + 1:NEXT(0$); ; ; ; Model statements for module: Process 1 ; 0$ ASSIGN: Wait Line.NumberIn=Wait Line.NumberIn + 1: Wait Line.WIP=Wait Line.WIP+1; 12$ QUEUE, Wait Line.Queue; 11$ SEIZE, 2,NVA: Ahmad,1: Bakur,1:NEXT(10$); 310 10$ DELAY: 0.016666666666667,,NVA; 57$ ASSIGN: Wait Line.NumberOut=Wait Line.NumberOut + 1: Wait Line.WIP=Wait Line.WIP1:NEXT(1$); ; ; ; Model statements for module: Decide 1 ; 1$ BRANCH, 1: If,Ahmad Service.Busy==0,60$,Yes: Else,61$,Yes; 60$ ASSIGN: Ahmad Available?.NumberOut True=Ahmad Available?.NumberOut True + 1:NEXT(2$); 61$ ASSIGN: Ahmad Available?.NumberOut False=Ahmad Available?.NumberOut False + 1:NEXT(3$); ; ; ; Model statements for module: Process 2 ; 2$ ASSIGN: Ahmad Service.NumberIn=Ahmad Service.NumberIn + 1: Ahmad Service.WIP=Ahmad Service.WIP+1; 63$ DELAY: MinutesToBaseTime(NORM( 3 , RELEASE: Ahmad,1; 0.5 )),,VA; 62$ 311 110$ ASSIGN: Ahmad Service.NumberOut=Ahmad Service.NumberOut + 1: Ahmad Service.WIP=Ahmad Service.WIP-1:NEXT(4$); ; ; ; Model statements for module: Dispose 1 ; 4$ ASSIGN: Customers Leave.NumberOut=Customers Leave.NumberOut + 1; 113$ DISPOSE: Yes; ; ; ; Model statements for module: Process 3 ; 3$ ASSIGN: Bakur Service.NumberIn=Bakur Service.NumberIn + 1: Bakur Service.WIP=Bakur Service.WIP+1; 115$ DELAY: MinutesToBaseTime(NORM( 4 , 1 114$ RELEASE: Bakur,1; 162$ ASSIGN: Bakur Service.NumberOut=Bakur )),,VA; Service.NumberOut + 1: Bakur Service.WIP=Bakur Service.WIP-1:NEXT(4$); 312 {1 آة# :3 ه,7O أ,XX &; %I g w ذج2 ف "ض2 ATM Transactions 3( : S " ت-1 Teller Operation ,; ت 'ا-2 "Drive Thru" Transactions ة ا رة.; ! " ت-3 .M " M/ رN@ وز ! ا, ! ا9N ?! اG? ت ! د ا 6 إR HI مN :ذج2 ا ء " ت ا راتG- ,;ء ت ا اG- 313 3h اS ء اG- Advanced Transfer Mdules رة27 اM:ات ا6ة ! و9- !I6ذج و2 ا ا. ه3; 6 .Route Module وStation Module ه Station Module ,7 314 ة6و ثI P6 3:7 ن دي أو/ ج. I 3 ت( وا7 ,2 H )أو,7 "فI ة62 ا5.وه ."ف ة أ آ! " ت9 U9 ا.U; ت7 ! ا,2 H &`9"I , 6 3; و., "ا :3 آ,[ أ3; ^ م9و .,Cت ااT( ,:7 -1 .مJ آةS" اآ.I اء.;ا2 ,2 H -2 .يGق آ2 3; % 7 ,:7 -3 : U'ا2 .;ا2و SIMAN u/ T ا9/# PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; STATIONS: Station 1; 315 REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; SIMAN u/ ذج1 ا9/# ; ; Model statements for module: Station 1 ; 0$ STATION, Station 1; 3$ DELAY: 0.0,,VA; Route Module ة ر6و .!? / ارG 3 ت ا7 ا, ? J 3; , ا,7 أو ا ا," ,7 آ ?! إM: م2:Iو . ل:z eI ! ز9 I !/ 9و :[ ن2/I UI وإا . ا ر, : "I ت,7 إR ر ا2C 3; ,"7J إر ل-1 .," , و7 %"7 3; !? إر ل ز-2 U'ا2 .;ا2و SIMAN u/ T ا9/# 316 PROJECT, "Unnamed Project","Dr. A. Barry",,,No,Yes,Yes,Yes,No,No,No; STATIONS: Station 1; REPLICATE, 1,,,Yes,Yes,,,,24,Hours,No,No; SIMAN u/ ذج1 ا9/# ; ; Model statements for module: Route 1 ; 0$ ROUTE: 0.,Station 1; 317 [ ل ا" gض 2اص ا62ات آ :3Ih ا 2ذج 2 9ي ,XXو6ات .; Createة 2ا'U و ,XXو6ات Process و2 M `Iارده آ 3Ih 318 U'ا2 ة.; (رة27 ) ! ا" ت اStation Module ت7 8 -29 آ U'ا2 ة.; (رة27 ) ! ا" ت اRoute Module رات6 -29 و U'ا2 ة.; Dispose !I6وو 319 Arena A تr0) ا/4 : M "9 !/ ) وArena R -29 ي. واInput Analyser ا تM I ] م9 , / ا,-. ا3; U @اg وذ, ت, 6" ت إ9ز2I 7 ( U .( Input-Data Modeling , ا ت ا,-. f9 اI )وQuatitative Modeling !/ 9 واى ;اغ و, J M ! آM `I ASCII File 3 _ 3; , ا ت اRV2I 3; ,9ن ^ و2/I ! ان/ 9 70 آ ان ا6ا2 ا7 ا3; إد ل اي د ! ا ت ! أوArena M ا ت ! داM I ] MY* و.dst ن ا _ ادG . UI د Arena ي2 9 ي. اH ا ة إد ل.; UN; wYV أو أNew %X File أ ر,? ا, ? :! ا 320 Use Existing … %X Data File %X File ا ر,? ا, b: ! ا%X _ ة إ ر ا.; UN 321 ا ر ا _ ا.ي 2 9ي ا ت وا.ي & ا@ اد %X dstا]; Open wYV 6Tأن ا ] M/رج /Iاري ت ذا" Iد ) ,b; 31ه.ا ه 2ا"د ا@;ا.(3V ا ! Fit wYVا , ? :ا?Fit All %X , 322 Mf; أ37"9 ي. اR9ز2 ر ا9 %X I ذا, " ت ا9ز2 اM آ79 ] اM"H ا.ه :! K-S Test ! إ ر/ 9 K-S Test وChi Square Test اء إ ري- g وذ7I %X :3 ه,H اW آ, ت ا Distribution Summary Distribution: Weibull Expression: WEIB(4.91, 1.03) Square Error: 0.000756 Chi Square Test Number of intervals = 15 Degrees of freedom = 12 323 Test Statistic = 14.4 Corresponding p-value = 0.284 Kolmogorov-Smirnov Test Test Statistic = 0.0176 Corresponding p-value > 0.15 Data Summary Number of Data Points = 1000 Min Data Value = 0.0022 Max Data Value = 38.5 Sample Mean = 4.92 Sample Std Dev = 5.01 Histogram Summary Histogram Range = 0 to 39 Number of Intervals = 31 SUMMARY.OUT ر @و _ ا Fit All Document: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Data File: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Function Sq Error -------------------------------Weibull 0.000756 Gamma 0.000818 Erlang 0.000846 Exponential 0.000846 Beta 0.00203 324 Lognormal 0.00625 Normal 0.0391 Triangular 0.0632 Uniform 0.0957 . ا ت7I Mf;0 اR9ز2 ا2 هM9 وR9ز2I أن6T "د,: أن ا ?] ا6T .7اري ا/ اR9ز2 ت اb; دXeI ف "ض2 :! تb` د اY .31 تb; %X ]9 وI ذا7 ;" د اOK %X 20 تb`" د اVو Distribution Summary Distribution: Exponential Expression: EXPO(4.92) Square Error: 0.000421 Chi Square Test Number of intervals = 11 Degrees of freedom = 9 Test Statistic = 6.98 Corresponding p-value = 0.639 325 Kolmogorov-Smirnov Test Test Statistic = 0.0192 Corresponding p-value > 0.15 Data Summary Number of Data Points = 1000 Min Data Value = 0.0022 Max Data Value = 38.5 Sample Mean = 4.92 Sample Std Dev = 5.01 Histogram Summary Histogram Range = 0 to 39 Number of Intervals = 20 . ا ت7I Mf;0 اR9ز2 ا2ن هh ا30 اR9ز2 أن ا6T Fit All Document: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Data File: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Function Sq Error ---------------------------------Erlang 0.000421 Exponential 0.000421 Gamma 0.000422 Weibull 0.00048 326 Beta 0.00277 Lognormal 0.00784 Normal 0.06 Triangular 0.101 Uniform 0.148 .]T إرR9ز2I ! ,' , 6 2 ه30 اR9ز2 أن ا6T 10 تb` آ ن د ا2 ذا Distribution Summary Distribution: Exponential Expression: EXPO(4.92) Square Error: 0.000068 Chi Square Test Number of intervals = 6 Degrees of freedom = 4 Test Statistic = 0.959 Corresponding p-value > 0.75 Kolmogorov-Smirnov Test Test Statistic = 0.0192 Corresponding p-value > 0.15 Data Summary Number of Data Points = 1000 Min Data Value = 0.0022 Max Data Value = 38.5 Sample Mean = 4.92 Sample Std Dev = 5.01 Histogram Summary 327 Histogram Range = 0 to 39 Number of Intervals = 10 Fit All Document: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Data File: C:\Documents and Settings\amb\Desktop\InputAnalysis\exp.dst Function Sq Error --------------------------------Erlang 6.8e-005 Exponential 6.8e-005 Weibull 0.000107 Gamma 0.000166 Beta 0.00158 Lognormal 0.00868 Normal 0.0976 Triangular 0.202 Uniform 0.281 M ; R- را.ل29] ووT"! إر9ز2 ! اM ! آ,' , 6 2 ه30 اR9ز2 ا:,N6 . ا تM I 328 1 [/# ا" ل 329 2 اوال ا,V 9 330 331 3 SIMAN SاآI اتY 332 333 4 -ول Yات 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 5 ,/ا 2ت 351 352 353 354 355 356 357 358 359 360 361 Arena 3 :, ا,/O اM ARENA آ ة ام وا,-. ا,:9C ف "ض2 ,:Y ا,و/@ات ا62! `! ! ا2 ة @ ج0 ا" ت اM[ 9 مNا ا.ه :3 اM/O ا3; M[ 9 ي. واSealed Scrapped 20% Rework Part A Prep Part A EXPO(5) TRIA(1,4,8) Sealer 9% EXPO(45) 80% Salvaged and Shipped Arrivals Part B Part BPrep Part A TRIA(1,3,4) Batch of 4 EXPO(30) Part B NORM(2.4,0.5) 91% Shipped TRIA(3,5,10 .% I وU داRV2 U"' %I 3ات ا62 ," 9 رة ! ' د,'ا2 اR7:ا -ذ2 إM Iذج و2 ود ا6 ( رج%J 3; ]I Part A I 3و ا0ات ا62ا 5.ل ه2' و،? J د5 w2 زع ا2 Interarrival Times ل2'! و !G ,:7 3; ،? J د2 M:ا ا.ق هY9 وPart A Prep f ا,:7 إM:I R7:ا قY9 f ا ا.ا وه- ن ا م2/9 3/ 9 ا د5._ هNI وM:' د و%9 f ا 2 M:ق اY9 وSealer ء ا ا مGHا ا. هM:9 %X ،(1,4,8) 3[[ اR9ز2 اR9 ز .? Jد ات6 و3; R HIذج و2 ود ا6 ( رج3; ]I Part B I 3 ا, [ات ا62ا ! ! G U I واPart B Prep f ة ا6 إ وMI انMJ R7J (4) R ! ار " اUf" ! U ; %9 R7: ا5.ل ه2' " و،,:J د30 w2 3 اR9ز2I & ل2'و ات27 ,X[ ` اRI Part B Prep f ا,:7 3; ,H " ا، `اد,"7J M" ] آIو (3,5,10) 3[[ اR9ز2 اR9 f ا ان ز ! اPart A Prep f ا,:7 3; آ ,و/@ اR7: اRV2 %I ا م, .ل2'2 ? J د2 ,JY ا ا مR7: اMI %X Part ع2 ! ,"7:; ،,"7:ع ا2 "9 , " ا5. ز ! ه، U %X ! و9 ا دMدا .(2.4,0.5)3"C R9ز2I & ن2/9 Part B ع2 ! ,"7:( و1,3,4) 3[[ R9ز2I & ن2/9 A 362 MI ,V2; اR7: ا،! O ا%: MI ا` و,:7 I , 2 اR7: ! ا91% 9- ! U وU`NI وU:' وإ دةU//`I %9 P6 Rework R إ دة ا,:7 3" د إ9 3J ! و اO ا%J إMI ` وI ات62 ! ا80% , " ا5.و ! ه 45 w2 3T اR9ز2 اR9 R ق @ دة اY ! اG ا.ذج2 رج ا,'0& اU.,:J د2 قYI ىT ,U- ! ل:@ ا, أز،R7: اM/ ,:Jد Resource ارد2 ى إام ا,;" ,6 M? ت ! آ 6 إR - ب27 ا ,"7: ا,JYI ي. ! اG ا، Number in Queue ر2 C M آ3; R7: د ا، Utilization Flowtime أوCycletime ذج2 ا3; ,"7:ث ا2/ ! وزTime in Queue ر2 7 ا3; .3'0ره ا . Animation ,ر آ2 W او ارU" I ! أو اO W ار,"7J M/ ذج2 3 ف2 و,:J د2000 م ةNا ا. ه3ف آ2 :ذج1ء ا1 Common panel أ رFile > New 9- _ a; وأARENA ] MY :, اء اG-0 وأ اd أU و 363 , ة ا.; اUNI Arrive 1 3 !I رةe` wYVن أhا 364 :3 aV2 2 ا ت آ هMأد Enter Data Station Part A Arrive Arrival Data Batch Size 1 Time Between EXPO(5) Mark Time Attribute Arrival Time Leave Data Station Part A Prep Route Time 2 Assignments Attribute Sealer Time Value TRIA(1,3,4) , ة ا.; اUNI Assign… wYV أ%X 365 , ة ا.; اUN; Add… wYVأ , ة ا م آ.; ا3; Sealer Time 3 اM اد%X ! رة/I % إذاAttribute أ ر ..;ا2 اR - M`: OK wYV ا%X Value: ة ا م.; ا3; TRIA(1,3,4) وAttribute: :39 ا ت آM وأدArrive 2 R O ` اM";أ Enter Data 366 Station Part B Arrive Arrival Data Batch Size 4 Time Between EXPO(30) Mark Time Attribute Arrival Time Leave Data Station Part B Prep Route Time 2 Assignments Attribute Sealer Time Value NORM(2.4,0.5) , ا ت اM! وأدI wYV اServer 1 إM: نhا Enter Data Station Part A Prep Server Data Resource Part A Prep_R Capacity Type Capacity Capacity 1 Process Time TRIA(1,4,8) Leave Data Station Sealer Route Time 2 , ة ا.; ا3; ;و آ 367 , ا ت اM! وأدI wYV اServer 2 إM: نhا Enter Data Station Part B Prep Server Data Resource Part B Prep_R Capacity Type Capacity Capacity 1 Process Time TRIA(3,5,10) Leave Data Station Sealer Route Time 2 , ة ا.; ا3; ;و آ 368 :39 ا ت آM! وأدI wYV إInspect 1 3 إM: Enter Data Station Sealer Server Data Resource Sealer _R Capacity Type Capacity Capacity 1 Process Time Sealer Time Failure Probability 0.09 Pass Inspection Leave Data Station Shipping Route Time 2 Fail Inspection Leave Data Station Rework Route Time 2 369 , ة ا.; ا3; ;و آ :39 ا ت آM وأدInspect 2 R O ` اM";وأ Enter Data Station Rework Server Data Resource Rework _R Capacity Type Capacity Capacity 1 Process Time EXPO(45) Failure Probability 0.2 Pass Inspection Leave Data Station Salvaged Parts 370 Route Time 2 Fail Inspection Leave Data Station Scrap Route Time 2 , ا ت اM وادDepart 3 !I wYVا Enter Data Station Shipping Count Counter Shipping_C Increament 1 Tally 371 Tally Shipping_Ta Type of Statistics Attribute Arrival Time , ة ا.; ا3; ;و آ , ا ت اM وادDepart 2 !I wYVا Enter Data Station Salvaged Parts Count Counter Salvaged Parts _C Increament 1 372 Tally Tally Salvaged Parts _Ta Type of Statistics Attribute Arrival Time , ة ا.; ا3; ;و آ , ا ت اM وادDepart 1 !I wYVا Enter Data Station Scrap Count Counter Scrap _C Increament 1 Tally Tally Scrap _Ta 373 Type of Statistics Attribute Arrival Time , ة ا.; ا3; ;و آ :3 اM وأدSimulate !I wYVوأا إ Replicate Number of Replications 1 Beginning Time 0.0 Length of Replication 2000 374 أhن د رات اG-0اء ; 3ا 2ذج وذ gر ` ح ا ر ! اHول ا! 90 ; UNا ;.ة ا , ا2 ; OK wYVل ا Aا +وو' _ MاG-0اء آ 3 375 ىI ف2آ ة و أ اI ف2 RUN > GO wYf gآ ة وذ :3 ا9:] ا9 آ ة ي اH نhا ا3UI 6ذج و2 ! ا,` اء اG-0 ا3; M:I 3ات وه62ا * اآة واT ARENA Simulation Results amb - License #9400000 Summary for Replication 1 of 1 Project: Electronics Assembly Analyst: Dr.Adnan Barry Replication ended at time Run execution date :30/31/2001 Model revision date: 3/11/2001 : 2000.0 TALLY VARIABLES Identifier Average Half Width Minimum Maximum Observations ____________________________________________________________________________ Salvaged Parts_Ta 540.48 (Insuf) 101.91 874.90 31 Shipping_Ta 35.911 (Corr) 9.7800 117.85 548 Scrap_Ta 334.79 (Insuf) 76.343 821.27 4 Rework_R_Q Queue Time 429.95 (Insuf) .00000 782.19 36 Part A Prep_R_Q Queue 6.0259 (Corr) .00000 28.804 365 Sealer_R_Q Queue Time 1.9247 (Corr) .00000 12.850 603 Part B Prep_R_Q Queue 42.308 (Insuf) .00000 105.34 240 376 DISCRETE-CHANGE VARIABLES Identifier Average Half Width Minimum Maximum Final Value ____________________________________________________________________________ Rework_R Available 1.0000 (Insuf) 1.0000 1.0000 1.0000 Sealer_R Available 1.0000 (Insuf) 1.0000 1.0000 1.0000 Part A Prep_R Availabl 1.0000 (Insuf) 1.0000 1.0000 1.0000 Part B Prep_R Busy .72774 (Insuf) .00000 1.0000 .00000 Part A Prep_R Busy .79647 (Corr) .00000 1.0000 1.0000 # in Rework_R_Q 11.615 (Insuf) .00000 22.000 19.000 # in Part B Prep_R_Q 5.0770 (Insuf) .00000 19.000 .00000 # in Sealer_R_Q .58031 (Corr) .00000 4.0000 .00000 Sealer_R Busy .77139 (Corr) .00000 1.0000 .00000 # in Part A Prep_R_Q 1.0999 (Corr) .00000 6.0000 2.0000 Rework_R Busy .99029 (Insuf) .00000 1.0000 1.0000 Part B Prep_R Availabl 1.0000 (Insuf) 1.0000 1.0000 1.0000 COUNTERS Identifier Count Limit _________________________________________ Scrap_C Shipping_C Salvaged Parts_C 4 Infinite 548 Infinite 31 Infinite Simulation run time: 5.48 minutes. Simulation run complete. .ةV ا3; 9:ا ا. هJ ف2 ذج1 اU/2 ت1 4 ل0إد M "I Rework إ دة ا م,7 `ض ان،ذج2 ات اY_ " اf ف2 (,:J د480) ت8 ة6 واM U; M "9 و0 ا,9 اورShift !9 دور ] ; تV@ ا5. ه,-. ، f9 ت ا8 ! ةU; M "9 , [ ا,9واور :3 اM " ARENA , ا ت اU; M 3 وا, ة ا.; اN; Rework ` ا,7 Enter Data Station Rework 377 3 !I wYVا Server Data Resource Rework _R Capacity Type Scedule Scedule Rework Schedule Process Time EXPO(45) Failure Probability 0.2 Ignore Pass Inspection Leave Data Station Salvaged Parts Route Time 2 Fail Inspection Leave Data Station Scrap Route Time 2 , ة ا.; اg UNI (ة ! ا ر.; اM` )اSchedule wYVإ 378 ة اى.; UN; Add… wYVإ 3 ة اى آ, " آر ا%X OK wYVإ ,? Uة ا.; ] اIو 379 ," و,:J د480 ,9ق اورYI و6 واM و0 ا," !9 دور,-. 2 ه5 ي.ا .,:J د480 f9ق اYI ! و, [ا R9ز2I ;ذا آ نh WJ ل ! و7 ب وإ دةa I ! وز,:J د120 w2 I Sealer ا م,7 ,/ انf9`ض أ 3 ا2 هUptime ,/ ا,; M "I ي. ! اGا wYVا إ. ه,-. .? J د4 w2 3 اR9ز2I f9 & اDowntime & 79 وMYOI ة.; اUN !I Sealer ` ا,7 380 ة.; اUN; 381 wYVإ & ة و ا ت ا.; اUN; Add… wYV إFailures W I ءGH ا3; Failure Sealer Failure Failure Based On Time Fai When Wait Uptime EXPO(120) Downtime EXPO(4) ! أ رg. :6T U ? ت 6@ " اR H ,? 6 إ, آ-ذ2 _ إf Common ,62 ذج وأ2 ر ا 3; , ,:7 أ ر%X Statistics & ب2/ ا2وه رGا ,ا آ 382 ة.; اN; Statistics !I wYVإ ة.; اN; Add… wYV أTime-Persistent W I ءGH ا3; 383 , أ ا ت ا%X Data Object Queue select Queue Name Part B Prep_R_Q Save Observation to a File OS File Name in Double Quotes check “Prep B_Q.dat” :3 آر ا Data Object Queue select Queue Name Sealer_R_Q Save Observation to a File OS File Name in Double Quotes check “Sealer_Q.dat” 384 Data Object Queue select Queue Name Rework_R_Q Save Observation to a File OS File Name in Double Quotes check “Rework_Q.dat” , ة ا.; اN; Add… wYV أTallies W I , ا ت اMأد Tally Name Shipping_Ta Save Observations to a File check OS File Name in Double Quotes “Ship.dat” , ا ت اM وأدAdd… wYV أFrequencies W I أا Expression NQ(Rework_R_Q) Constant or Range Constant Value 0 Constant or Range Range Value 0 High Value 10 Constant or Range Range Value 10 High Value 20 385 Constant or Range Range Value 20 High Value 30 … ة.; ;] ا :3 و آI ف2 ,? 386 6@ة ا.; ا .ذج2 ا9 I ة.; د ا2"I 6 OK wYVأ :3 ا9: اRCآ ة آ وأ ي ا-أ * اآة واT ARENA Simulation Results amb - License #9400000 Summary for Replication 1 of 1 Project: Electronics Asse Run execution date : 11/ 1/2001 Analyst: Dr.Adnan Barry Model revision date: 3/11/2001 Replication ended at time : 50000.0 TALLY VARIABLES Identifier Average Half Width Minimum Maximum Observations ____________________________________________________________________________ Salvaged Parts_Ta 302.17 (Corr) 19.439 1229.2 1199 Rework_R_Q Queue Time 193.93 48.888 .00000 674.58 1467 Sealer_R_Q Queue Time 6.2386 1.5828 .00000 50.795 16499 Scrap_Ta 285.39 (Insuf) 25.366 1159.2 267 Part B Prep_R_Q Queue 70.972 (Corr) .00000 541.65 6624 Shipping_Ta 57.472 (Corr) 9.0197 564.91 15031 Part A Prep_R_Q Queue 15.183 2.5646 .00000 99.536 9876 DISCRETE-CHANGE VARIABLES Identifier Average Half Width Minimum Maximum Final Value ____________________________________________________________________________ Part A Prep_R Busy .85391 .02036 .00000 1.0000 1.0000 # in Rework_R_Q 5.6899 1.6284 .00000 28.000 .00000 # in Sealer_R_Q 2.0586 .59611 .00000 21.000 .00000 Part B Prep_R Availabl 1.0000 (Insuf) 1.0000 1.0000 1.0000 # in Part A Prep_R_Q 2.9990 .61504 .00000 24.000 1.0000 Sealer_R Available 1.0000 (Insuf) 1.0000 1.0000 1.0000 Part A Prep_R Availabl 1.0000 (Insuf) 1.0000 1.0000 1.0000 Rework_R Available 1.4992 (Insuf) 1.0000 2.0000 1.0000 Sealer_R Busy .84177 .02003 .00000 1.0000 .00000 Rework_R Busy 1.3732 .06088 .00000 2.0000 1.0000 387 Part B Prep_R Busy .79305 .04708 .00000 1.0000 .00000 # in Part B Prep_R_Q 9.4023 (Corr) .00000 88.000 .00000 COUNTERS Identifier Count Limit _________________________________________ Salvaged Parts_C 1199 Infinite 267 Infinite 15031 Infinite Scrap_C Shipping_C FREQUENCIES --Occurrences-- Standard Restricted Identifier Category Number AvgTime Percent Percent ____________________________________________________________________________ Value(NQ(REWORK_R_Q)) STATE(Sealer_R) Constant(0,) 112 81.559 18.27 18.27 Range(0,10) 163 197.97 64.54 64.54 Range(10,20) 63 120.45 15.18 15.18 Range(20,30) 11 91.559 2.01 2.01 BUSY 3635 11.578 84.18 84.18 IDLE 3339 1.9188 12.81 12.81 FAILED 387 3.8871 3.01 3.01 Simulation run time: 1.97 minutes. Simulation run complete. .ةV ا3; 9:ا ا. هJ ف2 : Output Analysis =ت$ ا/4 آة P 342 ر: ا3; ة/ ا3; ت- اM I ع2V2 إM ` ق7 ف2 ] R 3Ie9 ي. واOutput Analyser ] ف م2 ى2 ا ا. ه3; . 2 . ع ا2V2 ا3; ,? 6@ ا, " ه آ- 3 ت اw M ARENA M "9 ] ن ا0 ,2:9 او ! اARENA M! دا إOutput Analyser MYO إ أ ة.; اUNI MYO " ا،M "9 3/ ARENA ج9T و,Iا. 388 ة.; اUN; File > New 3 wYVأ ا ` تH UN; Add… 3 wYVأ 389 Data Group Files ` ت ت,2 H آ: WG 3أ ر ا ` ت ا UN; Graph > Plot أ ر، Prep B_Q , [ اR7: اf I ر2 C 3; Y ا% نhا ة.; ا 390 OK %X Prep B_Q.dat وا رAdd… wYVا , [ اR7: اf I ر2 C 3; ات62 "د ا% ر2وه R ر إ دة ا2 C ( ت% ر% 391 ; وأا Nا ا رج ا/اري 2 7ر إ دة ا R 392 Mا% 3 ا% ا37"9 ي.وا Uf" ف "ض2 Output Analyser ] 3; آ[ة3? 6 إM I قC -2I .ةV 393 ا3; R9 M/O :!'ا ا :/# GPSS World ;م اآة 1ل# ,` م وآN ا3; Transactions ! ` " ! او2I ,`ف "ض آ2 ا ا [ ل. ه3; .%U U أو%U`? ء وU م " إN ! ا%U- أو إا%U ا S م و& اآN ا3; ل2 ! " 2 GENERATE S :م ا9 The GENERATE Block: GENERATE A,B,C,D,E Operands ا" لP6 %( او إNull) T ن2/9 ! ان/ 9 إ ري و2 وه، 2! ا ! زw2 A اس2J" ! أI ( أوString) وف6 ( اوNumber) %J( أو رName) (Direct SNA) م ةN ,9 د,`' ( أوParenthesized Expression) ! " % " ! إام/ 9Tو ن2/9 ! ان/ 9 إ ري و2 وه، , أو "ل دا2! ا ! لزH _ B "I ( أوString) وف6 ( اوNumber) %J( أو رName) %( او إNull) T Direct ) م ةN ,9 د,`' ( أوParenthesized Expression) اس2J! أ ! " % " ! إام/ 9T( وSNA ! ان/ 9 إ ري و2 وه، M " أول2I eI ! ز2 وهe ز ! ا,9ا ( أوString) وف6 ( اوNumber) %J( أو رName) %( او إNull) T ن2/9 م ةN ,9 د,`' ( أوParenthesized Expression) اس2J" ! أI ! " % " ! إام/ 9T( وDirect SNA) 394 C ,V ا@;ا, : وا، %ه2I %9 !9. "د ا " ! اJ0 أو ا"د ا2 ا6 D (Name) %( او إNull) T ن2/9 ! ان/ 9 إ ري و2 وه، ,9 UT %" ا ا.U Parenthesized ) اس2J" ! أI ( أوString) وف6 ( اوNumber) %Jأو ر ! إام/ 9T( وDirect SNA) م ةN ,9 د,`' ( أوExpression ! " % " T ن2/9 ! ان/ 9 و0 ,V & ا@;اJ إ ري و2 وه، ,f;0ى ا2 E ! "I ( أوString) وف6 ( اوNumber) %J( أو رName) %( او إNull) Direct ) م ةN ,9 د,`' ( أوParenthesized Expression) اس2Jأ ! " % " ! إام/ 9T( وSNA ص اد: م وإN ! ا%U- ! ا " ! وإاTERMINATE S :م ا9 3 اS ء و& اآU@ا The TERMINATE Block: TERMINATE A M " اP6 ! ان/ 9 إ ري و2 وه0 & ,V ا@;ا, : ء واU@ ص اد ا:ار إ: ( أوPosInteger) S-2 a ' %J( أو رName) %( او إNull) T ن2/9 ( أوSNA) مN ,9 د,`' ( أوParenthesized Expression) اس2J" ! أI (SNA*Parameter) %" ,9 د,`' Example 1: GENERATE 1 395 A TERMINATE 1 GPSS 3; ذج2 , `' 3; اMأد Create Simulation %X Command ا ر,? ا, ? :! ا 396 ]; a ' GPSS ,Y ي2Y اSإذا آ ن اآ ! & ' ! f9T !/ي و2Y اS اآ,6 ! a ' ] أن ا3"I Ready , آ ! ] اء ا- إMJ (,:7 ' & اaV وواw 3 " ا ] اC) ,:7 ا,6 ا %X Window wYf ,? ا, ? : ! اU M 3 واSا2:ة ا.; ,J اMf;0ا 3 آBlocks Window رU وSimulation Window إ ر Sا2:ة ا.; UN; 397 START %X Command ,? ا, ? : ر ! اgآ ة وذ ي اH نhا ار2 ة ا.; UN; 398 TERMINATE S: اM /9 6 آ ة اء ا- إ3"9 ا. ء وهU@ "اد ا100 , :أد ا 9 M " 3?ا2O^ M/O 29 ي. واGENERATE S : %ه2I %I M " 100 ءUإ 3; `I آ ة وى ى اHI OK wYf .TERMINATE 3U9 م وN ا3; 9: اUN9 م وN M " 100 ء ورU آ ة ا3UI وg ذ%9 _ آSا2:ة ا.; .gI N6 ودون9:ة ا.; g. وآSا2:ة ا.; 6T 2 ل# 399 ا@ ار أوeI ج. 9 ي. اADVANCE S J ,; V g وذJ ر ا [ ل ا27 ف2 أو,UI أو ز ! إ" ل, ! ن ز2/I J ," `ةM " مNء ! اG- 3; ث2/ ا U م وN ا3; ( ءGH ءG- ! ل:@ ز ! اM[ I , ور ;ة زw:; م أوN ا3; نG 3 اSاآ The ADVANCE Block: ADVANCE A,B : ا" لP6 ( أوName) %ن إ2/9 ! ان/ 9 و,9ورV 3 وه، ! G اw2 3; دة9Gا A Parenthesized ) اس2J" ! أI ( أوString) وف6 ( اوNumber) %Jر %" ,9 د,`' ( أوSNA) مN ,9 د,`' ( أوExpression (SNA*Parameter) إ ري2 وه، , ااY ن2/; , إام دا, 6 3; ! اوG ل اH _ B وف6 ( اوNumber) %J( أو رName) %( او إNull) T ن2/9 ! ان/ 9و ,9 د,`' ( أوParenthesized Expression) اس2J" ! أI ( أوString) (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN Example 2: GENERATE 1 ADVANCE TERMINATE 5 1 ا ] ا3; ا. هM 400 %X و , -I %Iا 2ذج .; Tة ا2:ا Sو -اء ا آ ة ]9 START 100 RV2 401 .ADVANCE S :! ا9e 2زاT 5 %U مN وM " 105 2I %I & أ6T .gI N6 ا "! ودونM/Oأدرس ا 402 3 ل# ! g وذADVANCE S : ! " إام اUN P ر ا [ ل ا27 ف2 ADVANCE S : ,[ ا,U اMY أو أg أو ا% أ3"I وSEIZE ! : ا9C S : ,[ ا,Uك أو أ;غ أو ^ در اI أ3"9 ي. واRELEASE وS :وا :3 اS اآ%U وADVANCE The SEIZE Block: SEIZE A :M " اP6 ( أوName) %ن إ2/9 ! ان/ 9وري وV 2 وهFacility ,U ا% او إ%Jر A Parenthesized ) اس2J" ! أI ( أوPosInteger) S-2 a ' %Jر %" ,9 د,`' ( أوSNA) مN ,9 د,`' ( أوExpression (SNA*Parameter) The RELEASE Block: RELEASE A :M " اP6 ( أوName) %ن إ2/9 ! ان/ 9وري وV 2 وهFacility ,U ا% او إ%Jر Parenthesized ) اس2J" ! أI ( أوPosInteger) S-2 a ' %Jر %" ,9 د,`' ( أوSNA) مN ,9 د,`' ( أوExpression (SNA*Parameter) 403 A ! إام/ 9T وUf" R ,-اوG 3IeI RELEASE وSEIZE أن6T :#; هr# آADVANCE أي,U اM[ 9 ي. اS : اSEIZE I انSH9 & آ اhه دون ا6أ ADVANCE أي,U اM[ 9 ي. اS : اRI أنSH9 RELEASE ان Example 3: GENERATE 1 SEIZE ADVANCE RELEASE TERMINATE Server 5 Server 1 ,; V@ اSا2: اM Sا2:ة ا.; UN ا ] و%- 404 ]9 وSTART 100 آ ة آ 405 ي اH 6 GENERATE S : ا,7ا2 !92 ل ا " ! ا2 دR SEIZE S : أن ا6T S : ا9 %6اGI S & 9 M " ! أيADVANCE S : إ;اغ ا%9 ة.; 3; GENERATE S J ! إ ا ر60ر ا2 7 ا, 6T) GENERATE S : ان ا6T f9 ر( اN@ ا3; M " 400 & -29 GENERATE S : آ أن اSا2:ا .,Uم م ا2:9 6 واM " & -29 SEIZE رنJ و, ا, : ! اY' أ%: ADVANCE S : ا3; A M " ا, J ! ^ :4 .]? ا 406 4 ل# ? ت 6 إR H ,2 ا3 ; ه، ,U رN إw ر أو2 C ن2/I ا [ ل ا3; 6 MH أ9 ي. و اQUEUE ! ه-اوG ! J -29 ضYا ا.U ر؟2 7ا ا.! ه MHI 3U9 ي. و اDEPART S : ر واN@ر ا2 C إM " ل2? ت د 6@ا 3 اS اآU ر وN@ر ا2 C ! M " ? ت وج 6@ا The QUEUE Block: QUEUE A,B : ا" لP6 %J( أو رName) %ن إ2/9 ! ان/ 9وري وV 2 وه، ر2 7 ا% أو إ%Jر A ( أوParenthesized Expression) اس2J" ! أI ( أوPosInteger) S-2 a ' (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN ,9 د,`' إ ري2 وه1 ,V & ا@;اJر و2 7ل ا2C U 9G9 3ات ا62د ا B (PosInteger) S-2 a ' %J( أو رName) %( او إNull) T ن2/9 ! ان/ 9و (SNA) مN ,9 د,`' ( أوParenthesized Expression ) اس2J" ! أI أو (SNA*Parameter) %" ,9 د,`' أو The DEPART Block: DEPART A,B : ا" لP6 %J( أو رName) %ن إ2/9 ! ان/ 9وري وV 2 وه، ر2 7 ا% أو إ%Jر (Parenthesized Expression) اس2J" ! أI ( أوPosInteger) S-2 a ' (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN ,9 د,`' أو 407 A إ ري 2 وه1 ,V & ا@;اJر و2 7ل ا2C U :9 3ات ا62د ا B S-2 a ' %J( أو رName) %( او إNull) T ن2/9 ! ان/ 9و ,`' ( أوParenthesized Expression ) اس2J" ! أI ( أوPosInteger) (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN ,9د ! إام/ 9T وUf" R ,-اوG 3IeI DEPART وQUEUE أن6T :#; هr# SEIZE أي,U إم اM[ 9 ي. اS : اQUEUE I انSH9 &ا آhه دون ا6أ _J29 3 ا,7: د ا9 DEPART S : اRV2 ,:: ا3; ،&"I أنSH9 DEPART آ ان ! ب27 اU"J2 "9 وQUEUE S :ل ا2 د,N ! رN@ ز ! اMHI U; . مNذج أو ا2 ا ر2 7 ت ! ا2" R - ! / 9 ] ا927I 3 ا ة.; آU M و,Uة ا.; I ة9- ة.; م: ف2 !/ي ا ] وH و%- I Sا2:ا UN; 408 6Tا& UN9Tأي ;.; 3ة ا MJ ,Uإ-اء ا ;] ;.ة ا2:ا:S ;.ة اUت: ;.ة ا:9: 409 آ ة ;" ،اhن ر START 100 6Tأن ا2 7ر M/OIا QUEUE S :وا WUا آ ة وا2 7ر 2 9ي 400 " 6T Mان ;" ,ا ,Uه 0.998 3وه- , 3ا و /"Iي إ YOل ا ,Uآ أن ا2 7ر و' &2C Mا J0إ .M " 402أ Nإ ا 9:و ; 3I.ا2:اS واUت و ،gI N6 MHأ-ي HIرب ا 2ذج وذS J %" Y g ADVANCEو 6Tذا 9ث. 410 #ل 5 27ر ا [ ل ا د ل 2Oا? ,ا Nم وذ M"H gأز , ! ا RI 2ا2زR9 ) ( ا وي ! 3و 7أو U 3,7وI 3; U G 9آ GPSS Sآ 5 P6 5 ± 2 3 w2ز ! ! ا 2و H _ 2ل ز ! ! ا 2و S J S/9ا 2آ 3 5,2 أ M"H f9ز ! ا2O eا? R9 3ا2ز R9ا GENERATE وي 4 ± 1 4,1 و a 9اS : ADVANCE Hي ه.ا ا" M9ا ] ا %-ا ] و2 UNا; .ا2:ا SواUت آ :م ;.ة 9-ة ه.; 3ة ا27ا و U Mآ 6ا2ا; .ا ,: وHي ا آ ة ;] ;.ة ا2:ا:S 411 ;.ة اUت: ;.ة ا27ا : ;.ة ا:9: 9 :4ك `I S 7ا ?]. 412 6 ل# 0 g ذ%9 م وN '` ت ا60 اري/I R9ز2I ول- ن2/ P ر ا [ ل ا27 The TABLE Command: NAME TABLE A,B,C,D %ن إ2/9 أنSH9 و5د2-وري وVول وH % او إ, NAME P6 :M ا2"ا وريV 2 وهUو- اد9 3 ا ت ا%: G أو ر% إ2ول وهH ا,H6 A ! "I ( أوString) وف6 ( اوNumber) %J( أو رName) %ن إ2/9 ! ان/ 9و (SNA) مN ,9 د,`' ( أوParenthesized Expression) اس2Jأ %Jن ر2/9 انSH9وري وV 2و وهT ا,b` 0ا ا B %Jن ر2/9 انSH9وري وV 2 ت وهb` ا%H6 C S-2 a ' %Jن ر2/9 انSH9وري وV 2ت وهb`د ا D Uو- و, ا ت ازR H "; م2:9 ي. اTABULATE S : اTABLE 0 اR 3Ie9 S : ا. U" H ,J & ول وH! ا92/I وM/ ,` آw:; 37"9 TABLE 0 اP6 S & اآTABULATE The TABULATE Block: TABULATE A,B : ا" لP6 a ' %J( أو رName) %ن إ2/9 ! ان/ 9وري وV 2 & وهJول أو رH ا%إ ,`' ( أوParenthesized Expression ) اس2J" ! أI ( أوPosInteger) S-2 413 A (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN ,9د ( أوNumber) %J( أو رName) %( او إNull) T ن2/9 ! ان/ 9زن و2 اM B ( أوSNA) مN ,9 د,`' ( أوParenthesized Expression )اس2J" ! أI (SNA*Parameter) %" ,9 د,`' 2 وهTransit Time ل:@ أو ز ! اM1 مN ا3; ث2/ ! اG اري/ اR9ز2ن اh ا-2 M " M/ , J U -2I مN ,9 د,`' U M ول وHة ا.; I ة9- ة.; م: ف2 w:; ] ا ا.اء ه-@ ا " دR .;ا2 ا,:آ ! إ ره/ اول اH ء اe , ? J ره3; g7"I ة.; ا5.ى ان ه 414 6Tا& - -29ول وا w:; 6ه TTime 2وه 2ا.ي %9إ ر UN; "C 5ا ;.ة 6Tا.; Uة ر% Hي ا آ ة ]; START 500 R ;.ة ا2:ا:S 415 ;.ة اUت: ;.ة ا27ا : ;.ة اHاول: 6Tا& ] رج /Iاري ! Gا ور Nم. ا9: 416 FACILITY DELAY SERVER 0 ENTRIES 500 UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 0.798 3.991 1 0 0 QUEUE RETRY LINE 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME TABLE CUM.% TTIME MEAN STD.DEV. 4.231 0.772 1 0 500 366 0.048 RANGE 0.239 0 0 AVE.(-0) 0.892 RETRY FREQUENCY 0 3.000 - 4.000 202 4.000 - 5.000 243 5.000 - 6.000 45 6.000 - 7.000 9 7.000 - 8.000 1 40.40 89.00 98.00 99.80 100.00 .]? ` اI S 7 ك9 :!9 I 417 7 ل# &ر و2 7 ا, ز0 اري/ اR9ز2ول اH9 ي. واQTABLE 0ا ا [ ل ا. ه3; م: ف2 Sاآ The QTABLE Command: NAME QTABLE A,B,C,D %ن إ2/9 أنSH9 و5د2-وري وVول وH % او إ, NAME P6 :M ا2"ا a ' %J( أو رName) %ن إ2/9 ! ان/ 9وري وV 2ر وه2 7 ا%إ A (PosInteger) %Jن ر2/9 انSH9وري وV 2و وهT ا,b` 0ا ا B %Jن ر2/9 انSH9وري وV 2 ت وهb` ا%H6 C S-2 a ' %Jن ر2/9 انSH9وري وV 2ت وهb`د ا D [ ا3; 0ا ا.ب هH ف2 TTime QTime TABLE QTABLE GENERATE QUEUE SEIZE DEPART ADVANCE RELEASE TABULATE TERMINATE M1,1,1,10 Line,1,1,10 5,2 Line Server Line 4,1 Server TTime 1 3 ر آ2 7ول ا- ة.; Nا 418 .; ! %Xة ا 2ار 6Tان ه 5.ا ;.ة 7"Iإ , /إ ر أي -ول و UNIا ;.ة أد Mه.ا ا ] وأ 5-ـ START 500 419 ر Qtime ر2 7ول ا- UN9 ا [ ل ا و3; آ3ى هT ت ا- ا اR - 9:وا FACILITY DELAY SERVER 0 ENTRIES 500 UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 0.798 3.991 1 0 0 QUEUE RETRY LINE 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME TABLE CUM.% TTIME MEAN STD.DEV. 4.231 0.772 1 0 500 366 0.048 RANGE 0.239 0 0 AVE.(-0) 0.892 RETRY FREQUENCY 0 3.000 - 4.000 202 4.000 - 5.000 243 5.000 - 6.000 45 6.000 - 7.000 9 7.000 - 8.000 1 _ - 1.000 454 1.000 - 2.000 35 40.40 89.00 98.00 99.80 100.00 QTIME 0.239 0.524 0 90.80 97.80 420 2.000 - 3.000 10 3.000 - 4.000 1 99.80 100.00 .]? ` اI S 7 ك9 :!9 I 421 8 ل# ول- 3; P ا,:9C "ف9 ي. واFUNCTION 0ا ا [ ل ا. ه3; ف "ض2 S اآUول و- M/ 7" 3 R9ز2I ! ,9 " مIو The FUNCTION Command: NAME FUNCTION A,B ا" لP6 S-2 a ' %J( أو رName) %ن إ2/9 ! ان/ 9 و,9ورV 3 وه, اا,H6 A Parenthesized Expression ) اس2J" ! أI( أوString) ( أوPosInteger) (SNA*Parameter) %" ,9 د,`' ( أوSNA) مN ,9 د,`' ( أو 2 وه, اا3; ر "د أزواج ا ت2` اR9 (6ف وا6) ,ع اا2 B وريV :اع اوال2أ ع2 ! ,"ف دا9( وContinuous) C R7: ع2 ! ,"ف دا9( وDiscrete) D ,`' و,"ف دا9 (Discrete Attribute) E , ? J ع2 ! ,( داList) L '` ت, ? J ع2 ! ,( داList Attribue) M .[ ل U ق7ع ا2 Mح آO ف2و Single Channel Queue ) اا9 ر اC U M `9 3?ا2O M/O R; ا,7: ?! إG اM 9 .6 واS ` U ل2'! و & Y' , : M , ز0 ا5. ? وهJ د8 و1 ! Interarrival times ل2'! و , أز :3 ول اH ا3; ل آ6@ا :ل2'2! ا Time between 422 , أزR9ز2I ول- Arrivals (Minutes) Cumulative Probability Probability 1 0.125 0.125 2 0.125 0.250 3 0.125 0.375 4 0.125 0.500 5 0.125 0.625 6 0.125 0.750 7 0.125 0.875 8 0.125 1.000 :3 ول اH ا3; ت آT 6 ? J د6 و1 ! 423 اوحI Sevice times , ا, أز :, ا, أزR9ز2I ولService Time Cumulative (Minutes) Probability Probability 1 0.10 0.10 2 0.20 0.30 3 0.30 0.60 4 0.25 0.85 5 0.10 0.95 6 0.05 1.00 . 2 ز500 , ل و2'آ ة و , داM/ ل2'2! ا IAT مN اM I ب27 ا , أزR9ز2I ول- Rf ف2 FUNCTION RN1,D8 0.125,1/0.25,2/0.375,3/0.5,4/0.625,5/0.75,6/0.875,7/1.0,8 :6T IAT 2 ه, اا%( إ1 ا2 16 ي2 9 GPSS ان6T) GPSS 3; ول0 ا,?ا2O" م اJر0 ا2 2 ه, اا,H6 (2 (RN16 6 وRN1 ! ,?ا2O" م اJرq أزواج ! ا ت8 ي2 9 وR7: ,ع اا2 (3 M/O اSII و7 اول ا3; ك ;اغI و ونM ` 7 3; زواج0 اMI (4 Y ا, J 3 ااآR9ز2 ا, دا, J F(x) P6 F(x1),x1/F(x2),x2/…/F(xn),xn X=x 3?ا2O"ا , داM/ , ا, أزR9ز2I ول- Rf M[ STime FUNCTION RN1,D6 0.1,1/0.3,2/0.6,3/0.85,4/0.95,5/1.0,6 424 ر ا ] ا27و TTime TABLE M1,1,1,10 QTime QTABLE Line,1,1,10 IAT FUNCTION RN1,D8 0.125,1/0.25,2/0.375,3/0.5,4/0.625,5/0.75,6/0.875,7/1.0,8 STime FUNCTION RN1,D6 0.1,1/0.3,2/0.6,3/0.85,4/0.95,5/1.0,6 GENERATE QUEUE SEIZE DEPART ADVANCE RELEASE TABULATE TERMINATE FN$IAT Line Server Line FN$STime Server TTime 1 ل2'! و GENERATE , أز2I 3; ! آ_ ا اا6T FN$IAT S J 3; , ا, ز0 O ;" ` اg. وآFN$ , ااG 5 : وIAT , اا% إ.ا ة500 &9H ا ] وM ADVANCE :]? وا Sا2:ة ا.; تUة ا.; 425 ا27ة ا.; ر2 7ول ا- ة.; 9:ا FACILITY DELAY SERVER 0 ENTRIES 501 UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 0.749 3.232 1 501 0 QUEUE RETRY LINE 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME TABLE CUM.% TTIME MEAN STD.DEV. 5.438 3.513 6 1 501 229 0.509 RANGE 2.196 0 0 AVE.(-0) 4.044 RETRY FREQUENCY 0 _ - 1.000 30 1.000 - 2.000 48 2.000 - 3.000 76 3.000 - 4.000 85 4.000 - 5.000 68 6.00 15.60 30.80 47.80 61.40 426 52 6.000 - 5.000 43 7.000 - 6.000 30 8.000 - 7.000 13 9.000 - 8.000 - 9.000 284 1.000 - _ 51 2.000 - 1.000 46 3.000 - 2.000 37 4.000 - 3.000 24 5.000 - 4.000 17 6.000 - 5.000 9 7.000 - 6.000 6 8.000 - 7.000 8 9.000 - 8.000 - 9.000 71.80 80.40 86.40 89.00 _ 55 3.227 0 2.200 100.00 QTIME 56.80 67.00 76.20 83.60 88.40 91.80 93.60 94.80 96.40 18 _ 100.00 :!9 I 9ك S 7إاج 9 :ا0داء ! ا -ت 427 9 ل# ^ M/O ( S J إS J ! ل:@ واS"O ا,`ف "ض آ2 ا ا [ ل. ه3; S J ل إ:@ اwO اM " S9 ي. واTRANSFER S :ف "ض ا2 ،M S و& اآ," وطW I 3 اS : اR9T ( The TRANSFER Block: TRANSFER A,B,C,D ا" لP6 اوBOTH ن2/9 انSH9 إ ري و2 وه:6T &` ف2 ل و:@ اS J ر2C A a ' او دName % أو إfraction او آSBR اوP اوFN اوPICK اوALL ,9 د,`' اوParenthesizedExpression اس2J" ! أI اوPosInteger S-2 SNA*Parameter %" ,9 د,`' اوSNA مN ن2/9 انSH9 إ ري و2 وهP ر27 أو ا, دا3; دة9Gار ا: ن أو/ أوS J %Jر B اس2J" ! أI اوPosInteger S-2 a ' او دName % او إNull إ %" ,9 د,`' اوSNA مN ,9 د,`' اوParenthesizedExpression SNA*Parameter ن2/9 انSH9 إ ري و2 وهP ر27 أو ا, دا3; دة9Gار ا: ن أو/ أوS J %Jر C اس2J" ! أI اوPosInteger S-2 a ' او دName % او إNull إ %" ,9 د,`' اوSNA مN ,9 د,`' اوParenthesizedExpression SNA*Parameter ن2/9 انSH9 إ ري و2 وه1 ,V & ا@;اJ وALL ر27 ن/ أوS J %Jر D اس2J" ! أI اوPosInteger S-2 a ' او دName % او إNull إ %" ,9 د,`' اوSNA مN ,9 د,`' اوParenthesizedExpression SNA*Parameter TRANSFER S :ار ا2Cأ g وذB M " د S J وط إO ل ^ ا:@! ! ا/ 9و M[ A M "^` ل ا 428 3COر ^ ا27ا TRANSFER ,NewPlace ر2C 3; M "9 S :ا ا. ;ن ه3 ^ أA M " ن ا2/9 ي/ر ا27ا [ ; /ا TRANSFER 0.75,,NewPlace ! 75% 3; Sه.9 S :ا ا. هM9 ي. اwO اM " ;ن ا NewPlace G %" اS :ت إ اT ا wO اM " ;ن اBOTH , / ا2 هA M " ن ا2/9 BOTH ر2C % ;نB M " ا3; 5G ر-29 ي. اS :ل إ ا2 ول ا9 M " ا3; 5G ر-29 ي. اS :ل إ ا2 ول ا9 g ذR79 ! !/ 9 6 ! :! ا9. هR ,و " ا9 g ذR79 % ;نC M9 U2! د/ 9 ! :ن آ ! ا2 آ, 6 3;ه و6ل ا2د M[ B M " ا3; 5G ي ر. اS :ا TRANSFER BOTH,FirstPlace,SecondPlace FirstPlace G اS :ل إ ا2 اwO اM " اM"H9 ا.وه ;نSecondPlace G اS :ل إ ا2 ول ا9 !/ 9 % ;ن &/ I , 6 3;ا و./ول وه0 اS : ل2 ,و " ا9 !/ 9 % FirstPlace G اS : ,f;0ن ا2/I %U ي0 ل2 ل: إ, / @ Sا2: إ ر د آ ! ا%9 ر27ا ا. ه3; ALL ر2C (هg. وآG Sا2: ا5. أول هG 9 وU إwO اM " ا ن2/Iل إ& و2 Sا2: ا5. ه6 أa 9 6 U ل:@ ا%9و [ ; Sا2: 3" اSI اS6 ,f;0ا TRANSFER ALL,FirstPlace,LastPlace,2 `9 &2ر دG"I ;نFirstPlace G اS : إ ر ا%9 6 ا./( وهD M " ن ا/ 3; 2 6T) ! : &9 ي. اS :ا ل2 ا, / و " ; إLastPlace G G اS : اM ا./ول وه0 اS : ! ا,و " د ا` وا9 T ا& أم ل: إ, / @ Sا2: إ ر د آ ! ا%9 ر27ا ا. ه3; (هg. وآG Sا2: ا5. أول هG 9 وU اwO اM " ا Sا2: ا5. ه6 أa 9 6 3?ا2O M/O U ا@ ر%9و 429 PICK ر2C [ ; ?ا2O 5 إ ر%I S J ول0 ,f;0ن ا2/Iل إ& و2 TRANSFER PICK,FirstPlace,LastPlace S : واFirstPlace G اS :ا? ! ا2O S J إ ر%9 g. a 9 S J ل اول2 د%9 وLastPlace G ا دI , دا%:I ! ر9 S J ل إ:@ ا%9 ر27ا ا. ه3; FN ,ر اا2C [ ; C M " د9 دة إ ري9ار ز: ,; V وإB M " TRANSFER FN,Function1,5 & إM:9 ي. اS : ا9 5 U ف إf9 وFunction1 ,ر اا:I R H &"J2 د9 S J إwO اM " اM:9 ر27ا ا. ه3; P %" ر ا2C إM:9 C د9 % وإذاC M " ا دة, : وا%" , J %" ا, : ا دRJ2 ا , ا,6 ا3; ر27ا ا.U ق7T ف2 3`ر ا ] ا2C , ا,6 ا3; ر27ا ا.U ق7T ف2 ! اGر ا2C 3 ا [ ل ا3; TRANSFER S :ف م ا2 430 . ا#)$/ B أ) و .ر2 C _' د اآ[ ! ر او2-آ ة و ا,:9C ض2ا ا [ ل ه.ض ! هYا راتS7 اM'2I و.0 ! ت د7 ا,I م2:9 رات,"9 , %"7 :, ل ا2'2! ا , ازR9ز2I S6 %"7 ا رات إ اM I .%"7 ,'ا2ا :ل2'2! ا , أزR9ز2I ول- Time between Arrivals (Minutes) Cumulative Probability Probability 1 0.25 0.25 2 0.40 0.65 3 0.20 0.85 4 0.15 1.00 S^ ا,f`9 g. )و/ ! رة وةJ [ اآ6 ا،/ 3 [ وا6 ا%ه6 ا9 ! ا د 3 ه/ و6 ! اM/ , ا, ازR9ز2I ،!? G ا, 3; ?!( آ ا& اعGا :3ا2ا : 60 , ا, أزR9ز2I ولService Time (Minutes) Cumulative Probability Probability 2 0.30 0.30 3 0.28 0.58 4 0.25 0.83 5 0.17 1.00 :/ , ا, أزR9ز2I ولService Time (Minutes) Cumulative Probability Probability 3 0.35 0.35 4 0.25 0.60 431 5 0.20 0.80 6 0.20 1.00 .&? أدا,;" مNآ ة ا AHMD & و60 , وز ! اIAT U ل و2'2! ا ب27 ا , ن دوال أز2/ ف2 BKR & و/و IAT FUNCTION RN1,D4 0.25,1/0.65,2/0.85,3/1.0,4 AHMD FUNCTION RN1,D4 0.3,2/0.58,3/0.83,4/1.0,5 BKR FUNCTION RN1,D4 0.35,3/0.6,4/0.8,5/1.0,6 ] ن ا2/9و IAT FUNCTION 0.25,1/0.65,2/0.85,3/1.0,4 AHMD FUNCTION 0.3,2/0.58,3/0.83,4/1.0,5 BKR FUNCTION 0.35,3/0.6,4/0.8,5/1.0,6 TTime TABLE M1,1,1,10 QTime QTABLE Line,1,1,10 RN1,D4 RN1,D4 RN1,D4 GENERATE QUEUE Line TRANSFER FN$IAT SEIZE DEPART ADVANCE RELEASE TRANSFER AHMAD Line FN$AHMD AHMAD ,FIN BOTH,,BAKUR BAKUR SEIZE DEPART BAKR Line 432 FIN ADVANCE RELEASE TABULATE TERMINATE FN$BKR BAKR TTime 1 , [ وا60 ,f;0 ا37" 3/ BOTH ر2C 3; و ا ه0 اTRANSFER 6T " دI ! ان6 أ,7ا2 & %I ي.ن ا2 G اR 3/ 3COر ^ ا27 ا3; ا ه ي2Yآ& اI , ' ! آe & وا-I " وGPSS 3; ] ا ا. هM أد./ ,7ا2 & Sا2:ة ا.; U أ3:7 وا زرwYf g وذ9و9 آ ة ى اH TRANSFER Sا2: اM هO / هةO ! / ا. ه.Sا2:ة ا.; ! ,? ا, ? : ا3; د2-2 واStep & I ب2/ وا 3 ا6T .ة27 ة27 آ ة ا -1 433 M " 2I Step 7YVاGENERATE S : -2 ا &HIا " Mإ ا2 7ر ا Oك د ! -3 أن آ ! Mأ 6و 3 /و أن ا; 60 ,f;0ن ا " 9 Mك إ ا2 7ر ا.ي A9دي zك 6eو %9ا " Mا 6 -4 434 وذ Y gدرة ا2 7ر ) 6Tان ا2 a SEIZE S :ل ا " Mو.Uا ;ن ة 3; &X2/ ا2 7ر ( 0 -5 9أ أ , 6ا " M -6 435 GENERATE S : ا,7ا2 مN إ ا9- M " M9 -7 كO ر ا2 7 اM9 -8 436 ان ا2YO 6ل ; , 3ا2 Gن ا0ول ;ن M:9 TRANSFER S Jا2 Gن ا[ 3إ SEIZE S Jا " BAKUR G %وذ9 3/ gأ .& / وه./ا Iا آ ة ) U9 U 6أآ Mا آ ة او.( /I 2I ;.ة ا2:ا:S ;.ة اUت: ;.ة ا27ا : 437 :ر2 7ول ا- ة.; : مN ا3; ث2/ ول ز ! ا- ة.; :9:ا FACILITY DELAY AHMAD 0 BAKR 0 ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 299 0.860 3.344 1 0 0 0 0 202 0.727 4.183 1 501 0 0 0 438 QUEUE RETRY LINE 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME TABLE CUM.% TTIME MEAN STD.DEV. 4.508 1.951 4 0 501 343 0.352 RANGE 0.816 AVE.(-0) 2.589 RETRY FREQUENCY 0 1.000 - 2.000 58 2.000 - 3.000 112 3.000 - 4.000 114 4.000 - 5.000 101 5.000 - 6.000 53 6.000 - 7.000 20 7.000 - 8.000 17 8.000 - 9.000 14 9.000 - _ - 1.000 403 1.000 - 2.000 33 2.000 - 3.000 25 3.000 - 4.000 20 4.000 - 5.000 8 5.000 - 6.000 3 6.000 - 7.000 5 7.000 - 8.000 2 8.000 - 9.000 1 9.000 - 11.60 34.00 56.80 77.00 87.60 91.60 95.00 97.80 100.00 QTIME 0.816 _ 11 1.591 0 80.44 87.03 92.02 96.01 97.60 98.20 99.20 99.60 99.80 _ 1 100.00 :, داء ا0 ا9 : H 9:! ا 59.8% ن أي2 ز500 ! ن2 ز299 = 6 ا%U !9.د ا 40.4% ن أي2 ز202 = / %U !9.د ا 86% = 6 ا, "; 72.7% = / , "; 439 w2ز ! ا 3.344 = 6T ,د,:J w2ز ! ا 4.183 = / ,د,:J أ2C %Nل 2 7ر = 4ز ?! د ا !? GاN9 % !9.و = 343ز 2ن إ 6ل ان ا2 Gن 31.4% = (500/343) – 1 = N9 2C w2ل ا2 7ر = 0.352ز 2ن w2ز ! ا@ Nر ; 3ا2 7ر = 0.816د,:J w2ز ! ا@ Nر ; 3ا2 7ر ! إ 2.589 = "; Nد,:J w2ز ! ا 2/ث ; 3ا Nم = 4.508د,:J ! -ول ز ! ا@ Nر ; 3ا2 7ر Hان ه ك 403ز 2ن اNو ; 3ا2 7ر ! 0و 1د? J و 33ز 2ن ! 1و 2د? J و 25ز 2ن ! 2و 3د? J و 20ز 2ن ! 3و 4د? J وه./ا و ` ا- `I !/ 9 ,:97ول ز ! ا 2/ث ; 3ا Nم. 440 10 ل# وRETURN وPREEMPT Sا2: واRMULT وEQU !9 0م ا: ف2 ا ا [ ل. ه3; PRIORITY The EQU Command: NAME EQU X , : ا.eI 3/ ة, J NAME P6 %ه إ إ9( و,9-) ر رة:9 0ا ا.ه وريV 2ي وه- "I X %ن إ2/9 أنS 9وري وV 2 وه,9Hرة " رة ا: ا ي- "I ن2/9 أنSH9و :[ ل Price EQU 10 ا ] ;ن3; Price %@ ا-29 !9ا أ./ وه10 , :& ا7"9 وPrice %@"ف ا9 ا.وه 10 , :& ا7" GPSS The RMULT Command: RMULT A,B,C,D,E,F,G GPSS 3; ," ا,?ا2O" م اJر0ات ا2 اة2 , J 37"9 0ا ا.ه ا" ل أوT ن2/9 ! ان/ 9 إ ري و2 وهRN1 ول0 ا,?ا2O" م اJر0 ا2 اة2 A S-2 a ' د أوT ن2/9 ! ان/ 9 إ ري و2 وهRN2 3 [ ا,?ا2O" م اJر0 ا2 اة2 B S-2 a ' د أوT ن2/9 ! ان/ 9 إ ري و2 وهRN3 P [ ا,?ا2O" م اJر0 ا2 اة2 S-2 a ' د 441 C D 2اة 2ا0ر Jم ا"2Oا? ,اا RN4 Rوه 2إ ري و !/ 9ان 2/9ن Tأو د ' S-2 a E 2اة 2ا0ر Jم ا"2Oا? ,ا RN5وه 2إ ري و !/ 9ان 2/9ن Tأو د ' S-2 a F 2اة 2ا0ر Jم ا"2Oا? ,ا دس RN6وه 2إ ري و !/ 9ان 2/9ن Tأو د ' S-2 a G 2اة 2ا0ر Jم ا"2Oا? ,ا RN7 Rوه 2إ ري و !/ 9ان 2/9ن Tأو د ' S-2 a The PREEMPT Block: A,B,C,D,E PREEMPT H9ا " Mا.ي ( M " JA U? ,UI MYO9أ & أ;,f ا" ل A ر %Jأو إ %ا ,UوهV 2وري و SH9ان 2/9ن إ %أو د ' S-2 a B 2Cر ا ,f;0و PR U G 9أو 2Cر ا ,"C :إذا ا^` Wا ,f;0وه 2إ ري و SH9ان 2/9ن PRأو Null T C إ %او ر %Jا S :ا.ي M:9إ& ا " Mا Gاح ! ا ,Uوه 2إ ري وSH9 أن 2/9ن Tاو إ %او د ' S-2 aاو ! "Iأ2Jاس او '` ,د,9 Nم أو '` ,د%" ,9 D ر %Jا " %وه 2ا " %ا.ي &; RV29ا ! Gا M " R? fا Gاح E 2Cر ا@ " د REو "9ا " ! Mه 5.ا q ,Uوذ gر ,9 ,U U SH9ان 7"9ر Gه ; 3ا " C %وه 2/9ن ا "V C %وري The RETURN Block: A 442 RETURN و "9ا " Mا Gاح 2ا2C 3; PREEMPT ,7ر PRإ ا ,Uا 3آ ن UYO9ة اى " إ Uء ,ا " Mا.ي & ا; ,fأ ا" M A ر %Jأو إ %ا ,UوهV 2وري و SH9أن 2/9ن إ %او د ' S-2 aاو ! "Iأ2Jاس او '` ,د N ,9م أو '` ,د%" ,9 The PRIORITY Block: PRIORITY A,B 9د او 37"9أ; M " ,fا.wO ا" ل: A , Jا ,f;0ا9Hة وهV 3ور ,9و SH9ان 2/9ن إ إ %أو د ' aأو أو ! "Iأ2Jاس أو '` ,د N ,9م أو '` ,د%" ,9 B ر ا.اآة ا ,JAو Rf9ا " Mا _ wOا " ! ا2 ` %U !9.ى ا ,f;0وه 2إ ري و SH9ان 2/9ن BUاو T [ ل: 10 PRIORITY ه.ا ا2 37"9 S :ى أ; M9 M " M/ 10 ,fإ&. آة ور ن "! م ور إح اة ن إح وا ا ور ) Overhaulة ار ا('&ة و اة ا#$% و0م /%ت .1 *+ ,&-ا ا ور )ة ار 4أ آ - 40±8و"!&7ق 8 - 10±1آ( .ا 8ت ا"&+ &7 = ,ز او 1; ,ات &:ي +ر و آ 90±10 د; 0و"!&7ق 15±5د; .0أة ا #$%ا!* @!ج إح و د آ - 5±1و"!&7ق 120±30د;0 443 ا ا ور# A!* ا+ B+) ا#$% أة ا.$!8 .)ة ار . م50 ( ار ( ةEآ .#$% اG *+ &GH! واA! ا,+ د -1 -2 :] ا Rseed EQU 39941 RMULT Rseed Overhaul QTABLE Overhaul,10,10,20 Spot QTABLE Spot,10,10,20 Service QTABLE Service,10,10,20 Alljobs QTABLE Alljobs,10,10,20 GENERATE 2400,480,,,1 QUEUE Overhaul QUEUE Alljobs SEIZE Maintenance DEPART Overhaul DEPART Alljobs ADVANCE 600,60 RELEASE Maintenance TERMINATE GENERATE 90,10,,,3 QUEUE Spot QUEUE Alljobs PREEMPT Maintenance,PR DEPART Spot DEPART Alljobs ADVANCE 15,5 RETURN Maintenance TERMINATE 444 GENERATE 300,60,,,2 QUEUE Service QUEUE Alljobs PREEMPT Maintenance,PR DEPART Service DEPART Alljobs ADVANCE 120,30 RETURN Maintenance TERMINATE GENERATE 480 TERMINATE 1 :]? ا Sا2:ة ا.; تUة ا.; 445 ;.ة ا27ا ;.ة -ول 2 Cر R -ا_? 2 ;.ة 2 Cر 2 Cر ا ,اور,9 446 !? Gة اGU- أa I ر2 C ة.; ,"9ر ا ت ا2 C ة.; 9:ا FACILITY DELAY MAINTENANCE 0 QUEUE RETRY OVERHAUL 0 ENTRIES 353 UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 0.796 54.138 1 401 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME 1 0 9 0 447 0.032 86.413 0 0 AVE.(-0) 86.413 SPOT 0 SERVICE 0 ALLJOBS 0 1 0 265 265 0.000 0.000 0.000 2 0 79 67 0.033 10.019 65.960 2 0 353 332 0.065 4.445 74.726 TABLE CUM.% OVERHAUL MEAN 86.413 STD.DEV. RANGE RETRY FREQUENCY 60.070 0 _ - 10.000 1 10.000 - 20.000 2 20.000 - 30.000 0 30.000 - 40.000 0 40.000 - 50.000 0 50.000 - 60.000 0 60.000 - 70.000 0 70.000 - 80.000 0 80.000 - 90.000 0 90.000 - 100.000 0 100.000 - 110.000 2 110.000 - 120.000 2 120.000 - 130.000 0 130.000 - 140.000 1 140.000 - 150.000 0 150.000 - 160.000 0 160.000 - 170.000 1 _ - 10.000 _ - 10.000 73 10.000 - 20.000 3 20.000 - 30.000 0 30.000 - 40.000 0 40.000 - 50.000 0 50.000 - 60.000 1 60.000 - 70.000 0 70.000 - 80.000 0 80.000 - 90.000 0 11.11 33.33 33.33 33.33 33.33 33.33 33.33 33.33 33.33 33.33 55.56 77.78 77.78 88.89 88.89 88.89 100.00 SPOT 100.00 SERVICE 0.000 10.019 0.000 0 59.251 265 0 92.41 96.20 96.20 96.20 96.20 97.47 97.47 97.47 97.47 448 90.000 - 100.000 0 100.000 - 110.000 0 110.000 - 120.000 0 120.000 - 130.000 0 130.000 - 140.000 0 140.000 - 150.000 0 150.000 - 160.000 1 160.000 - 170.000 0 170.000 - 180.000 0 180.000 - 190.000 0 190.000 - 97.47 97.47 97.47 97.47 97.47 97.47 98.73 98.73 98.73 98.73 100.00 ALLJOBS 4.445 _ 1 32.459 0 _ - 10.000 339 10.000 - 20.000 5 20.000 - 30.000 0 30.000 - 40.000 0 40.000 - 50.000 0 50.000 - 60.000 1 60.000 - 70.000 0 70.000 - 80.000 0 80.000 - 90.000 0 90.000 - 100.000 0 100.000 - 110.000 2 110.000 - 120.000 2 120.000 - 130.000 0 130.000 - 140.000 1 140.000 - 150.000 0 150.000 - 160.000 1 160.000 - 170.000 1 170.000 - 180.000 0 180.000 - 190.000 0 190.000 - 96.03 97.45 97.45 97.45 97.45 97.73 97.73 97.73 97.73 97.73 98.30 98.87 98.87 99.15 99.15 99.43 99.72 99.72 99.72 100.00 449 _ 1 9 :!9 Iك S 7إاج و `Iا ?]. 450 #ل :11 ا Facility ,Uه 3أي 2رد ; 3ا Nم MYOIأو Iم " Mوا 3; w:; 6أي وWJ و ;9أي " 2/9 ( Mن M[ . T2YOآ 3ا 3; ,Jدآ ن 6ق وا.6 وا Gن Storageه 2أي 2رد ; 3ا Nم S29أآ[ ! " 3; Mو WJوا 6و& ", " ,و ;9ا " ! MYOIآ : M[ .&" Mا@ Nر ; 3دآ ن .,J ) R7 :,N6ان G Nن ا& د ! اUت ا.( " M "I 3 أن Jآ` ,إ Yل وإء ا2 ,Uا ,7ا2:ا SEIZE Sو , 6 3; RELEASE ا Gن ج إ أ " &" _9و2 ! Jل واوج ! ا Gن. ا"9 STORAGE 0ف او 9د "G ,ن و& اآS The STORAGE Command: A STORAGE NAME 7@ NAME P6ء إG %ن وهV 3ور ,9و SH9ان 2/9ن إ% ا" ل A ا" ,اG ,/ن وهV 3ور ,9و SH9ان 2/9ن د ' S-2 a ا ENTER ! :و 9 LEAVEن Gاو YO !-أو إء و6ة ! و6ات ا Gن و %Uاآ ت The ENTER Block: A,B 3; S9أ .أو إ Nر د ENTER د ! و6ات ا Gن. ا" ل: A ر %Jأو إ %ا Gن وهV 2وري و SH9أن 2/9ن إ إ %إو رS-2 a ' %J أو !2J ! "Iأو '` ,د N ,9م أو '` ,د.%" ,9 451 ونG ا," ! U' : إ%9 3 ره واYب إ27 ن اG ات ا6د و B a ' أو د% أو إT ن2/I J و,9 إ ر3 وه1 ,V ا@;اU Jو .%" ,9 د,`' م اوN ,9! او '`& د2J ! "I اوS-2 The LEAVE Block: LEAVE A,B %I 3ات ا62ر د ا: نG ا," R;ن ورG ات ا6 إء د ! و3; S9 . U?إ :ا" ل S-2 a ' %J إو ر%ن إ إ2/9 أنSH9وري وV 2ن وهG ا% أو إ%Jر A .%" ,9 د,`' م أوN ,9 د,`' ! أو2J ! "I أو ونG ا," ! U' : إ%9 3 ره واYب إ27 ن اG ات ا6د و B a ' أو د% أو إT ن2/I J و,9 إ ر3 وه1 ,V ا@;اU Jو .%" ,9 د,`' م اوN ,9! او '`& د2J ! "I اوS-2 #د$ ) اا9 ر اC Single Channel Queue with two servers M `9 3?ا2O M/O R; ا,7: ?! إG اM 9 .6ر وا2 C! و U ل2'! و & Y' , : M , ز0 ا5. ? وهJ د8 و1 ! Interarrival times ل2'! و , أزU :3 ول اH ا3; ل آ6@` ا :ل2'2! ا Time between Arrivals (Minutes) Cumulative Probability Probability 1 0.125 0.125 2 0.125 0.250 3 0.125 0.375 452 , أزR9ز2I ول- 4 0.125 0.500 5 0.125 0.625 6 0.125 0.750 7 0.125 0.875 8 0.125 1.000 3; ت آT 6 ! ! ا دM/ ? J د6 و1 ! اوحI Sevice times , ا, أز :3 ول اHا :, ا, أزR9ز2I ول- Service Time (Minutes) Cumulative Probability Probability 1 0.10 0.10 2 0.20 0.30 3 0.30 0.60 4 0.25 0.85 5 0.10 0.95 6 0.05 1.00 . 2 ز500 , ل و2'آ ة و مN اM I ب27 ا :3 آ8 [ ل3; ] ر ا27 TTime TABLE M1,1,1,10 QTime QTABLE Line,1,1,10 IAT FUNCTION RN1,D8 0.125,1/0.25,2/0.375,3/0.5,4/0.625,5/0.75,6/0.875,7/1.0,8 STime FUNCTION RN1,D6 0.1,1/0.3,2/0.6,3/0.85,4/0.95,5/1.0,6 Server STORAGE 2 GENERATE QUEUE ENTER DEPART FN$IAT Line Server Line 453 ADVANCE LEAVE TABULATE TERMINATE FN$STime Server TTime 1 3 آ آU M ة ا زن و.; 3ة ه9- ة.; م: ة ا زن.; UN; ة500 &9H ا ] وM :]? ا 454 ;.ة ا2:ا:S ;.ة ا زن: ;.ة ا27ا : ;.ة -اول ا2 7ر: ;.ة -ول ز ! ا 2/ث ; 3ا Nم: 455 :9:وا QUEUE RETRY LINE 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME STORAGE DELAY SERVER CAP. REM. MIN. MAX. TABLE CUM.% TTIME MEAN STD.DEV. 3.176 1.336 2 2 0 2 500 0 487 0.007 ENTRIES AVL. 2 500 1 AVE.(-0) 0.034 1.308 AVE.C. UTIL. RETRY 0.689 RANGE 0.345 0 0 RETRY FREQUENCY 0 _ - 1.000 57 1.000 - 2.000 106 2.000 - 3.000 133 3.000 - 4.000 127 4.000 - 5.000 51 5.000 - 6.000 25 6.000 - 7.000 1 _ - 1.000 496 1.000 - 2.000 4 11.40 32.60 59.20 84.60 94.80 99.80 100.00 QTIME 0.034 0.221 0 99.20 100.00 .8 ا ?] و ?] [ ل5. رن ! هJ :!9 I 456 12 ل# .آ ة ا3; اتY "فI 3وا ا0م " ا: ف2 ا ا [ ل. ه3; The BVARIABLE Command: NAME BVARIABLE X .Boolean 3:7 Y "ف9 .%ن إ2/9 انSH9وري وV 2 وهY ا% او إG "ف رI NAME P6 ."I ن2/9 أنSH9وري وV 2ي وه- "I X [ل AC BVARIABLE (BV$A’AND’BV$C) , :" ا9اس و2J0 ! ا,:7 ا,H` ا9 0ا ا.ه BV$A1C = 1 “TRUE” IF BV$A = “TRUE” AND BV$C = “TRUE” = 0 “FALSE” OTHERWISE The FVARIABLE Command: NAME FVARIABLE X .Floating Point 3::6 ي- Y "ف9و .%ن إ2/9 انSH9وري وV 2 وهY ا% او إG "ف رI NAME P6 ."I ن2/9 أنSH9وري وV 2ي وه- "I X [ل VarX FVARIABLE 5*LOG(Q$Line) 37"9 0ا ا.ه FV$VarX = 5*LOG(Q$Line) .Line ر2 7ى ا2 The VARIABLE Command: 457 Q$Line P6 NAME VARIABLE X .ي دي- Y "ف9و .%ن إ2/9 انSH9وري وV 2 وهY ا% او إG "ف رI NAME P6 ."I ن2/9 أنSH9وري وV 2ي وه- "I X [ل VarX VARIABLE 5*LOG(Q$Line) 37"9 0ا ا.ه V$VarX = 5*LOG(Q$Line) .Line ر2 7ى ا2 458 Q$Line P6 #ل 13 ; 3ه.ا ا [ ل :م ا2:ا ASSIGN Sو SAVEVALUEو TESTا %U !9.ااآ Sا :, The ASSIGN Block: A,B,C ASSIGN و9م @ 7ء أو %" , J M9"Iا " Mا) wOأي ا " Mا.ي M9ا.(S : ا" ل: A ر %" %Jا " Mا wOوهV 2وري و SH9أن 2/9ن إ أو د ' S-2 a أو !2J ! "Iأو '` ,د N ,9م أو '` ,د %" ,9و RIـ +أو – أو .T B , JوهV 3ور ,9و SH9أن 2/9ن إ أو د أو أو !2J ! "Iأو '`, د N ,9م أو '` ,د.%" ,9 C ر %Jدا ,وه 2إ ري و SH9أن 2/9ن Tأو إ أو د ' S-2 aأو "I ! !2Jأو '` ,د N ,9م أو '` ,د.%" ,9 The SAVEVALUE Block: A,B "9ف و, J" , J ! Y9 SAVEVALUE ` ",2وه.ا ا9 S :م @-اء ت % " ,9- و Yات ا Nم. ا" ل: A إ %أو ر %Jا , :ا ` ,2وهV 2وري و RI Jـ +أو R H -او Cح %J اى , :ا ,و SH9أن 2/9ن إ أو د ' S-2 aأو !2J ! "I أو '` ,د N ,9م أو '` ,د.%" ,9 B ا , :ا 27ب U9GIأو إ U; Vأو U6CوهV 3ور ,9و SH9أن 2/9ن إ أو د أو !2J ! "Iأو '` ,د N ,9م أو '` ,د.%" ,9 459 The TEST Block: A,B,C 2:9م ه.ا ا : S :ر ^ ،! J , TEST O 2/Iن '` ت د N ,9م ،و : 79أو ا ,UHا M:9 3إ Uا " Mا 5.U ,H wOا :ر., ا" ل: O 3:7 Mأو ,Jا" 2/9 3/ B M " A Mن ا@ ر ' aوه2 Vوري و SH9أن 2/9ن 9) Eوي( أو ) Gاآ !( أو ) Lا (! MJأو ) GEاآ ! أو 9وي( أو ) LEا ! MJأو 9وي( أو 9T) NEوي(. A , Jا@ ر )ا , :ا ة( وهV 3ور ,9و SH9أن 2/9ن إ %أو د أو أو !2J ! "Iأو '` ,د N ,9م أو '` ,د.%" ,9 B , Jا@ د )ا , :ا :I 3رن , J Uا@ ر( وهV 3ور ,9و SH9أن 2/9ن إ %أو د أو أو !2J ! "Iأو '` ,د N ,9م أو '` ,د.%" ,9 C ر %Jأو إ S J %ا :وه 2إ ري و SH9أن 2/9ن إ %أو د ' S-2 aأو Tأو !2J ! "Iأو '` ,د N ,9م أو '` ,د.%" ,9 و2ف "ض إا 3; %Uا [ ل ا :3 ! /BJ#ا:9 ه N 3; ,9:I ,/O 5.م ا Gون وO "Iاء و R? ._ ' Rا ا2ا6ة ـ 150ه ,و U"9ـ 200ه ،,ا " 10ه , ` ,ا2ا6ةO9 .ي ا ? Rا _ O9ي ا _ ا ,9 U ,:ا2م Iع `, J RاC _ ! ا 2زع ;G6 3م 2/Iن ! 10 ' _ )أي &/ 9اء 10او 20او 30وه./ا 3; ,` ' ...آ Mة( .ا S7ا _ 2 "9ع ا 0ر ; 3ذ gا2م ; Uك 29م أ ر -و29م أ ر w2و29م أ ر T 6 _"Vت ا2ا 0.35 3و 0.45و 2I 0.20ز R9ا S7ا 2 S6ع أ 0ر ه 3; 2اHول ا :3 460 _ 29 M/م Demand Probability Distribution __________________________ Demand Good Fair Poor 40 0.03 0.10 0.44 50 0.05 0.18 0.22 60 0.15 0.40 0.16 70 0.20 0.20 0.12 80 0.35 0.08 0.06 90 0.15 0.04 0.00 100 0.07 0.00 0.00 ._ اR? U9O9 3_ ا "د اM[ 0 ا"د ا9 I ب27 ا :,J" ! اS 9 ي. وا3 2 اa و د ا29 100 م ةN ا3ف آ2 Revenue Cost of Lost profit from Salvage from sale Profit = − − + From Sales newspapers excess demand of scrap papers :أي آ ع.: ا+ S7 دة ا9 ! زR? f اa _ – ا – "اR ا3; ' = a ا Cا: : انH ,/O ! ح ا , _ ا اةO _ ا (اةO _ ا * د ا150 = _ " ا * )د ا50 = S7 دة ا9 ! زR? f اa ا – د ا, 27 _ ا اةO _ ا ( ان, 27 _ ا * د ا200 = R ا3; ' اآ ! د ا, 27 _ ا اة – د اO _ ا ., 27 _ ا * ) د ا10 = Cا: آ ع.: ا اة اآ ! د اO _ ا آة %X 29 _ اء د "! ! ا, 3I SH9 آ ة _ د ا3 )وه, ا،3 2 اa ا9 Iو 461 ن د ا2/I ان ن د ا2/I ,/O ا5. هM 29 100 _ ة اS7ا ه اآa ن ا2/9 3اة اO _ ا د اM 6 YI 5.اة( هO ا .!/ 9 : ر0م ا29 ع2 R9ز2 , اول اHا Cumulative Type of Newsday Probability Probability Good 0.35 0.35 Fair 0.45 0.80 Poor 0.20 1.00 3 آGPSS 3; ,[ ي.وا NDay FUNCTION RN1,D3 0.35,GOOD/0.8,FAIR/1.0,POOR : ر0م ا29 ع2 S6 _ اS7 اR9ز2 3 ول اHوا Cumulative Probability _____________________ Demand Good Fair Poor 40 0.03 0.10 0.44 50 0.08 0.28 0.66 60 0.23 0.68 0.82 70 0.43 0.88 0.94 80 0.78 0.96 1.00 90 0.93 1.00 1.00 100 1.00 1.00 1.00 3 آGPSS 3; ,[ ي.وا GOOD FUNCTION RN1,D7 0.03,40/0.08,50/0.23,60/0.43,70/0.78,80/0.93,90/1.0,100 FAIR FUNCTION RN1,D6 0.1,40/0.28,50/0.68,60/0.88,70/0.96,80/1.0,90 POOR FUNCTION RN1,D5 0.44,40/0.66,50/0.82,60/0.94,70/1.0,8 462 :] وا Npaper EQU 30 NewsDay FUNCTION RN1,D3 0.35,GOOD/0.8,FAIR/1.0,POOR GOODF FUNCTION RN1,D7 0.03,40/0.08,50/0.23,60/0.43,70/0.78,80/0.93,90/1.0,100 FAIRF FUNCTION RN1,D6 0.1,40/0.28,50/0.68,60/0.88,70/0.96,80/1.0,90 POORF FUNCTION RN1,D5 0.44,40/0.66,50/0.82,60/0.94,70/1.0,8 GENERATE TRANSFER 1 FN,NewsDay GOOD ASSIGN TRANSFER 1,FN$GOODF ,Clcprft FAIR ASSIGN TRANSFER 1,FN$FAIRF ,Clcprft POOR ASSIGN 1,FN$POORF Clcprft SAVEVALUE PapersToBuy,(Npaper) TEST GE (Npaper-P1),0,LostP SAVEVALUE TotalProfit+,(2.0#P1-1.5#Npaper+0.1#(Npaper-P1)) TRANSFER ,FINS LostP Npaper)) SAVEVALUE TotalProfit+,(2.0#Npaper-1.5#Npaper-0.5#(P1- FINS SAVEVALUE TERMINATE START AverageProfit,(X$TotalProfit/100) 1 100 :] ت اN6 3; S7 "! ا3/ 3ر اا27 ا3; TRANSFER S : اR W اNewsDay , اا-1 . ر0م ا29 تT 6 ! , 6 أي TRANSFER FN,NewsDay , J (م2 اM[ 9 ي. )واwO اM " ا3; (P1) 1 %" ء ا7@ امASSIGN S : ا-2 . ري0م ا2ع ا2 "9 3?ا2O" اS7 463 -3ا2:ا SAVEVALUE Sا[ ,Xام ا0ول ` ا S7ا 3 2وا[ (! J) 3ب و `6ا0ر ح ا 9 ) ,/ل( و ا[ Pب و w2 `6ا 29 (100) ,b aم. -4ا J TEST S :م 9ا ,Yا ,ب ا .a Mا ] و2 ،& -ف :م ;.ة ا %:ا ` ,2وا 3 ا2ا; .ا ,: ; UNا ;.ة 464 U Mآ 6 3/ ,2` ا%: ا%J H 0 g ا ] وذ3; V RV وSTART 100 0 ا6T .م29 100 ىa اw2 -2I Y وNpaper Y M/O 29 _ اR? U9O9 3_ ا أ أد د ا6T .EQU 0 ا9C ! ا@ راتM & @ ر آJ م29 100 ة29 ,` ' 30 اءO أ ,` ' 40 ,` ' 50 ,` ' 60 465 ,` ' 70 ,` ' 80 ,` ' 90 و ا ?] ;- 3ول د ا _ ا Oاة 29 w2ا aـ 29 100م ) 9ل( 30 -2.10 466 7.90 40 15.02 50 18.78 60 15.34 70 7.34 80 -4.50 90 وط ء:I أنa رw2 أ: 9 &; 29 ,` ' 60 اءO & أ69 .YIT , X ذج2 ا 14 ل# U ا ` و%:ات وY , أو, J 37"9 ي. واINITIAL 0م ا: ف2 ا ا [ ل. ه3; :3 اSاآ The INITIAL Command: INITIAL A,B :ا" ل M/Oن ا2/9 أنSH9وري وV 2 وهX أ ف9& وU ا اد إY ا A .X$Name أوXPosInteger أو د أوT ن2/9 ! أن/ 9 و.1 ,V ا@;اU J و,9 إ ر3 ا ة وه, :ا B .% أو إ :>$ اA /BJ# :3 ا3 6@ اR9ز2 اR9 !" ] 3 2اء اO اSC Daily Demand 0 1 2 467 3 4 Probability 0.33 0.25 0.20 0.12 0.10 SC %9 ات6 و6 وي9 ! اوMJ ا& ا- م ;ذا و9 ا," Mا ا ] آ.ون ! هG ` ا9 " : I )أي,f92"I تC .AITد و2-2 ون اG را: : I ,C أي.ات6 و10 S7 اRV! و6 ! ع27: ! اG ا2 )وهLead Time م: ز ! ا.(9- ونG ل2'و :3 ا3 6@ اR9ز2 اR9 (&2' و6 Lead Time (Days) 1 2 3 Probability 0.3 0.5 0.2 " ونG اR; تC -2ITة و6 و12 3?ون ااG ع إذا آ ن ا20ا ! اول ا , و,C : I 3; : U; ث6 3 م ا90 ا, د6 . مNا ا.U ع2 أ52 3; آ . 2اء اO , 27 ات ا62 د اw2 و: I % وWC 3ات ا62ا :M ا :, ن اوال ا2/ :3 2 اS7 ا,9 " ,دا DailyDemand FUNCTION RN1,D5 0.33,0/0.58,1/0.78,2/0.9,3/1.0,4 :م: ز ! ا,9 " ,دا LeadTime FUNCTION RN1,D3 0.3,1/0.8,2/1.0,3 :] ن ا2/9و DailyDemand FUNCTION 0.33,0/0.58,1/0.78,2/0.9,3/1.0,4 LeadTime FUNCTION 0.3,1/0.8,2/1.0,3 Inventory Sales RN1,D5 RN1,D3 INITIAL INITIAL INITIAL TABLE TABLE X$EOQ,10 X$Point,6 X$Stock,12 X$Stock,0,5,10 P$Demand,1,2,10 468 Again GENERATE TEST L ADVANCE SAVEVALUE TRANSFER ,,,1 X$Stock,X$Point FN$LeadTime Stock+,X$EOQ ,Again GENERATE ASSIGN TABULATE TEST GE SAVEVALUE SAVEVALUE TABULATE TERMINATE 1 Demand,FN$DailyDemand Inventory X$Stock,P$Demand Stock-,P$Demand Sold,P$Demand Sales 1 .اتY , أو%J I 3 اINITIAL وا0 ا,2 H 6T ,2` ا%:ة ا.; U أ%X & -Iا ا ] و. هMأد ] ا- أINITIAL وا0 ا,7ا2 U ات3 ا%: أت,2` ا%: أن ا6T START 52 :]? ا :,2` ا%:ة ا.; :9:وا TABLE CUM.% INVENTORY MEAN STD.DEV. 9.519 3.358 RANGE RETRY FREQUENCY 0 0.000 - 5.000 7 5.000 - 10.000 21 13.46 53.85 469 100.00 SALES 1.327 10.000 - 15.000 _ - 1.000 32 1.000 - 3.000 17 3.000 - 5.000 3 1.150 24 0 61.54 94.23 100.00 SAVEVALUE EOQ POINT STOCK SOLD RETRY 0 1 1 0 VALUE 10.000 6.000 3.000 4.000 .]? ` اIب و27 إاج اS 7 ك9 :!9 I 470 #ل 15 ; 3ه.ا ا [ ل 2ف :م ا GATE S :وا.ي M " Y9إ دا أو ر و; , 6آ ?! .و& اآS The GATE Block: A,B GATE O ا" ل: O 3C Mوه 2اOط ا 27ب ! ا !? /ان .&:: 9وهV 2وري و SH9ان 2/9ن أ 6ا FNV, FV, I, LS, LR, M, NI, NM, NU, SE, SF, SNE,SNF, :3 SNV, SV, Uو2ف Oح ج إ& ; 3ا [ ل. A إ %ا !? /أو ر & Jا.ي ,2 P6 9ا 3; V 7"I !? /ا" Mا3CO وهV 2وري و SH9ان 2/9ن إ %أو د ' S-2 aأو !2J ! "Iأو '` ,د N ,9م او '` ,د%" ,9 B ر %Jاو ر Gا S :ا.ي &H9إ& ا " MO; MاOط وه 2إ ري و SH9أن 2/9ن Tأو إ %أو د ' S-2 aأو !2J ! "Iأو '` ,د N ,9م او '` ,د%" ,9 ا" :O M FNV ا ,Uا " 3; V ,ا" SH9 A Mان 2/Iن ;;2 ^ , 6 3ة Hح اOط. FV ا ,Uا " 3; V ,ا" SH9 A Mان 2/Iن ;;2 , 6 3ة Hح اOط. NU ا ,Uا " 3; V ,ا" SH9 A Mان 2/Iن ; , 6 3م إام Hح اOط. SE ا Gن ا "! 3; Vا" SH9 A Mان 2/9ن ; ; , 6 3رغ Hح اOط أي أن R -و6ات ا Gن 2/Iن ., 471 ط أيO ح اH , 6 3; ن2/9 انSH9 A M " ا3; V !" ن اG ا SF .,2YO ن2/I نG ات ا6 وR - أن طO ح اH ^ ; رغ, 6 3; ن2/9 انSH9 A M " ا3; V !" ن اG ا SNE ., ^ ن2/I نG ة ! ا6ة وا6 وMJ0أي أن ا حH ^ , 6 3; ن2/9 انSH9 A M " ا3; V !" ن اG ا SNF . U ! إا/ 9 نG ة ! ا6ة وا6 وMJ0ط أي أن اOا حH ;2 ^ , 6 3; ن2/9 انSH9 A M " ا3; V !" ن اG ا SNV .طOا .طO ح اH ;2 , 6 3; ن2/9 انSH9 A M " ا3; V !" ن اG ا SV .طO ح اH إام, 6 3; ن2/I انSH9 A M " ا3; V ," ا,Uا U I"% Jم هL @آة M آM I ! ا رج3IeI 3 ت ا/ ا.!7 ! ن2/9 w _I م هN .,:Jد 5±1 " ورS7" ا9 S 7 ;ن اT2YO w إذا آ ن ا.,:Jد S 7 ا,JY9 ي. ! ازم اG اR9ز2I ,و- ب27 ا.,:Jد ؟, / 200 3±1 2 ±1 , / ق اYI ب @آ ل27 اWJ2ل ا2C % آ., - , / @آ ل :] ا Lines STORAGE TimeInsYS TABLE M1,.5,1,20 TryAgain Busy 2 GENERATE 2,1 GATE SNF Lines,Busy ENTER Lines ADVANCE 3,1 LEAVE Lines TABULATE TimeInSys TERMINATE 1 ADVANCE 5,1 472 TRANSFER ,TryAgain SH9 A M " ا3; V !" ن اG أي اSNF 3CO اM " اR GATE إام6T !/ 9 _I Uط ا27 ! 6 واw MJ0ط أي أن اO ح اH ^ , 6 3; ن2/9 ان . U إا 473 :]? ا Sا2:ة ا.; ة ا زن.; اولHة ا.; 9:ا LABEL LOC 1 BLOCK TYPE GENERATE ENTRY COUNT CURRENT COUNT RETRY 204 0 0 474 TRYAGAIN BUSY 2 3 4 5 6 7 8 9 GATE ENTER ADVANCE LEAVE TABULATE TERMINATE ADVANCE TRANSFER 295 200 200 200 200 200 95 91 STORAGE DELAY LINES CAP. REM. MIN. MAX. TABLE CUM.% TIMEINSYS MEAN STD.DEV. 5.040 4.550 2 2 0 0 0 0 0 0 0 4 0 ENTRIES AVL. 2 200 1 0 0 0 0 0 0 0 0 AVE.C. UTIL. RETRY 1.428 RANGE 0.714 0 0 RETRY FREQUENCY 0 1.500 - 2.500 38 2.500 - 3.500 73 3.500 - 4.500 40 4.500 - 5.500 0 5.500 - 6.500 0 6.500 - 7.500 7 7.500 - 8.500 15 8.500 - 9.500 9 9.500 - 10.500 0 10.500 - 11.500 3 11.500 - 12.500 1 12.500 - 13.500 2 13.500 - 14.500 1 14.500 - 15.500 2 15.500 - 16.500 0 16.500 - 17.500 0 17.500 - 18.500 3 18.500 - 19.00 55.50 75.50 75.50 75.50 79.00 86.50 91.00 91.00 92.50 93.00 94.00 94.50 95.50 95.50 95.50 97.00 _ 6 100.00 .]? ` اI إاج وS 7 ك9 :!9 I 475 16 ل# : ا ل- B آ ! ر أن:I ,: اUI ! . ! ا لY يHI ت ا زلT2 ا6 أI ر أن:I U آ ا. ل- ! ا20% ! ا ء و%U 80% M/O9 ! _ ا بUC 9 ل- ! ا40% w:; !/ ! ا ل وU? 7 ! :9 UC 9 3I ! ا ء ا70% R9 & ا ء7"9 ي.ر أن ا ا:I ,: اUI ! f9 أ.gن ذ2"`9 U2C 9 !9.ا 10 و7 ! ويR9ز2I f9 اR9 ل- g ل ذ9 ر22 و18 ! ويR9ز2I w2 ر:; ل6@ ` ا29 TG 15 إ10 ! 37YI ,2 أن اW إذا. ل9ر .ل2I م9 أ100 "د3 2 اUد :M ا , م اا,2 اSC 9 ! ,9 " WhoAnswer FUNCTION RN1,D2 0.8,Female/1.0,Male أ[ لU7"I M ه,9 " FDonate FUNCTION RN1,D2 0.7,FYes/1.0,FNo لM- رU7"9 M ه,9 " MDonate FUNCTION RN1,D2 0.4,MYes/1.0,MNo [0;"& اI ي. ا ا,9 " FGive VARIABLE RN1@5+18 M-;"& ا9 ي. ا ا,9 " MGive VARIABLE RN1@4+7 ] ن ا2/9و WhoAnswer 0.8,Female/1.0,Male FDonate 0.7,FYes/1.0,FNo MDonate 0.4,MYes/1.0,MNo FGive MGive FUNCTION RN1,D2 FUNCTION RN1,D2 FUNCTION RN1,D2 VARIABLE VARIABLE RN1@5+18 RN1@4+7 476 Female FYes FNo Male MYes MNo Fin1 Fin2 GENERATE SAVEVALUE TRANSFER TRANSFER ASSIGN TRANSFER TRANSFER TRANSFER ASSIGN TRANSFER TRANSFER SAVEVALUE TERMINATE 1 NumberOfHouses+,1 FN,WhoAnswer FN,FDonate Donation,V$FGive ,Fin1 ,Fin2 FN,MDonate Donation,V$MGive ,Fin1 ,Fin2 Total+,P$Donation GENERATE SAVEVALUE TERMINATE 12.5,2.5 NumberOfDays+,1 1 :]? ا Sا2:ة ا.; ,2` ا%:ة ا.; 9:ة ا.; LABEL RETRY LOC BLOCK TYPE 1 GENERATE 477 ENTRY COUNT CURRENT COUNT 1232 0 0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 FEMALE FYES FNO MALE MYES MNO FIN1 FIN2 SAVEVALUE NUMBEROFHOUSES TOTAL NUMBEROFDAYS SAVEVALUE TRANSFER TRANSFER ASSIGN TRANSFER TRANSFER TRANSFER ASSIGN TRANSFER TRANSFER SAVEVALUE TERMINATE GENERATE SAVEVALUE TERMINATE RETRY 0 0 0 1232 1232 991 695 695 296 241 100 100 141 795 1232 100 100 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 VALUE 1232.000 14826.000 100.000 :H ]? ! ا 148.26 2 ه3 2 اU دw2 ل أي9 ر14826 ,2 اW" - م29 100 3; -1 .( ل9 ر148.5 ,9N ا, : ل ) ا9ر .80.044% , أي1232 ! 991 !- أ3Ih د ا ء ا-2 70.13% , أي,2 !"; د695 !U 991 !- أ3Ih د ا ء ا-3 478 17 ل# :-/D)) ا4 /BJ# "د3 6@ أR9ز2 ا. 29 "ه9 3 اG أ,`^ د أرw2 9 I !9 ا ز6 أ99 :ولH 7"9 29 !? Gا Number of Customers/Day 8 10 12 14 Probability 0.35 0.30 0.25 0.10 :3 ا3 6@ اR9ز2 اS6 ,`^ر0ي د ! اO9 ن2 زMآ Number of Loafs/Customer 4 8 12 16 Probability 0.4 0.3 0.2 0.1 . 29 "ه ا ز9 3 ا,`^ر0 د اw2 د6 م29 M ?! آG د ا,9 " ,ن دا2/ NCustmr FUNCTION RN1,D4 0.35,8/0.65,10/0.9,12/1.0,14 ن2 زM/ ,`^ر0 د ا,9 " ,ن دا2/ NLoaf FUNCTION RN1,D4 0.4,4/0.7,8/0.9,12/1.0,16 ] ا NCustmr FUNCTION 0.35,8/0.65,10/0.9,12/1.0,14 NLoaf FUNCTION 0.4,4/0.7,8/0.9,12/1.0,16 RN1,D4 RN1,D4 GENERATE ASSIGN 1+,FN$NLoaf ASSIGN 2,1 SAVEVALUE SAVEVALUE TERMINATE 1 TotalCustomers+,P2 TotalLoafs+,P1 479 GENERATE ASSIGN 1,1 SAVEVALUE TERMINATE 1,FN$NCustmr TotalDays+,P1 1 M ا (ن2 ز10.2 9N) ن2 ز10.17 = 100/1017 = !? G د اw2 ر^_ أو81.6 3 ه,9N ا, : ) ا._^ ر82.28 = 100/8228 = ,`^ر0 د اw2 .(_^ ر82 9:I 480 18 ل# 3; 3T اR9ز2 وا3"7 اR9ز2 اM[ ,9N " ت9ز2I إام,`م آ: ا ا [ ل. ه3; .آ ة 3 اR9ز2I U ل2'! و ا , زe M ?! إ اG اM 9 ،! & M "9 ,J6 دآ ن bJ د8 w2 3"C R9ز2I S6 ن2 G ا, م2:9 ول0 اM " ا،? J د7 w2 ? J د10 w2 3"C f9 ز ! & ا3 [ اM " ? واJ د3 وإ اف " ري .,:J د2 وإ اف " ري ., داء ا0 ا9 : -ن وأو2 ز100 , %I 6 مNا ا.آ ة ه 3 ? آJ د7 w2 3 اR9ز2I U ل2'! و GENERATE ب27 ا , زe !? G ا29 (Exponential(1,0,7)) وه أ,?ا2O"اد ا0 ا2 ل9 ول0 ا%J اExponential(1,0,7) M د6T 3T اR9ز2 RJ2 ا%" 3 [ ا%J( اRN1 )أي1 %J ر2 ا 1 f ( x) = e − ( x−β ) λ λ , λ > 0, E ( X ) = λ + β , V ( X ) = λ 2 . λ = 7 وهScale س: ا%" P [ ا%Jا β =0 وه 3 آ29 ول0 اM " , ز ! ا ADVANCE (Normal(1,8,3)) 1 %J ر2 وه أ ا,?ا2O"اد ا0 ا2 ل9 ول0 ا%Jا Normal(1,8,3) Mد أ م ا@ اف6T) ا@ اف ا " ريP [ ا%J واw2 ا3 [ ا%J( اRN1 )أي .(!9 ا " ري و ا 3 [ اM " M[ و ADVANCE (Normal(1,10,2)) ] ن ا2/9و Barb1 GENERATE QUEUE TRANSFER SEIZE DEPART ADVANCE (Exponential(1,0,7)) Line BOTH,Barb1,Barb2 Barber1 Line (Normal(1,8,3)) 481 Barb2 Fin RELEASE TRANSFER SEIZE DEPART ADVANCE RELEASE TERMINATE Barber1 ,Fin Barber2 Line (Normal(1,10,2)) Barber2 1 ]? ا Sا2:ة ا.; تUة ا.; ا27ة ا.; 9:ا LABEL BARB1 BARB2 FIN LOC 1 2 3 4 5 6 7 8 9 10 11 12 13 BLOCK TYPE GENERATE QUEUE TRANSFER SEIZE DEPART ADVANCE RELEASE TRANSFER SEIZE DEPART ADVANCE RELEASE TERMINATE ENTRY COUNT CURRENT COUNT RETRY 100 0 0 100 0 0 100 0 0 60 0 0 60 0 0 60 0 0 60 0 0 60 0 0 40 0 0 40 0 0 40 0 0 40 0 0 100 0 0 482 FACILITY DELAY BARBER1 0 BARBER2 0 QUEUE RETRY LINE 0 ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY 60 0.679 7.945 1 0 0 0 0 40 0.598 10.490 1 0 0 0 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME 6 0 100 50 0.540 3.793 AVE.(-0) 7.585 .ب27 ` اI إاج وS 7 ك9 :!9 I 483 19 ل# 15 ± 10 Mة آ6"ل وا ةH اءات,H آة,9 3; ك رات إ" فI U ق ا@" فY9 إ" ف( و, 3IT )أو, ن آ ذ2/I ! ااءات 15% .? Jد , 6 & _ ا9 ول0ع ا2 ا،!2 ! ة6ن وا2/I دة و- ااءات,: .,:J د12 ااءات,: أU @آ,:J د25 ود ! رات ± 5 قYI دة وHت اT ! ا 15% M/O9 و,-6 ^ د-29 & ;ض ا. U @آ,:J د20 , مN ا3 آ6 .,N ! اي ±2 ± 10 .eI U; اء,I 3; ن2/9 ! ان/ 9 U ا@" ف وان اي د . اء500 :] ا ; Ambulance dispatch: Exersise 4.4 ; Discrete-Event System Simulation, ; Banks,j et al ; Version 2 GENERATE QUEUE TRANSFER QUEUE SEIZE DEPART ADVANCE RELEASE TRANSFER NFALARM TRANSFER QUEUE SEIZE DEPART ADVANCE RELEASE TRANSFER SERIOUS QUEUE SERIOUSQ SEIZE DEPART ADVANCE RELEASE OUT DEPART TERMINATE 15,10 ALLQ 0.85,,NFALARM FALARMQ FALARMS FALARMQ 12,2 FALARMS ,OUT 0.15,,SERIOUS NORMALQ NORMALS NORMALQ 20,10 NORMALS ,OUT SERIOUSS SERIOUSQ 25,5 SERIOUSS ALLQ 1 ]? ا Sا2:ة ا.; 484 تUة ا.; ا27ة ا.; 9:ا LABEL NFALARM LOC 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 BLOCK TYPE GENERATE QUEUE TRANSFER QUEUE SEIZE DEPART ADVANCE RELEASE TRANSFER TRANSFER QUEUE SEIZE DEPART ADVANCE RELEASE TRANSFER ENTRY COUNT CURRENT COUNT RETRY 501 0 0 501 0 0 501 0 0 76 0 0 76 0 0 76 0 0 76 0 0 76 0 0 76 0 0 425 0 0 359 0 0 359 0 0 359 0 0 359 1 0 358 0 0 358 0 0 485 SERIOUS OUT FACILITY DELAY NORMALS 0 SERIOUSS 0 FALARMS 0 QUEUE RETRY ALLQ 0 NORMALQ 0 SERIOUSQ 0 FALARMQ 0 17 18 19 20 21 22 23 ENTRIES QUEUE SEIZE DEPART ADVANCE RELEASE DEPART TERMINATE UTIL. 66 66 66 66 66 500 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 AVE. TIME AVAIL. OWNER PEND INTER RETRY 359 0.952 20.068 1 501 0 0 0 66 0.222 25.475 1 0 0 0 0 76 0.121 12.087 1 0 0 0 0 MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) 11 1 501 0 4.207 63.538 63.538 8 0 359 26 2.879 60.678 65.416 2 0 66 52 0.030 3.435 16.193 1 0 76 71 0.002 0.237 3.595 .]? ب ! ا27 ` اI إاج وS 7 ك9 :!9 I 486 20 ل# ا. ه37 ا.3 ا, ء رh اH ع-ر إ2f ر2 Tآ او ء ا. ءh ا6ع أ27I H , X 5 ± 2 ع27 . ع-@ 5آ. 30 ق اY9 . أ3 و100 ت2` , ? J ,ع ! إدارة ا ر27 ا ± 5 و%J اS7 , X 7 ± 2 قY9 و3 ا0 ا3 و%Jر ع7! أ9.ر ا2 T د او ء ا%/; .آة. 0 ا3ع و27 اH9 ان35% ل6ه ك إ ؟gق ذY9 WJ2 ! ا% وآw:; ة6 ة وا,Xد ول ا9 & ا س ا%U" ا ث ] ا ; Parent Volunteer : Exersise 7.4 ; Discrete-Event System Simulation, ; Banks,j et al ; Version 1 TTIME NCALL TABLE GENERATE ADVANCE 5,2 ADVANCE 7,2 TRANSFER ADVANCE 30,5 ASSIGN 1,1 TABULATE SAVEVALUE TERMINATE M1,10,10,20 1,,,100 ;FIND NUMBER ;DIAL NUMBER 0.65,,NCALL ;PLACE CALL TTIME TOT +,M1 1 ]? ا Sا2:ة ا.; ,2` ا%:ة ا.; اولHة ا.; 487 9:ا LABEL NOCALL TABLE CUM.% TTIME LOC 1 2 3 4 5 6 7 8 9 BLOCK TYPE GENERATE ADVANCE ADVANCE TRANSFER ADVANCE ASSIGN TABULATE SAVEVALUE TERMINATE MEAN STD.DEV. 22.492 ENTRY COUNT CURRENT COUNT RETRY 100 0 0 100 0 0 100 0 0 100 0 0 36 0 0 36 0 0 100 0 0 100 0 0 100 0 0 RANGE RETRY FREQUENCY 14.492 0 _ - 10.000 10 10.000 - 20.000 54 20.000 - 30.000 0 30.000 - 40.000 11 40.000 - 50.000 25 10.00 64.00 64.00 75.00 100.00 SAVEVALUE TOT RETRY 0 VALUE 2249.236 .]? ` اI إاج وS 7 ك9 :!9 I 488 : GPSS اآة#> )ام$'_ = واآة31ا أوGeneral Purpose Simulation System آ ة آ ة أي ا, G6 ف م2 M `ا ا. ه3; Blocks Sا2J وCommands " أواI آ ة , G6 3 وهGPSS . مN : GPSS أوا • BVARIABLE Boolean ع1 ا# &7! #$&ف آ, • CLEAR Transaction ,!( ا# O ! و$ 8 ادات ا,& ا • CONDUCT %&: &ي: • CONTINUE J; ,% &(!" ,: ، ( ا(@آةP • EQU & ا("! م7!( (; *R, • EXIT GPSS * " او دورة1 • FUNCTION دا#$&ف آ, • FVARIABLE (" &7!) Fvariable ع# #$&ف آ, 489 • HALT Queued Commands U1!&ة اL!1( ا(@آة و(@* آ ا)وا& اJ; • INCLUDE يV (ذجJ X&!&أ و0 • INITIAL Matrix *+ #$ أو آSavevalue Z (; أوLogicswitch *0R1 ر @لR "! او Entity • INTEGRATE User Variable & ا("! م7! *+ 1 ز0![ $0 P • MATRIX *+ #$&ف آ, • QTABLE (ر%\ ) ولQtable ع# #$&ف آ, • REPORT ري+ &&0 ]R && أو "! م0! اJ( (-^ إB • RESET ت ا(@آة$ & إ • RMULT $[ا, _ اد اE ا`و,4"^ اة ا( ات اB • SHOW 490 Expression رات4, اdisplay &ض, وevaluate ر0 • START أ ا(@آة4 وTermination Count ء8 اد ا, (; *R, • STEP ]ا0 ا# د @ د%&:!% ةR % ةRG &ي ا(@آة: • STOP ]0ل اG إ!(دا * @و`ت دJ; ^ &طB • STORAGE Storage Entity ن#$&ف آ, • TABLE Table Entity ول#$&ف آ, • VARIABLE Variable Entity &47! #$&ف آ, GPSS رات ا The GPSS Block Statements ADOPT Assembly Set ^(:!( ا: &7 ADVANCE Future Events Chain 40!"(( ا) اث ا$; * Transaction ,! ^B ALTER 491 Group (: *+ #,!( ل ا,& و4! ASSEMBLE related Transactions #R4&( ا#,!(* ا1& وL!1 ASSIGN Transaction Parameter ,!( اX, ل, BUFFER Current Events Chain @( ا) اث ا$; *+ ,!(^ اB CLOSE ت% لG* إد1 COUNT Transaction Parameter ,!( اX, *+ ت1$P اcount اد, ^B DEPART Queue Entity ر%\ #$ @!ت آ# O01 DISPLACE ,!( Next Sequential Block *!] ا(!"" ا0& ا7 ENTER Storage Entity ن#$* آ+ & و ات نL! او اe!ا EXAMINE group (: B اوE& إ!(ء ا4! EXECUTE 492 &Gf ]; R-ا% د [ط1% م0 FAVAIL "available" " &ة+! " E إFacility Entity " #$ آstatus # &7 FUNAVAIL "not available" " &ة+! &h " E إFacility Entity " #$ آstatus # &7 GATE Transaction flow ,!( ل إ"ب ا, و#$& آ4! GATHER related Transactions #R4&( ا#,!(& اL!1 GENERATE Future Events Chain 40!"(( ا) اث ا$; *+ j,B وTransaction ,! Create INDEX Transaction Parameter ,! X, ل, INTEGRATION Off E إOn # دا "! مP @ل JOIN Numeric or Transaction Group ,! (: ( د او: *+ اB ^B LEAVE Storage Entity ن#$P storage units !&ك او @&ر و ات ن LINK 493 Userchain Entity ( "! م$; #$ آE ا,! او @&ك01 LOGIC Logicswitch Entity *0R1 @ل#$ ل آ, LOOP & &h :!1 اl& إذا آGf ]; * ا0 وX, (; # O01 MARK Transaction Parameter ,!( اX, *+ مL1 ا- (; ^B MATCH !&ن0( اMATCH ]; ** ا إP #R4&( ا#,!(& اL!1 MSAVEVALUE Matrix Entity + #$& آ1, (; *R, OPEN ت% لG"! إد PLUS X, *+ :!1 اZ@ وPLUS &%, ]"@ ر او0 PREEMPT "! اP E *!" اوA PRIORITY ,! B+ ل ا, QUEUE 494 ر%\ @!ت آن READ ت% J # *!& اR"& اB@ RELEASE Facility Entity "! ا#$&ر آ REMOVE Numeric or Transaction Group ,! (: ( د او: # اB &ج RETURN Facility Entity "! ا#$@&ر آ SAVAIL " &+! " E ا( ن إ#$& آh SAVEVALUE Savevalue #$P (; ^m SCAN X, *+ (0^ اm و#,! (: &4!Gا SEEK G ت% *+ &R"& '& اh SEIZE " #$& آL! أو اe!ا 495 SELECT !( اX, *+ ا( !ر#$P اX;^ رm SPLIT I4& ! nGا SUNAVAIL " &+! &h " E ا( ن إ#$& آh TABULATE ول#$ د آ TERMINATE ء8 اد اO0 وا,! *ا TEST ,!( و ل إ"ب اarithmetic condition *%"@& ا[&ط ا4!Gا TRACE Active Transaction I[1 ا,!( Trace Indicator ]0, &' ^m TRANSFER ] ا(@ د0 اE ا0&ك او ا UNLINK ( ا("! م$; #$ آ# ,!(ازل ا UNTRACE 496 I[1 ا,!( ]0,! '& اnhا WRITE ت4 اJ * ;( ا-ار GPSS م ا"! ة$% ا ت ا('د System Numerical Attributes (SNA) available in GPSS: • A1 @@ (; .I[1 ا,!( Assembly Set X( ا!&اآ: • AC1 00 (; .CLEAR &Gf # E ا(@آl; ا.0R(م اL1 ا- (; • BVEntnum 00 (; . Entnum E(" Boolean Variable Entity *% &7! #$ & آ0 :! • C1 00 (; .RESET &Gf # E ا(@آl; ا.4"1م اL1 ا- (; • CAEntnum E(" ( "! م$; *+ #""!( ا#,!( ا1 د از, ا(زونI-!( ا.( ا("! م$; @!ىI-! 00 (; .Entnum • CCEntnum . Entnum ( ا("! م ا("(ة$; E إ#""( ا#,!( اد آ ا, .( "! م$0 *Pل اG د ا @@ (; • CHEntnum 497 . Entnum ( ا("! م ا("(ة$; E إ#""( ا#@ ا#,!( د ا. ( "! م$; @!ت @@ (; • CMEntnum . Entnum ( ا("! م ا("(ة$; E إ#""( ا#,!( ا# دE ا.( "! م$0 @!ىEا @@ (; • CTEntnum (; . Entnum ( ا("! م ا("(ة$; *+ ,! ثP I-! .( "! م$; *+ ثP( ا# زI-! 00 • FEntnum 0 ^& ` وإ1 ^& Fentnum ، ل7[ Entnum ا!" ا("(ة#$ إذا آن آ.7[ " @@ (; • FCEntnum *("( ا!" ا#$ آPREEMPT &غ+ او اSEIZE e! د ا(&ات ا!* ا."! ا7 اد, @@ (; .,!(% Entnum • FIEntnum 1 ^& FIEntnum ، &غ+ اEntnum "! ا#$ إذا آن آ.l,\; Entnum ا!" ا("(ة @@ (; . 0 ^& `وإ • FNEntnum 00 (; . Entnum ا ا#$ آX0 :! .دا • FREntnum 1000 # ء: و(= آ.ل7[ Entnum "! ا#$ آ+ ي آنU ا# ا# ء: ا."! ا,+ 00 (; . ( )[( ء [&يA@ &h نP ; و،`(! إ1000 و0 #% (; ^& اUء و • FTEntnum 498 00 (; .,!(% Entnum "! ا#$ آj+ e!ى اU ا# اI-! ."! إ"ك ا# زI-! • FVEntnum (hر+ & )أي+ *+ Entnum "! ا#$ إذا آن آ1 ^& FVEntnum .&+ *+ " @@ (; .0 ^& `وإ • GNEntum @@ (; . Entnum ( د: B اد, ^& GNEntnum .( د: اد, • GTEntnum @@ (; . Entnum #,! (: B اد, ^& GTEntnum .#,! (: اد, • LSEntnum . 0 , `* " ه " وإ+ *0R1( ا(@ل ا#$ إذا آن آ1 , LSEntnum .* ه0R1 @ل @@ (; • MBEntnum q j يU واEntnum ]; 1 ,! إذا و1 , MBEntnum .]; 1 Match n+ 1 , MBEntnum .Active Transaction I[1 ا,!( آAssembly Set ^(:!( ا: @@ (; . 0 `وإ • MPParameter 00 (; . Parameter X,( ا@ ; ;( ا0R(م اL1 ا- (; .X, ،ل0!8 ا#ز • MXEntnum(m,n) Entnum *+( ا#$P n (د, واm &R"* ا+ (0*( اR,) , .*+ Z (; • M1 00 (; .,!( "Mark Time" :! ا# ; ز0R(م اL1 ا- , M1 .*0!8 اl;ا 499 • NEntnum @ (; . Entnum ]0 اGي دU* اP ا#,!(د د ا, .]; لG اد د, • PParameter or *Parameter (; .I[1 ا,!( Parameter X,( ;( ا, *Parameter أوPparameter .X,(;( ا +& او00 @@ او • PR @@ (; .I[ ,! B+ ;( ا.,! B+ا • QEntnum @@ (; . Entnum *@ر ا%R ا#$ اد ;( @!ى آ, .*@ر ا%R@!ت ا • QAEntnum 00 (; . Entnum ر%R ا#$* آ+ د, * ا(زون1 اI-!( ا.ر%R @!ي اI-! • QCEntnum @@ (4; . Entnum ر%\ #$ل إ* آG ادات ا, ^( ^( .ر%R G* ا اP د ا,ا • QMEntnum @@ (; . Entnum ر%R ا#$P E;) اد ا,! ا.ر%R @!ىE;أ • QTEntnum @@ (; . Entnum ر%R ا#$P اد,! * ا(زون1 اI-!( ا.ر%\ *+ ثP( ا# زI-! • QXEntnum #$P اد,! * ا(زون1 اI-!( ا.%&ت اG (ر ا4!ر ^ م إ%\ *+ ثP( ا# زI-! 00 (; .& ثP 1 ا!* از#G ^ م "ب ا اEntnum ر%Rا • QZEntnum 500 (; .& ثP 1 ا!* ازEntnum ر%R ا#$P #G د ا ا.ر%R #& ا#G اد ا ا, @@ • REntnum . Entnum ا( ن#$ إ* آ#G ا ا#,!(% (ل,!-r !( @!ت ا( ن ا. ا( ن,- I-! @@ (; • RNEntnum Entnum $[ا, ا`ر;م ا# 0-999 #% *$ [اA@ X; ر, RNEntnum .*$ [اX;ر @@ (; . • SEntnum #$ آ#G ا ا#,!(% 7[( ار @!ت ا( ن ا0 , SEntnum . ا("! م# !ا @@ (; . Entnum ا( ن • SAEntnum #$ آ1 (,!"( ا( ن ا," * ا(زون1 اI-!( ا, SAEntnum . ا("! م# ! اI-! 00 (; . Entnum ا( ن • SCEntnum @@ (; . Entnum ا( ن#$ آ# 7[(* ات ا( ن اP د ا, ا.! ام ا( ن- اد إ, • SEEntnum (; . 0 , ` وإjP% &+! Entnum ا( ن#$ إذا آن آ1 , SEEntnum .رغ+ ا( ن @@ • SFEntnum (; . 0 , ` وإjP% s!( Entnum ا( ن#$ إذا آن آ1 , SFEntnum .s!( ا( ن @@ • SREntnum 501 . Entnum ا( ن#$* آ+ ا( ن ا("! مI-!(% =(! *P! ام ا-8 ا# &" آ. ا( ن,+ 00 (; .&" ;( آUGH ; & و0-1000 #% (; , ء وJ ا# ء: آj1 &4,و • SMEntnum @@ (; . Entnum ا( ن#$* آ+ (ل,!-8* ا+ ونE;أ • STEntnum 00 (; . Entnum ا( ن#$* آ+ و ةP ثP( ا# زI-! • SVEntnum (; . 0 , `& وإ+ *+ Entnum #$P إذا آن ا1 , SVEntnum .&+!* ا+ ا( ن @@ • TBEntnum 00 (; . Entnum ول: ا#$* آ+ X0 & ا(زونh I-!(ا • TCEntnum @@ (; . Entnum ول: ا#$* آ+ & زو7 ول ا: اX; اد, • TDEntnum 00 (; . Entnum ول: ا#$* آ+ & زو7 ول ا: اX0 ري,(@&اف ا8ا • TG1 + نP *! اTERMINATE ]ا0 اR-ا% O;1! يU ا, ا, TG1 .ء8* اد ا+ *;4ا (; . 0 !(; نP 1 إ!ء ا(@آة#4 وSTART رة4,% !" *! وه* ا، ] A X,(ا @@ • VEntnum 00 (; . floating point ($, اR01* او ا%"@ اEntnum &7!( ا#$ آX0 :! 502 • WEntnum @@ (; . Entnum ]0 ا#$* آ+ #@ ا#,!( د ا.*@] ا0 اد ا, • XEntnum +& او00 ;( @@ او. Entnum t@ (; #$Pد ;( ا, . Savevalue t@ (; • XN1 @@ (; .I[1 ا,!( ,!( اX;د ر, .I[1 ا,!( اX;ر • Z1 @@ (; .7[!م اL R-ا% د, (; .اآ&ة ا@&ةUا :تL ]0&ف ا, . 22 X;] ر0* ا+ #&L!1( ا#,!( د ا, (SNA مL1 د, ) اW22 ر :*& " وه4,! &ىGل اP ا#P و22 X;& ا@ ه اvU* ه+ • Wj * ا(@آة+ ]0 اX; ر،] A@ دj w • W$Name *1,(] ا0 ه ;^ اName w • W*j &ة4 &h 1 vU وه.*1,(] ا0 اX;ي @ي رU اI[1 ا,!( اX, X; ر،] A@ دj w indirect addressing • W*Name &ة4 &h 1 vU وه.*1,(] ا0 اX;ي @ي رU اI[1 ا,!( اX, X- ه إName w 503 • W*$Name !0%" x+P .*1,(] ا0 اX;ي @ي رU اI[1 ا,!( اX, X- ه إName w • W*Parameter W*$Name اوW*Name اوW*j # ! ام أي- إP إ#4و :GPSS '*!+" اOperators ا("ل ^ .B ة0 ع+& A , A^B .^ )س+&ا # B *+ A &بB د, ا:!1 ا, A # B .&بm / B E A ("; :! , A / B .("; \ B E A "( ا@@ ـ0 ا:! , A \ B .Integer Division @@"( ا0ا @ B E A ـModulo Division ("; *;% , A @ B .Integer Remainder A@* ا04!(ا B وA #% ا&ق, A - B .\&ح + B وA (ع: , A + B .^( >= ‘GE’ 504 أآ # &4أو "وي 1 , A >= B .إذا آ A lاآ &4أو "وي د Bوإ` &h 0 ,ذe ’<= ‘LE أ; #أو "وي 1 , A <= B .إذا آ A lأ; أو "وي د Bوإ` &h 0 ,ذe ’> ‘G أآ 1 , A > B .# &4إذا آ A lأآ &4د B #وإ` &h 0 ,ذe ’< ‘L أ; 1 , A < B .#إذا آ A lأ; د B #وإ` &h 0 ,ذe ’= ‘E "وى 1 , A = B .إذا آ" A lوى د B #وإ` &h 0 ,ذe ’!= ‘NE " qوى ـ 1 , A != B .إذا آ ! A lد B #وإ` &h 0 ,ذe ’& ‘AND و ا( 1 , A & B .0R1إذا و I0+إذا آن آ A #و & &h Bوإ` &h 0 ,ذe ’| ‘OR أو ا( 1 , A ‘OR’ B .0R1إذا آن Aأو Bأوآه( & &hي وإ` &h 0 ,ذe :L ا1$Pت ا! ]:إ 4; declaredأن ( #Pإ !-ا: • آ1$ت ا( ن ]:إ 4,%رة STORAGE • ا(!&7ات ا@" ]: %إ 4,%رة VARIABLE • !&7ات ا R01ا ]: Floating point ($,إ 4,%رة FVARIABLE • ا(!&7ات ا4و ]: Booleanإ 4,%رة BVARIABLE • ا(+ت ]:إ 4,%رة MATRIX 505 TABLE رة4,% ] إ: اول:ا • QTABLE رة4,% ] إ: Qtables ر%R اول ا • ^ ا ا4! رة4 وFUNCTION رة4,% ] إ: ا وال • MARK وASSIGN رات4,% ] إ: Transaction Parameters #,!( اX, • TRANSFER SUB وCOUNT وSPLIT وSELECT وREAD و :, ا,[ 0 ا3; GPSS آ ة 506 ا, G6 ف "ض2 . آة ا*)م-./# 0)# )12 اآ34 ك67 آة# -1 :/BJض ا2 .اآ.اء اO ر2 C 3; ا2`:9 و, X 7±7 Mم آJ آةS" اآ.I ن ا ك2"HO اM 9 ., X 5±3 S" اMل ا دا2'2اآ وا.ق ز ! اء اY9 .S" اM ا داRHO 300 ل2 ب27 ! اG ا9 ذج2 ب ء27 ا : GPSS u/ g#6ض ا2 ; GPSS World Sample File - TURNSTIL.GPS, by Gerard F. Cummings ************************************************************** * * * Turnstile Model * * Time is in seconds * ************************************************************** In_use EQU 5 ;Mean time Range EQU 3 ;Half range GENERATE 7,7 ;People arrive QUEUE Turn ;Enter queue SEIZE Turn ;Acquire turnstile DEPART Turn ;Depart the queue ADVANCE In_use,Range ;Use turnstile RELEASE Turn ;Leave turnstile TERMINATE 1 ;One spectator enters ************************************************************** :ذج1 ا2 9Hو GENERATE ل2'2 ( !"HO ) ه اTransactions ! " اS9 GENERATE Block S :ا ., X 7±7 Mاآ آ. ك ا QUEUE 507 % !9."! اHO ر ا2 C ! ? ت 6 إR H9 DEPART S : اR QUEUE S :ا ,Y Queue Entity ر2 7 آ ?! ا.اآ.وا ك اN9 ا2زاT " وS" ا ا29 Turn هGPSS SEIZE M " اآ ! ا. ك ا2 دH 6 واN M " S J ل2 ! دM " ايR 3دي إA9 &ل ا2 ا%9 SEIZE S :ا كO ل اYO إ3; S9 ا. وه.-ا إذا و SEIZE DEPART S J M9 &; اآ. ك اO ,[ اFacility ,U اSEIZE MYO9 M " د انH M O9T رN@ ان ز ! ا6T Turn ر2 7? ت ! آ ?! ا 6 إR H g وذDEPART .اآ.ق ك اY ! اGا ADVANCE ,U إام ا3; M " &JY9 ي.آ ة ا ل ز ! ا2C 3; %/ 9 ADVANCE S J @د ل, X 5±3 اآ. ك ا.e9 , ا5. ه3; وU UY %I J 3اآ( وا.) ك ا , J YI ,2U g وذADVANCE S J 3; , إ, J ا أ6T .RHO ا . :6T آ ىBlock operands S : اM RELEASE 5;2 ن2/I P ( اآ. ) ك ا,U إ;اغ ا3; M " S9 RELEASE S J SEIZE S J 3; ل2 g ( وذM " MYOI 3/ TERMINATE .اآ. ! ك ا5آ ة " ور ! اM " ا, إزا3 هTERMINATE S J , U :إ=اء اآة ! ا ] إ ر,?ة ا.; ا3; ، " ري9:I 2Iآ ة و 508 ي اHI , ات ا27ا File / Open ار إ ر2 ر 'وق ا2U TURNSTIL %X Open آ ة إ ر اء ا-@ Command / Create Simulation إ ر%X Command / START ـ1 ار ال2 'وق ا3; 300 wYV إ%X OK RHO 300 ورM[ 9 ا. وهTERMINATE S : M " 300 آ ة ور default ي: ا9: _ ا3 إ9:I , / GPSS م2:9 آ ة ا3UI ء اU إ.اآ. ك اO !/ 9 3 وا9 ر:ة ا.; 3; 3I ذاM/O 9: اUN9 وTurnstil.1.1 3 اreport file ! Report إ ر%X ,?ة ا.; ! اFile / Open رg وذWJ اي و3; UI هO . Files of type 'وق ا@ رات U: %X clipboard d ا,62 3 إU SH9 U: ص وM/O GPSS 9 ر:I S/I word processor آ تI ] اي3; 509 :g1 اJ1# %J رRHO ل ا2 ت, X 2134.023 ا " ري ي أن9: ا3; End Time , J ! g وذJ ,` ]? 37"9 آ ة ة اي S J ا9/I ) اآ. ! ل ك ا300 I ق أو27IT DEPART وQUEUE Sا2J ان6T ( هةN ا,?ا2O" ! G و اw:; ر2 7 ا3; رN@ ز ! ا%U MH9 ! " ان ا3"9 ا. وهADVANCE ءGH ا3 إ9: ا3; N إذاTurn 3 اQueue Entity ر2 7 آ ?! ا3; 3/ا !"HO دJ ي ان اQUEUE Turn W I وQueue Entity ا ص ـ . :6T اىM?ف ا2 . b ا. وه3 2ر ه2 7 ا3; !9N ا : اآة0دا ي و. واending condition of the simulation آ ة ا,9 U , 6 _O/ مN ,9 إ " ا ` ت ا"دN SHOW 0ف م ا2 g. ا " ري9:ا ;2 U ا@ام وي أي,U U اP6 (SNA) System Numeric Attributes ., ة ا. ه3; إ ر، , م اN ا, 3 إN Tاو Command / SHOW ة.; 3; status line , اw 3 OK wYV إ%X AC1 Sار أآ2 'وق ا3;و 2134.023 3 ه, م اN ا, ى انModel Window ذج2 ا اءG-e ك ) آO ل اYO@ 3/ ! اGء ! اGH ا37"I 3 واutilization اآ. ك ا, "; 0 ر ا-2I (_! ا Command / SHOW 689.67 , : ا37"9 ا. هOK إ ر%X FR$Turn Sار أآ2 'وق ا3;و _اء ! اG- آ37" 2 ( وهFractional Busy Time) اآ إ ر. ك اO !'ا2"! اHO د د اH9@ 510 Command / SHOW 300 ن2/ RJ2 2 وآ هOK %X N1 Sار اآ2 'وق ا3;و إ ر، ت2ن ` " اhا Window / Simulation Window / Facilities Window T2YO اآ آ ن. ان ك ا6 ( UI 92 Mة ي آ.; ت ) آ اUة ا.; 3; ان6T ( idle MC ) ل2YO ^ آ ة آ ن ا,9 U 3; & واWJ2 ! ا70% 3ا26 ايU/ 9 T( و,7O ^ ر دي أيU2 ) ,2YO ^ اآ. ك اO ,[ ا,Uا M " إ ر،! " ا-29 !9 ا3 ةN 3: Window / Simulation Window / Blocks Detailed View of the Blocks Window Sا2:ة ا.; M ` اN ا7"9 ا.وه 3ل إ2 ول ا9 ا2I 301 %J رM " ن ا0 g وذwO ;" ل اوM " -29T , ا6T ! ان/ I M ` اN ا3; . مN ! اN U اJ 300 %J رM " آ ة وان ا 3/! ا"د ا9 Sا2:ة ا.; اN ا.آ ة نh ا.RJ2 2آ ة آ ه ا ء اX اSا2: 3/ل ا2 اd9 رI هO ا3; وا9 ! " ! ان ا: ! ا/ 9 2 وهS :ل ا2 .Sا2:ة ا.; ^ا ة ا" رات.; f أ. اى.;ا2 ! لU إN آ ة اء ا-ف " إ2 نhا إ رExpressions Window ,9Hا Window / Simulation Window / Expressions Window S اآLabel , 3; و,9Hة ا" رات ا.; 3; Number of people !"HO هة د اO ! / ا. هN3 S اآExpression field ا" رة, 3;و ;29 & إذ ا,2U M/ ا تR - ! !/ 9 & اGPSS اص2 ! .اآ. ك اO !9ا ر 511 3 %X View 3 wYVن أh ا. ? ت/ ا, 6 _ I 3 ? وا:I Y 50 ! [اآ Memorize ا.آ ة ;ن ه ` ا f9 ا. :6T U ! إا/ 9 3` ا" رات وا6 ! / 9 ا.وه .ام ة ايz ` ا" رات ة ا" رات.; 3; .اآ. ك اO رN@ر ا2 C 3; ! "! اHO "د اf9 اN د S اآLabel M:6 3; و,9Hا Q Content , J _f وااMemorize وView wYV إ%X Q$Turn S ا" رة اآ, 3;و S اآLabel field G ا, 3`; اآ. ر ك اN@ ز ! اw2 هةO ,[ X %X Memorize وView 3 wYV إQT$Turn S ا" رة اآ, 3; وAvg Wait OK ,? ا, ? : ر ! اg وذ, ? ت ا اآ 'وق3;و 6@ن ! ا " ! و ` اh ا Command / START 0 و إ ر اOK %XCommand / Clear 25 RHO در اY9 36 يHI 3آ ة وه ه اOI ف2 OK %X و25,NP ـ1 ار ل2 ا ,9Hة ا" ا.; M`J اT! او/اآ و. ك اM[ I 3 ا,U اSJ ا.اآ. ك ا (' ا,2`: !/I % ت ) إذاUة ا.; 3 إNو Window / Simulation Window / Facilities Window ت إ رUة ا.; 6 ة اى و25 U?ا- آ ة أ ا Command / START تUة ا.; M`Jآ ة ا ء اU إOK %X ! و25,NP ـ1 ار ل2 'وق ا3;و Facilities Window 512 ., X 5±3 ! T RHO ا, , X 7±4 اآ. ك ا. ث اذا ا9 ن ذاhى ا 3; : ; ه3 ا%: " ا ء اY Custom Command 0ف م ا2 إ.ذج2 ا Command / Custom ` ح ا@د لwYV ا%X In_use EQU 7 ول0 ا7 ا3; Sار اآ2 'وق ا3;و S واآ3 ا7 ا3 اM:; Range EQU 4 U J 3ات اYآ ! ان اe SHOW 0 إذا ارد إام ا/ 9 OK wYV ا%X 3; وCommand / SHOW إg ذ%9 _ ي آ%: ا6 ;" ; [ اW 6 J Status , ا7 3; 4 , : ه اO انSH9 OK %X Range Sار أآ2 'وق ا . f9 أJournal Window ة9Hة ا.; 3; و,?ة ا.; Line %X Command / Clear إ رADVANCE Block 9H اS : ث6 ى ذا ، أ a ,و0وط اOآ ة إ ا ا, 6 " و,? 6@ن ` ا"دادات اh اOK ا6ا2 ! اT 300 Sار اآ2 'وق ا3; وCommand / START إ ر ة ا" رات.; a; ا%X آ ة ا3UI 6 N إOK %X Window / Simulation Window / Expressions Window Memorized Expressions box آ. 'وق ا3; ,X[ ا" رات اMف ي آ2 ل2C 3 J ان أ6T OK ن إh رة اM/ View 3 وExpression 3 wYVإ 3; AC ! ان ا9 ا. وه3ر ا2 7 ز ! اw2 f9 ا،&: ! 3ن اh اa'ر ا2 7 M " اS9 J ا.! ه/ب و27 اWJ2 ا3; !"HO اR - ل2 د3دي اA9 J , ا .!"HO ! ا ةXe ا%:ء ا J إSH9 آ,; ا3 اR-9T ]? ا5. ت ان ا@ف ! هX إSH9 SH9 آRESET Command 0 ام اg وذ,? U? ت ا 6@ ! ا,9وط ااO 3 6 3; ر2 7 ز ! اw2 ANOVA !9 I M م: رب واHI اء ة-@ w7 ان .اآ. ك اO ,` ا, ا3 ز 513 8 94آة ;م ه# -2 :/BJض ا2 M آM I ! ا رج3IeI 3 ت ا/ ا.!-! ر7 ! ن2/9 w _I م هN قYI .,:J د5±1 " ورS7" ا9 S 7 ;ن اT2YO w إذا آ ن ا., X100±60 , / @آ لS 7 ا,JY9 ي. ! ازم اG اR9ز2I ,و- ب27 ا.,:J د3±1 , / ا ؟, / 200 ب @آ ل27 اWJ2ل ا2C % آ., - :g#6ض ا2 ; GPSS World Sample File - TELEPHON.GPS, by Gerard F. Cummings ************************************************************** * * * * * Telephone System Model * * * ************************************************************** * Simple Telephone Simulation * * Time Unit is one minute * Sets STORAGE 2 Transit TABLE M1,.5,1,20 ;Transit times GENERATE 1.667,1 ;Calls arrive GATE SNF Sets,Occupied ;Try for a line ENTER Sets ;Connect call ADVANCE 3,1 ;Speak for 3+/-1 min LEAVE Sets ;Free a line TABULATE Transit ;Tabulate transit time TERMINATE 1 ;Remove a transaction ADVANCE 5,1 ;Wait 5 minutes TRANSFER ,Again ;Try again Again Occupied ************************************************************** 514 : ذج1 ا9Hو STORAGE ن2` !7 M[ W"V و2 , آ," وStorage Entity Sets نG آ ? ت ا,2 H .3-ا ر TABLE ي. ت وا/ ! اG اري/I Rf 37"9 P فTable Transit 3 :@ول اHا 3; ! G ـ " اSNA ,9 ا"د, : ;ن اM " ء اU إMJ ة., O ا3 `I "ض9 ! &? U إ36 وS7 ا3; &? ! S 7 قY اWJ2 اM[ I 3ول وهHI M1 " مNا .ا ث GENERATE ., X 100±60 M آ29 , / M[ 9 M " GATE R - ن2/I (ل2YO ) Occupied S J 3 اM " اM9 GATE Block S J S C M[ I 3 وه,b نG آ ? ت ا,2 H ن2/I ث9 ا. وه,2YO ط27ا .S7 إ دة اMJ رN@ & اSH9 ENTER GATE ! ل9 M " ا@ام ;ن ا3; نG ات ا6 ! و1 او0 W إذا آ ات6 وR - W ! اى ا إذا آ9GI ة6م وI ا.U وENTER Block 3 وإBlock ا ;ن ور اي.U وGATE Block ! لM " ور ايa 9 !; ,2YO !9Gا . حH U 9 ا%I , / M[ 9 ENTER Block ! لM " ADVANCE 515 M[ 9 ي. واADVANCE Block S J MI (, / ) اM " ;ن ا5 ور, 6 3; .آ ة ز ! ا9 36 S : ا3; :9 و, X 180±60 قYI , / LEAVE !9G ا,2 H ات6 و6 اM"H9 ا. ;ن هLEAVE Block S J M " ل2 د .9- 3- رw ;2I M[ 9 , ( أي اM " ;ة2 TABULATE ت/ ا, ز0 اري/ اRf ا3 ا, / ل2C _f9 TABULATE Block S J Table Transit 3; ," H ا TERMINATE .S7آ ة " إآ ل ا ( ! ا, / ) M " M9G9 TERMINATE Block S J ADVANCE ول6 J ن2/9 Occupied , " %" واADVANCE Block 3 ا3Ie9 ي. اM " ا Storage نG آ ? ت ا,2 H ! ( 3- رw ) !9GI ة6 و3 ل2 ا3; MO;و . ة اىS7 ول ا9 انMJ ,? fJ SH9 ي. ر اN@ ز ! اM[ I 3 وهEntity Sets TRANSFER , " %" اGATE Block S J 3 اM " M آM9 TRANSFER Block S J آ ? ت,2 H ! !9GI ة6 و3 ل2 ا3; M " ول ا9 ه كP6 Again أت3 ت ا/ ا ا2[ 9 ! " ء اTA ه., / اSC "9 S 7 ( ان ا3" نG ا %" واGATE Block S J ل ;ن2YO !7 ! اM آ9- S C - إذا و.%I %و , " %" اADVANCE Block S J 3; رNz &9 Again , " GATE S J ?ا.`:9 M " ;ن اeا ا. " ه9:I ? J د5 ةOccupied eI U ث9 وGATE Block S J ! I , - ت ا7 ة اى ا,و 2 ," نG ? ت/ آW-. _I Uط ا27 ان د6h .آ ة 516 Block در اYI %X , / اM[ 9 !/ I % إذا.ط اى27 ,; V& إ9 ي. اX0 ا3 ربHI اء- إMUن ! ا2/ :6T S : ا3; آ ة ? J د5 وا ةN9 U! ا9? " ! ا ور ;ن ا " ! ا, / ت/ د اM[ 9 ود ا " ! هOccupied , " %" اADVANCE Block . UI إ دNI 3ا ,و ت ا/ ل ا2C ! , ` ت2" ]I ف2 TABLE statement ا" رة اري/I Rf ! ! ء/ ; ! " ء اU إMJ ة M1 SNA ,وH ا./وه .%UI / @آ لS C ,JY9 ي. اWJ2ل ا2C ,`/ :إ=اء اآة ار ا ر2 'وق ا3; وFile / Open " ري إ ر9:I 2Iآ ة و Command / آ ة ر اء ا-@ اSH9 ا. و " هOpen ا ر%XTELEPHON Create Simulation wYV ا%X 200 ـ1 ار ال2 'وق ا3; وCommand / START إ ر%X M[ 9 ا. وهTERMINATE Block S : M " 200 آ ة " ور ي: ا9: _ ا9:I , / GPSS م2:9 ف2 آ ة ا3UOK ا,9 U ., / 200 إآ ل .9:ة ا.; 3; 3I ذاM/O UN9 ي. واTelephon.1.1 :g1 اJ1# %J ر, / ء اU@ ت,:J د359.16 ا " ري ي ان9: ا3; End Time , J ! gة ا ?] وذ. ! ه,9J !/ و,` %J 37" آ ة ات اي " إ دة اC200 ل ا`ة2C % ! آ, ` ت2" 37"9 Transit 3 اTable ولH ا3?ا2O" اY ا,:J د9.5 ! MJ اWJY ت ا/ ا%N" ان%^ .& / @آ لS 7ه ا.e9 3ا .!? G ء اV م رSI J 3[ وا/ 5. ت اآ[ ! هJ اوWJY ت ا/ ان ه ك 517 : اآة0دا ي و. واthe ending condition of the simulation آ ة ا,9 U ن طh ا: Expressions ,9Hة ا" رات ا.; ود م9:ة ا.; M`J ا، ي ا: ا9:ا T اوSystem Numeric Attributes مN ,9 " ا ` ت ا"د3 اN Window إ ر،آ ة ا,9 U ! آ ! زeI Window / Simulation Window / Expressions Window , 3;ار و2 'وق ا3; Edit Expressions Window ا" رات9 I ة.; a`I 3 اN 9 ا. هAC1 S اآExpression field , 3; وTime S اآLabel field utilization , "; 3 إN نh اMemorize 3 وView 3 wYV ا،3 ! اGا , : ل اLabel field , 3;ار و2 'وق ا3; (_اء ! أG-e_ )آI Uط ا27 ـ, ا, :ال ا Expression field ا" رات, 3; وUtil ـ, ا ي. ! اG اw2 _f واا دMemorize 3 وView 3 wYVواSR$Sets ـ, ا, : ال اLabel field , 3;ار و2 'وق ا3`; ،_I U اw ,; MYO9 ـ, ا, : ال اExpression field " ا, 3; وAvg. Call Time U "9 ه, "` اOK wYV ا%X Memorize 3 وView 3 wYVواST$Sets Y ! اGد " ا2- ! و%^ ا./ وه83% , "; U ط27ء ! ا_ وي ان اGHآ . "ة ا.; Y .ل2: ^ "9 ر2 7 ا3; eم ;ن ا إ ر، ت2 ا.;ا2 " a` Window / Simulation Window / Storages Window ا ي6T Storages Window Detail View !9Gة ا.; M ` N 37"9 ا.ه (Min and Max values) " ! ا" ت ا` وا. 83% f9ط ه ا27 ا, "; ط27! ا 2 او1 و0 U; W ت آJآ ة آ ن ه ك او ا3; ن ا م ي انG ولHة ا.; ; إذا.J I 3 ا%: ه اO ة.; اM` ا3; G د ا2 " إم ا،,2YO إ ر، ت/ ا, /I , ز0 اري/ ;ى ا رج اTable Window Window / Simulation Window / Table Window 518 ا وق3; Transit , /آ ة ; ي ا ا5. ه3; w:; 6ول وا- -29 & اP6و ! زw2 ،M آM/O ولHي اI 36 ة.; ا/I ! آeI OK إ ر، ا Expressions "ة ا.; 3; ST SNA ! ـ2ه ة.; 3; هO آ,:J د2.99 2 ت ه/ ا آ,:J د14.27 2 ه, / ! إ دة اG اw2 !/وWindow إذا, / اSC ا @ دة- M92C ! ا ز2f:9 ! 7 أي ان اTable Window ولHا .ل2: ^ ا. وه,2YO ط27 اW 'ف وآ إ ر، Transactions ! ` ا%ن اي هh اN Window / Simulation Window / Blocks Window SC وا إ دةN9 ن2 ز15 -29 & ا6T Blocks Window Sا2:ة ا.; 5.ه Entry Count ل2د د ا2 3; S :ل ا2 دd9 رN ا،%UI / Figure 2—1. Blocks Window Detailed View Showing TRANSFER Block. ADVANCE S J ا2! د9. اTransaction ! " د ا3 اN ث ه ؟ ا9 ي.ا 6 ., / 200 w:; W9-! ا/ و561! ( ت/ ر إ دة اN@ ) 3 [ اBlock 519 آة ي اH ف2 Ctrl+Alt+1 aI ` و امBlocks Window Sا2:ة ا.; ! C ث؟ ة9 ي. هتM ه، ة20 او15 g ذM"; إ، 9و9 ة27 ة27 ةS7 ر و إ دة اN@ ا%U و,2YO ط27وا اH9 S7"ون ا9 !9. ت وا/ .;ا2 اR - M`: أ., 2 ر.;ا2 ! ل ةUI هO اء و-م دة إ2: ف2 .ات Model وJournal وBlocks .;ا2 ى R : هN`6 3 ا%: وExpressions Window ,9Hة ا" رات ا.; a; " Active wO اM " ا%J رf9 ا2ي ه. واcall number , / ا%J ر,; Vإ إ ر، Transaction number Window / Simulation Window / Expressions Window , 3; وCall no S اآLabel field , 3; ا" رات و9 I ار26 'وق3; MJ وMemorize 3 وView 3 wYV اXN1 S اآExpression field "ا M/; ا.U وTآ ة ا ا3; هN`6 3 وا: ,2` ا" رات اR- ة.; ` ل اJإ " اMر آ2U " أا وView 3 %X Expression 3 wYV إ,2` .,? رة 6@ و `ا"ادات اTransactions ! " اM ! آOK 3 wYVا إ رMain Menu ,?ة ا.; ; ! ا Command / Clear ذج2 ا3; 0 اS :ق ا2; ا` رةA ك6 Blocks Window Sا2:ة ا.; 3;و The 3 وThe TRANSFER Block 3 wYV إTRANSFER S J 2ي ه.وا وJournal وBlocks ,X[ ا.;ا2ك ا6 %X Place Icon in the Debug Toolbar إ،ح2V2 UI هO g/ 9 P Expressions Command / START _J2 آ ة اOK wYV وإ1000,NP ـa Continue آ ة اM أآ. ^ا7 H9 % S 7! ان ا9 ا. وهS :ل ا2 ,و آة ا6ا2ار ل ا2 'وق ا3;و اول اU; _J2I ةM آ3; ة ات, " ا5. آر هCtrl+Alt+C 3 wYf gوذ S C 3 آ ن M_ آJ2 ا3; I ف2 آ ة 520 اStop Condition _J2 ط اW I Journal ة9Hة ا.; 3; trace messages R اM? ه رOI ف2 وN9 ان, / ا Stopped _J2 اM " Transaction number M " ا%J! رI 3 واWindow ذج2 ا3; w:; 6 واGENERATE Block 2I S J -29 & اP6 ، Transaction ه كW _ و; إذا آJ2I ان, / ا3 ة% آM " ا%J ر,7ا2 ان ي/ ; ., [ ة ا,`J2 ت/ The 3 wYV إBlocks Window Sا2:ة ا.; 3`; _J2 ط اM9G نhد ا .;ا2 M`J ا%X The Remove Icon in the Debug Toolbar 3 وTransfer Block Expressions وBlocks . Ctrl+Alt+C 3 wYf gآ ة وذ اء ا- إ3; ا Storages Window Non- ة.; ! لgي وذHI 3آ ة وه اSJف ا2 إDetailed View Window / Simulation Window / Storages Window إMain Menu ,?ة ا.; و ! ا Edit / Entity Details Non-Detailed View ة.; M"` إ ر، 9 2ة وهe ت ا/ اري/ن ا رج اh ه اO Window / Simulation Window / Table Window 3 wYV اg. هNار ا2 'وق ا3; د2-2 & وإw:; 6ول وا- -29 & اP6و OK ، b WJ ا& اي وN! ا/ 9 و3/ 9اري د/I رجT إ2ه %U S9 ا." هC ة و, ا3 M Transit ول اHا 9T !? G ! ا9 ول انH ! اaf9 . جG@[ ! ا/ا 521 wYV , "; !9Gة ا.; M"- إ. نX ! إT ط27 4 3ط اآ[؟ آ27 `V ا2 ذا ا ر%X OK %X Command / Clear ا ر%X The Storages Window 3 Sار اآ2 'وق ا3; وCommand /Custom OK %X Sets Storage 4 3; وCommand / START ا ر، ى ذا ث._I Uط ا27 ا "ل د.ه OK wYV إ%X 1000 ـa ا6ا2ار ال ا2 'وق ا & اH , / ل ا27 اري/ ا رج ا3 اN ، [ ! ا/ MJ_ اI Uط ا27 , "; S J ه انO M ` اU/ 3; Sا2:ة ا.; 3 اN 2 RJا2 ا3; ،[/ Mf;ا و ان9 و.S7 ج إ دة ا9 % ! 7ن اي ! ا0 g د وذI9 % TRANSFER Block g وذ,? 6 إ,:97 ا. ه, هSH9 ,:: ا3; .,: اM آO اM آWط ازا27 ," ار ANOVA Command 0 .]? رن اJ_ وI ط ه27 ,XX ب- :!9 I 522 دور.=> ا$4 آة ;م# -3 :/BJض ا2 .ة6 و1000 ! ن2/9 3?ون ا@ اG ا. 2 ا,9 دور,"- ا,7ا2 & %/ 9 3? U ] ونG M9"I اي ان،ة6 و1000 2ف هU ون اG ا. ل وي6 ة و6 و63 و40 ! Y9 3 2 اS7ا ة او6 و800 2د ه2-2 ون اG ;ذا آ ن ا.ة6 و1000 د و2-2 ون اG ا`ق ! اS7 %9 ونG ا M'2 lead time م: ز ! ا.ع2z م9 ا, مN M "I ,آO ا.ع2T اg. ونG "ل ا9 !; [اآ ونG : ; إذا آ ن ه ك ايIم و29 200 ون ةG م اN 3 آ6 .6ع وا2 ا2 ه,7ا stockouts :g#6ض ا2 ; GPSS World Sample File - PERIODIC.GPS, by Gerard F. Cummings ******************************************************************* * * Periodic Review Inventory Model * * Time units are in days * ********************************************************************* * Definitions of non block entities RMULT 39941 Stock STORAGE 10000 ;Warehouse can hold 10000 Stock TABLE S$Stock,100,100,20 ;Table for inventory amts Orderqty VARIABLE Target-S$Stock ;Order quantity Demand VARIABLE RN1@24+40 ;Daily demand Target EQU 1000 ;Initial stock level Reorder EQU 800 ;Reorder point ********************************************************************* * The reorder process GENERATE 5,,,,1 TEST L S$Stock,Reorder,Skip ;Is stock < Reorderpt ASSIGN 2,V$Orderqty ;Parameter 2=Order quantity 5 ;Lead time is 5 days Stock,P2 ;Stock increases by P2 Custwait ADVANCE ENTER Skip ;Review xact, Priority=1 TERMINATE ;Ordering xact is finished ********************************************************************* 523 * The daily demand decrements quantity on hand GENERATE 1 ;Daily demand transaction ASSIGN 1,V$Demand ;Parameter 1(P1)=daily TABULATE Stock ;Record daily stock TEST GE S$Stock,P1,Stockout ;Can order be filled LEAVE Stock,P1 ;Remove demand from stock TERMINATE 1 ;Daily timer Stockout TERMINATE 1 ;Daily timer demand ********************************************************************* * Initialize the inventory GENERATE ,,,1,10 ;Set initial stock ENTER Stock,Target ;Set init stock level=target TERMINATE ;Xact is terminated ********************************************************************* : ذج1 ا9Hو RMULT 3?ا2O" اY اXeI سJ / 9 اة2 اY .,?ا2O"اد اT ا2 اة2 Rf9 0ا ا.ه GPSS 3; ANOVA إام ا3; س0 اM/O9 آ ة ار ا/I ،W ا STORAGE [/ ا3 وه10000 ," & W7 اStorage Entity Stock ونG !9Gآ ?! ا !/ 9 & اP6 warehouse نG ,/ ا," اM[ 9! ا" دي و9Gى ا2 ! Storage نG ي ا2 .فU ون اG ! ا9G9 ون نG ى ا2 ا ح 3 ون اG ي ا2 ا ;ن.U .3 ون اG ى ا2 M[ & ف2 ا م S$Stock 3 I SNA ,9 م دN ,` آ ة آ ; ل ا2 TABLE 3 2ون اG ى ا2 d9 رI R H RV ووStock 3 9 ولORDERQTY 524 دة2-2 ون اG ا, آJ Target فU ون اG ى ا2 3 وهUC R G ا, /ا stock on hand DEMAND اG 9 @ M " ا.,9ت وT 6 ة و6 و63 3 ا40 ! Y9 و3 2 اS7ا 3 إ999 و0 لH ! ا3?ا2O" ا%Jل ا2 9 2U; modulo arithmetic , : " ا3J ا , M ]I ا3?ا2O" ا%J ا40 ,; V ,? U ا,H ا3 M و23 و0 لH ا V$Demand ا ةSNA مN ,9 ا"د,` ! ل ا TARGET 9 وRV وJ وTarget 3 9 وtarget stock level فU ون اG ى ا2 S7 إ دة ا,:9C 3 ربHI اء- إMU ا0 اM"H9 %: إام ا ء1000 reorder scheme REORDER آ ذآ800 ـ,9 وW"V ووReorder و هreorder point S7 إ دة ا,7: S7 إ دة ا,:9C 3 ربHI اء- إMU ا0 اM"H9 %: إام ا ء: reorder scheme Transactions ! " اU9 3 اSا2:"ف اI 3 ت اJ" ا3ن إh اN .آ ة اء ا-إ GENERATE ! .آ ة م9 أ5 M ة آTransaction ! " ا29 GENERATE Block S J S J درY9 M " ه.آ ة ا5.U , ة ز62م آ2 إام اSH9 ا S7ون وإ دة اG ى ا2 ض إ رY آ ة ; نhا م9 ا, M آGENERATE .w:; ,- ا TEST 525 , J W ث إذا آ9 ا. وهT وري امV S7 د ; إذا آ ن إ دة ا9 TEST Block S J ?& ونU إ%9 وSkip 3 إG`:9 M ااM " ;ن اT وإReorder ! MJ اS$Stock .SC آ ة إ دة ASSIGN ;ن reorder condition SC ط إ دة3 هTEST Block S J ,H W إذا آ parameter 2 %J ر%" ا37"9 ا. وهASSIGN Block S : ! ل ا9 M " ا . UC " د9 3 ا, / اM " ا ا.Unumber 2 ADVANCE S7 م: ز ! اM[ I 3آ ة وا م9 ا5 N9 S7_ ط إ دة اO/9 ي. اM " ا .S7ا ! ا2" 9T !9h ان ا " ! ا6T order lead time ENTER 3_ اf9 وENTER Block S J M9 M " م ;ن ا9 ا, " S7ل ا2' و parameter number 2 2 %J ر%" ا3; دة2-2 ا, : اS$Stock , J TERMINATE ) ادTermination Count ءU@ ص اد ا: ون إTransactions ن2 " اU9 (آ ة ا,9 U م "! ط9 ءU@ا GENERATE آة م29 M ة آ2I ،3 2 اS7 اM[ 9 M " ASSIGN M " 1 %J ر%" ا3; RV29 3 2 اS7ا TABULATE 526 : I MJ ونG 3 2ى ا2 اري/د ا رج اH9 TABULATE Block S J تC اي TEST S7 ا: 9 ; : - ;ذا وstockout ونG ا: ! : 9 TEST Block S J Stockout ـ%" اS : ا3 إM " اM9و LEAVE م2:9 و3 2 اS7ار ا: S$Stock ! :9 M " ون آ ف ;ن اG ى ا2 إذا آ ن ( operand B ) B %" آ1 %J ر%" "! اI وLEAVE Block S J &2 ا.U TERMINATE م29 ,9 U اA 1 ار: Termination Count ءU@ اد ا:9 وM " اU9 آة TERMINATE 3 29 M " " إذاw:; M9 Stockout G %" اTERMINATE Block S J &:: I !/ 9T 3 2 ا,C ان GENERATE ونG ى ا2 آ ة ء ا,9 ا6 واM " 29 GENERATE P [ اS :ا ا.ه !9h " ! اM79 T 3/ ,f;و& ا ا ENTER Y ENTER Block S :م ا9 initializing Transaction 3? اM " ا آة ا,9ف اU ى ا2 S$Stock , J TERMINATE 527 3U9ا " Mا ? 3ون إ :ص اد ا@ Uء. N6ت: Y / 3ت ا ,Hذات ا R7ا" م ;ن " a 9 GPSSة " ! 2ا 3; -ا آ! ` 3; ,ا آ ة اي ,Nز 3; .,ه.ا ا 2ذج 29ا " ! آ ! Mا[,X 2Jا GENERATE Sوا ,XX 2I 3ا2اع ` ! ,ا " ! 3`; .اGHء ا29 0 " Mآ , Mا 9م Mا ,"-ا Gون وإ دة ا S7إذا ا 6ج ا . 0و " ,ا 9م M 9ا S7و R RV29ا Gون 3; .اGHء ا0و wا " ! ه 2[ 9ا ا S7ا 3 2و 29ا ; 3إزا ,6ا62ات ! ا Gون إذا آ Wا , /آ ; ،,و : I MJ !/اH9 ,7ول 2ى ا Gون ; 3اHول . Stockا " Mا 62ا 3; 2اGHء ا, J Rf9 0 ا Gون اا? 3ـ 1000و6ة و & 37"9ا 3ا;e 36 ,fآ ا& 2/ن اول " wO M Active Transaction و6ات ا ! Gه ه 3ا2م .ا 2ى ا !? / 3ا Gن Storage Entityا 2 M[ 9 Stockى ا Gون ا 3وه 5.ا9 , : SNA ! U Mا S$Stock اHول ا R H9 Stockرج /Iاري 2ى ا Gون ا .3 2ا %:ا ة Targetو - ! U ! " M[ I Reorderا .Uا ا 2ذج ;ـ 2 RfI Targetى ا Gون ا Uف و 2 RfI Reorderى ا Gون ا.ي S9إ دة ا .S7ام Yات إ YI ,2U / 9 ,ه 5.ا " _O/ 3/ %ا? Mاى. إ=اء اآة: @-اء ا آ ة و 2Iا 9:ا " ري ا ر File / Openو;' 3وق ا 2ار ا ر %X PERIODICا.?" Open wYVن 2ا آ ة ،ا ر Command / Create %X Simulationا ر Command / STARTو;' 3وق ا 2ار ل , : 1 %X 200ا 3U OK wYVا آ ة " ،3 29 SC 200 : Iإ Uء ا ا ] 3; 9:Iا _ . Periodic.1.1و"9ض ا. ? :I 9: J1#ا:g1 528 آ ة 29 : ! اي3 "9 % و, 2 ت ا7 اM آ: 9 ونG م اN انaV29 Stock ولHا M ! ان9 ا. وه300 ! MJ ا,وH 3 29 ى2 , J اي-2IT & ا6 آoutage .V مNا : اآة0دا هتO ة ا" رات.; ء3U T او. ا " ري9:ي و ا.آ ة وا ا,9 U , 6 _O/ ا ر.! J Window / Simulation Window / Expressions Window S اآLabel G ا, 3; ا" رات و9 I ة.; 3; No. Stockouts wYV اstock outages هO "H ا. هN$Stockout S ا" رات اآ, 3;و maximum stock level 3 J0! ا9Gي ا2 _f Memorize وView " ا, 3; وMax Stock ـ, ا, : ال اLabel ار2 'وق ا3`; _f Memorize 3 وView 3 wYV اSM$Stock ـ, ا, :ال ا , : ال اLabel , 3; current stock level 3 ون اG ي ا2 f9ا 3 وView 3 wYVن اh اS$Stock ل ـI " ا, وStock ـ, ا 3 ا" رات ا, وDay 3 اG ا, ^ ،م2 ا%J_ اا رf Memorize 3; a- N OK 3 wYV أا اMemorize 3 وView 3 wYV ا%X AC1 ونG اstockouts ونG ا: د, J ! هO آoutages ونG ا: R آ 3 ا2آ ة وه ون ل اG ي ا2 , J 3 J! أ9 Max Stock 3 J0ا .RJ2 & رM 3 2ون اG ى ا2 اري/ا رج ا Window / Simulation Window / Table Window OK wYV إ6ول وا- -29 &ا 529 و ,G اR? f ا3; M7" ا ل اM[ 9 ا. وه785.45 2ون هG ى ا2 w2 ان6T Stock ول- !N6 آ ة ي ةHI U"Hآ ة و اR ، مN ا,`/ س: 2وه ف أ ا2 ،ة ا" رات.; هO ! م و2 ا%J رSJ اf9ا 100,NP ـ1 ار ال2 'وق ا3; وCommand / START إ ر.م29 100 م29 ,b ل اR HI 3 ه ا ت وهO ، OK ا ر%X (9:I 2IT 3"I NP) ءGH ! اM " ا,9 اا،,7 ا- آ ة , اا, " ا.MYO ! ا,; V@ا م29 M آ3; ن.?" . Stock 3 اStorage Entity نG أ آ ?! ا9 ذج2 ا3; P [ا 3; 29 SC إ دةM " م29 Mذج وآ2 ! اwو0ء اGH ا3; 29 SC M " ولH ا3I.; M`J ا. م اى9 ا, " T إ: 9T S7 إ دة ا.ذج2 ! ا0ء اGHا . Expressions و ا" راتTables . ا ر،M ` اUO ا3; Sا2:ة ا.; نh اa` Window / Simulation Window / Blocks Window ! " ل ا2 3/ا ! ا"د ا.ه M ` اUO ا3; Sا2:ة ا.; M/ و ا رOK ا ر%X Command / Clear ا ر، آ ة ي ا- d9 رI هO ف2 6T OK wYV وا100,NP ـ1 ار ال2 'وق ا3; وCommand / START 530 _ ا C Oت ; 3اG-0اء ا ` 3; ,ا آ ة ،آ OIه ,XX -2Iا2اع `! , ا " ! - :!9 Iب ` ا Gون ا Uف إ 800 3و6ة و ,7:ا S7إ 600 3و6ة. Jرن ا ?]. 531 >ن/4 @ /4 7آة ور# -4 :/BJض ا2 ةGU-0 overhaul ,9 اور, 6 إ'ح واM ن29G`I ةGU- إ'ح ا,م ورI ,9 اور, ا. U6 3; ,"9 ت6' م: ?! وGة اGU- ا, ة و-A ا,ر2ا ,"9 ت ا6'@ ا. U @آ, 10±1 قYI و, 40±8 Mأ آI ,ر2ة اGU-0 15±5 قYI و,:J د90±10 M آM I و9ر2; يHI ات2J M9"I ز او2; YI M[ قYI و, 5±1 M آM I ,9 د, ' ج إ'ح وI 3 ?! اGة اGU- أ.,:Jد ةGU-0 ,9 اور, ! اa ا3; ,f;0 اU !? Gة اGU- أ. U? U@ ,:Jد120±30 .,ر2ا .م29 50 ة,ر2 اM آ6 -3 .!? G ا, 3; e واa اM , "; د6 -4 :g#6ض ا2 ; GPSS World Sample File - TVREPAIR.GPS, by Gerard F. Cummings ***************************************************************** * Television Maintenance Man Model * ***************************************************************** * Repair of rented sets, one each week * * Time unit is one minute * ***************************************************************** GENERATE 2400,480,,,1 ;Overhaul of a rented set QUEUE Overhaul ;Queue for service QUEUE Alljobs ;Collect global statistics SEIZE Maintenance ;Obtain TV repairman DEPART Overhaul ;Leave queue for man DEPART Alljobs ;Collect global statistics ADVANCE 600,60 ;Complete job 10+/-1 hours RELEASE Maintenance ;Free repairman TERMINATE ;Remove one transaction ***************************************************************** * On the spot repairs GENERATE 90,10,,,3 ;On-the-spot repairs 532 QUEUE Spot ;Queue for spot repairs QUEUE Alljobs ;Collect global statistics PREEMPT Maintenance,PR ;Get the TV repairman DEPART Spot ;Depart the 'spot' queue DEPART Alljobs ;Collect global statistics ADVANCE 15,5 ;Time for tuning/fuse/fault RETURN Maintenance ;Free maintenance man TERMINATE **************************************************************** * Normal repairs on customer owned sets GENERATE 300,60,,,2 ;Normal TV Repairs QUEUE Service ;Queue for service QUEUE Alljobs ;Collect global statistics PREEMPT Maintenance,PR ;Preempt maintenance man DEPART Service ;Depart the 'service' queue DEPART Alljobs ;Collect global statistics ADVANCE 120,30 ;Normal service time RETURN Maintenance ;Release the man TERMINATE ***************************************************************** * GENERATE 480 TERMINATE 1 ;One xact each 8 hr. day Day counter ***************************************************************** * Tables of queue statistics Overhaul QTABLE Overhaul,10,10,20 Spot QTABLE Spot,10,10,20 Service QTABLE Service,10,10,20 Alljobs QTABLE Alljobs,10,10,20 ***************************************************************** :ذج1 ا2 9Hو GENERATE 3; S :ا ا. ه3; 2I ,9 دور, ' 3 ج اI 3 ا,ر2ة اGU-ا ا2[ 9 !9.ا " ! وا ,I &92 اوMJ ا37"I ت6'@ ا5. ه.? J ن2/ ! Gة ا6 و., 40 M آw2 ا .1 533 QUEUE ر2 7 ?! ا/ QUEUE S J .? ت `دة .,9 اور, ة اGU-0 اء, ? ت از 6 إR H QUEUE ! J مI ه 6 إR H9 Overhaul 3 اQueue Entity ! ا آ3; ر/9 Alljobs 3 اQueue Entity ر2 7 ?! ا/ 3 [ اQUEUE S J .ة.U ى ! ا ت آ0اع ا2q ? ت 6 إR H9 3/ اى SEIZE ,U ?! ا/ M[ I a اM إه م3 M I وNI 3 ا,9 اور, ت ا6'إ Maintenance ا ةFacility Entity DEPART نX إ.5 رN إWJ و3U9 a اM ,UI 5 إ3 ,9 دور, ' M " M 9 .,` Queue entities ر2 C !? / رN@ اWJ وMHI DEPART Sا2J ! ADVANCE .,:J د600 ±60 ,9 اور, ز ! ا3 آ9 S :ا ا.ه RELEASE M 3; M[ ا,U آ ?! اM 39 U[ 9 ي. اM " ;ن ا,9 دور, ' إآ ل .أI ان3; اى, a 9 a ا TERMINATE Termination ءU@ ص اد ا:ن إ2 آ ة و ! اU9 ,9 دور, M[ اM " ا Count GENERATE 534 M آw2 ا3; S :ا ا. ه3; 2I ,9ر2` ت ا6'z ![ اTransactions ! " ا .,9 اور, أ ! ا,f; أ%U و,:Jد90 QUEUE ر2 7 ?! ا/ QUEUE S J .? ت `دة 6 إR H QUEUE ! J مI ه S J .,9ر2` ا, ة اGU-0 اء, ? ت از 6 إR H9 Spot 3 اQueue Entity ا آ! اى3; ر/9 Alljobs 3 اQueue Entity ر2 7 ?! ا/ 3 [ اQUEUE .ة.U ى ! ا ت آ0اع ا2q ? ت 6 إR H9 3/ PREEMPT ,9ر2` ا, ![ ى ;ن ا " ! اT ا, اع ا2 اM آR7:I ,9ر2` ا, ان ا M 3 M I 3/ PREEMPT Block إءS : ,92ر أو2C 3; ل2 ول اI .,9 او د,9 دور, ' , ايWJA M/O _J2 ا. وهa ا DEPART Sا2J ! نX إ. .5 رN إWJ و3U9 a اM ,U ,9ر2; , ' M " إ ك .,` Queue entities ر2 C !? / رN@ اWJ وMHI DEPART ADVANCE .,:J د15±5 a اWJ و3 آ9 ADVANCE Block S J RELEASE M 3; M[ ا,U آ ?! اM 39 U[ 9 ي. اM " ;ن ا,9ر2; , ' إآ ل .أI ان3; اى, a 9 a ا TERMINATE Termination ءU@ ص اد ا:ن إ2 آ ة و ! اU9 ,9ر2; , M[ اM " ا Count 535 GENERATE-TERMINATE ,9ر2` ا, ان اP6 ،6 ; رق واR ء اGH آ I M "9 ذج2 ء ! اGHا ا.ه ا.U و,9 اور, اw:; R7:I ,9 ا" د, ان اT ا،ىT ا, اع ا2 اي ! اR7:I !f;0 ! اR:I ,f; ) ا2 ,9 و,f; ا,9 د, ' M[ 9 ي. اM " ا37" ; (ىTا GENERATE .آ ة ت8 M آ29 6م وا29 ءf:م " إ9 M " TERMINATE ءU@ ! اد ا1 :9 ا. ه. 9ر2; U9 Counting Transaction " اM " ) A M "آ ة ام ا ل ا2C 3 ة7 a 9 Termination Count START Command ا3; (operand A QTABLE Mر آ2 7? ت ا 6@ ,9ار/I ت-"ف رI Overhaul أ ـI 3 اQTABLE رة ه ا6T . ا " ري9: ا3; "ضI 3 واTable Window ول- ة.; 3; U ? ت 6@ن ا0 Qtables ر2 7اول اH TABULATE Blocks Sا2J RV ج وT .3" اDEPART Block S J 3ل ا2 ? ا:I MHI وT ا,X[اء اG-0 ا.! " ع _ ! ا2 & ءG- M آ.اءG- ة أ3; %N ذج2 ا 3 ; I Uة آ. ه.SI ا3 ,9 ا" د, وا,9ر2` ا, وا,9 اور, اM[ I .a اM M[ I 3 واMaintenance ة ا ة62 اFacility Entity ,Uا .,f; اMJ اW7 ا,9 اور, و ?_ ا S J .آ M م29 M آM " ءU وإ2 gآ ة وذ اWJ29 ذج2 ! ا3`ء اGHا ! ل7"9 ي. واJ ا3; ءU@ "اد اS9 ي. ا62 ا2 ه هTERMINATE ءU@ اد اa 9 آ ة _ اJ29 ي. واSTART Command 0ا .MJ '`ا أو أTermination Count (TG1) 536 Queue entities ر2 7 آ ? ت ا,7ا2 R HI , اع ا2ع ! ا2 M/ رN@ ت اJأو !? آ,7ا2 R HI _? 2 اR H e ت اJ أوService وSpot وOverhaul ا ة .a أ ا9 36 e اw:; a ت اJ أوM OIT تJو0 ا5. هAlljobs ر2 7ا ,U ,:9C ة. وهQueue Entity ر2 C !? آM/ ; هQtable entities آ ? ت .ع2 M/ رN@ ت اJو0 3? :I اري/I رج3 ل2 :إ=اء اآة ار ر2 'وق ا3; وFile / Open " ري ر9:I 2Iآ ة و Command / آ ة ر اء ا-@ ! اh . Open ر%X TVREPAIR ار ل2 'وق ا3; وCommand / START ر%X Create Simulation OK wYV وإ50 ـa ا6ا2ا ا. وهTERMINATE Block S : Transactions M " 50 آ ة " ور ا3UI .M م29 50 M[ 9 ا."ض ه9 . TVRepair.1.1 _ ا3; " ري9:I GPSS S/9 آ ة ا,9 U .9 ر:ة ا.; 3; ? :I 9:ا :g1 اJ1# رN@ ت اJ اوw2 . 78% & "; W إذ آ- M/O T2YO آ نa اM ان69 ه ك اي-29 % .,9ة ا" دGU-0 ا, ,:J د51 و,9ة اورGU-0 ا, ,:J د25 W آ M O9T ا. وه,:J د12 3ا26 3/ ر اN@ ز ! اw2 .,9ر2` ا, ?_ ا2 eI DEPART Blocks Sا2J RV2 اN "C , ت اJاو : اآة0دا . ا " ري9: ا2I آ ة 537 ا,9 U , 6 3 إN رModel Window ذج2 ة ا.; 3; , ? : ! ا،a اM , "; ! آe Tاو wYV ا%X FR$Maintenance Sار أآ2 'وق ا3; وCommand / SHOW . OK مN ,9 ا"د,` ا5.U ذج2 ة ا.; 3; Status line 7 3; ههO 3 ا, "`ا 78% W آ3اء ! ا_ واG-e آU " SNA تUة ا.; a` a اM M[ I 3 اFacility ,U ا, 6 3 إN 3/ Facilities Window N نh ! اWindow / Simulation Window / Facilities Window ر .,:J د52 3ا26 a ز ! اw2 ،ة.; ا5.U M ` اN ا3ا اري/ ى ا رج اOverhaul Table ـTable Window ولHة ا.; ; إذا Window / Simulation Window / Table و ا ر The Down Arrow ر._? 2 ر اN إ, ز0 3 wYVار إ2 'وق ا3; وWindow OK %X OVERHAUL ,9ول ا ت اور-. 538 هO 3/ . ا" ري9: ا3; Overhaul Table ول- 3; ت آ2" ` ا37"9 ا.ه أوSpot اوService ء0! ر ا/ و: ;" ة ر/ ،ىT اQtable entities .!9 ا آ.ك ه9 و.ار2 'وق ا3; Alljobs ., ا.;ا2 اR - M`Jأ Model ذج2 ة ا.; 3; .,:J د30 M ?_ آ2 اM I ث9 نh اN ! ,9 ا" د, ء ا صGH ا3;) P [ اGENERATE S J ! P Window 5 وي9 B و30 وي9 A S :ا ا. هoperands لa I P ا. ^ ه.(ذج2 ا GUH . Command / Retranslate ذج ر2 ا, -I أ. 60 و300 ! T Window / Simulation Window / Plot ر،آ ة 3; اء ا- إ دة إMJ 3 % ا ت آM أدEdit Plot Window ت2 ا9 I ة.; 3; %X Window ،3 ا%ا ت2 ا9 I ة.; 539 3 وPlot 3 wYV إ،% ` ا3 a اM , "; و, ر ا2 C % ف2. , 3; Maintenance Util S اآ، U اد ر9 3 ا, ا%: اM أد%X Memorize %X Memorize وPlot 3 wYV ا%X ا" رة, 3; FR$Maintenance وG ا Command / START ا ر%X ح2V2 UI هO !/ 9 P ة.; اJ آ.OK OK %X 5 , : 1 ار ل2 'وق ا3;و , "`ر ا2 7 %ر ،ة اى.; ا3 اN ._J2I ونM "9 M "ة واGU-0 ,b W ' ا,ر2 ان اaVوا Window / Simulation Window ا ر،تUة ا.; a; ت و ا2ة ا.; M`Jأ ,2:90ا و ا2I ه9 رأ3 وا, "`آ اAI ة.; ا5. ان ه6T / Facilities Window Window / ا ر،,` و62 3ا26 ،ةN ?_ ا2 M92C ر2 C !I (icon) ولH ا% وأ ر إ5اI ان9I ول- M/ Simulation Window / Table Window .UN9 ي.ار ا2 ! 'وق اService أوSpot أوAlljobs أوOverhaul ،S ا Tا ا "ل وإ.U M I _? 2 ة إذا ا ت ا3 ا,- 6 3; a اM ه انN! ا .!? G[ ! ا/ ا:` ,ر2;ن ا 540 =دةA Bآة ;م ا# -5 :/BJض ا2 و0 ا, " ا. ` !:J RI U M آ، ! ا" ت," 9C ! ,"7J R I و15% إU M ج آI ,[ [ وا, [ ا" ! ا. U" I " دR7: ! ا20% ج إI .I `& وI ن2/I U" I ا " دR7: ! ا60% .3ا2 اU" I " دR7: ! ا5% .; اU %I 3 ا, " ! ا,H " إ دة3 ج اI ,J ا40% واـ، scrapped 7"9 وT ا, " ! G ا.3 اR9ز2 ,:J د30 M آw2 ا3; %9 ة9- ,"7J , ' :3 ول اH Time For First Process Frequency .05 .13 .16 .22 .29 .15 Process time (mins) 10 14 21 32 38 45 و,:J د24 w2 3"C R9ز2I & ة0 ا, " ? وز ! اJ د15±6 قYI , [ ا, "ا .? J د4 إ اف " ري ., / ,"7J 100 ـR ت ا3 آ6 -1 .,V2; اR7: ود اg. زمh ! اG ! ا-2 :g#6ض ا2 ; GPSS World Sample File - QCONTROL.GPS, by Gerard F. Cummings ***************************************************************** * * * Quality Control Program * * Time units are in minutes * ***************************************************************** RMULT * 93211 Definitions Transit TABLE M1,100,100,20 541 ;Transit Time Process FUNCTION RN1,D7 0,0/.05,10/.18,14/.34,21/.56,32/.85,38/1.0,45 ***************************************************************** Stage1 GENERATE (Exponential(1,0,30)) ASSIGN 1,FN$Process SEIZE Machine1 ADVANCE P1 RELEASE Machine1 ADVANCE 2 ;Inspection TRANSFER .200,,Rework1 ;20% Need rework ;Process time in P1 ;Process 1 ***************************************************************** Stage2 SEIZE Machine2 ADVANCE 15,6 RELEASE Machine2 ADVANCE 2 ;Inspection TRANSFER .150,,Rework2 ;15% Need rework ;Process 2 ***************************************************************** Stage3 SEIZE Machine3 ADVANCE (Normal(1,24,4)) RELEASE Machine3 ADVANCE 2 ;Inspection 3 TRANSFER .050,,Rework3 ;5% need rework TABULATE Transit ;Record transit time TERMINATE 1 ;Process 3 ***************************************************************** Rework1 TRANSFER .400,,Stage1 TERMINATE Rework2 TRANSFER .400,,Stage2 TERMINATE Rework3 TRANSFER .400,,Stage3 TERMINATE : ذج1 ا9Hو RMULT اة2 Y ; آ ة ارات/I اء-@ ,- ا. 1 %J ر,?ا2O" م اJر0 ا2 اة2 ء .w:; ,?ا2O" م اJر0 ا2 542 TABLE هO ي.اري وا/ ا ت رج اR H9 ف2 Table Transit 3 :@ول اHا . `I FUNCTION 10, 14, 21, (! أ ! ا رJ )إ, : ا37"I PROCESS 5 اGPSS ,Y ,دا SH9 GPSS Functions دوال3; & ا6T . ة7" ت اT 6@ اS 32, 38, 45 !" Cumulative Distribution Functions 3 ااآR9ز2 ا,إام دا .تT 6@ا GENERATE ,Y 3 اا30 اR9ز2 أ ا.3 اR9ز2 w2 ا3; ,:J د30 Mة آ9- R7J R I .GPSS ASSIGN M " parameter number 1 ول0 اM " ا3; RV وM " وT ا,6 R ز ! ا Transaction SEIZE Machine1 3 اFacility Entity ,U آ ?! اNI أوg I ,`2 او اM "ا ADVANCE parameter 1 ول0 اM " ا3; نG ! اGار ا: ,2YO Machine1 ,`2 ا3:I .,`2 M[ اM " RELEASE 543 إذاN اM " U Y إ.? !/ 9 3 واMachine1 ك9 ,`2 M[ اM " ا .-و ADVANCE . ` ز ! ا3 آ9 ADVANCE Block S :ا TRANSFER إSه. ! " ! ا20% 3?ا2O M/O ر9 ف2 TRANSFER Block S J ! 80% اـ. Stage1 ! ,HI ا,"7: اMO; M[ 9 ا. ه. Rework1 G اS :ا ., ا,6 وا9 Tا " ! ا SEIZE .Machine2 ا ةFacility Entity ,U اN9 اوg 9 `ي ! ا. اM " ا ADVANCE .stage 2 , [ ا,6 ز ! ا3 آ9 ADVANCE Block S :ا RELEASE إذاN اM " U Y إ.? !/ 9 3 واMachine2 ك9 ,`2 M[ اM " ا .-و ADVANCE . ` ز ! ا3 آ9 ADVANCE Block S :ا TRANSFER 544 إSه. ! " ! ا15% 3?ا2O M/O ر9 ف2 TRANSFER Block S J ! 85% اـ. Stage2 ! ,HI ا,"7: اMO; M[ 9 ا. ه. Rework2 G اS :ا ., ا,6 وا9 Tا " ! ا SEIZE .Machine3 ا ةFacility Entity ,U اN9 اوg 9 `ي ! ا. اM " ا ADVANCE زع2 قY ! اG ا.stage 3 , [ ا,6 ز ! ا3 آ9 ADVANCE Block S :ا . "C RELEASE إذاN اM " U Y إ.? !/ 9 3 واMachine3 ك9 ,`2 M[ اM " ا .-و ADVANCE . ` ز ! ا3 آ9 ADVANCE Block S :ا TRANSFER إSه. ! " ! ا5% ! 95% 3?ا2O M/O ر9 ف2 TRANSFER Block S J اـ. stage 3 ! ,HI ا,"7: اMO; M[ 9 ا. ه. Rework3 G اS :ا ., / اR7:ا ا2[ 9 Tا " ! ا TABULATE 545 ولH اري ا ص/_ ز ! ا@آ ل ا ا رج اf9 TABULATE Block S J 3; ,9ار/I ت- ه آ رOI ا " ري و9: ا3; ? :I اولH اS/I ، Transit ا .ة6 3 Mاول آH ا.;ا2 TERMINATE !" آ ة د / 9 . ءU@ اد ا:9 وM " ا3U9 TERMINATE Block S J START ( ! رةoperand A) A M " ا3; R7J ام اد, / اR7:! ا .statement TRANSFER " د9 ان3; 40% ل6و ;ن & إT ا,6 ا3; R7:( ; ا,"7J) M " MO`9 . U" I " د9 ,"7J M[ 9 ا. وه.وT ا,6 إ ا TERMINATE . M[ 9 ا. وه., / اR7: ص اد ا:آ ة ون إ ! ا%U? U إ%9 !9hا " ! ا .R7: اscrapping TRANSFER S :ا ا. ا هM9 و, [ ا,6 ا3; R7:( ; ا,"7J) M " MO`9 M[ 9 ا. وه. ., [ ا,6 " د ا ا9 ان3; 40% ل6ن & إ2/9 TRANSFER Block . U" I " د9 ,"7J TERMINATE . M[ 9 ا. وه., / اR7: ص اد ا:آ ة ون إ ! ا%U? U إ%9 !9hا " ! ا .R7: اscrapping TRANSFER 546 " د إ9 ان3; 40% ل6 ;ن & إ,[ [ ا,6 ا3; R7:( ; ا,"7J) M " MO`9 . U" I " د9 ,"7J M[ 9 ا. وه.,[ [ ا,6 ا TERMINATE . M[ 9 ا. وه., / اR7: ص اد ا:آ ة ون إ ! ا%U? U إ%9 !9hا " ! ا .R7: اscrapping , , وداTransit Table 3 :ول إ- _9"I " .اءG- ة أ3; %N ذج2 ا M آ.R I , M[ 9 U Mذج آ2 اءG- أ,XX -29 & اH Process Function تT 6 إU ة27 M آ.? J ا3 ! هGات ا6 و.R اM6 ا6 ا3; ,"7J M[ 9 M " Rework2 أوRework1 ةG اSا2: ا6 إ أM " اM9 , ا5. ه3; 3 وا،MO; "I T وإ.I ان3; 60% ل6 إU U" I ا " دR7: ا.3ا2 اRework3 أو .ة0 اUI27 :إ=اء اآة ار ر2 و ! 'وق اFile / Open Command / آ ة ر ر,?ة ا.; ا3; اSH9 %X ! وOpen wYfوQCONTROL ـ1 ار ل2 'وق ا3; Command / START ر%X Create Simulation OK wYV إ%X 100 TERMINATE Block S J Transactions M " 100 M9 QControl.1.1 _ " ري ا ا9:I S/9 آ " د., آ," آ ة ا3UI ,"7J 100 M[ 9 ا.وه .9 ر:ة ا.; 3; 3? :I M/O f9 اUN9 9:ا ا. ه. :g1 اJ1# 3ا26 ? أوJ د4153.8 قY ا " ري ى ا& ا9: ا3; End Time ءU@! ز ! ا دH9 إR7 Block entry counts Sا2:ل ا2"اد دI ! .,"7J 100 @آ ل, 69 547 Rework3 وRework2 وRework1 Sا2:ل ا2 3/ ا"د ا.,V2; اR7:د ا R7J 4 و, [ ا,6 ا3; WO; ,"7J 14 و وT ا,6 ا3; WO; ,"7J 22 ! ان ه ك9 .ت. ,"7J (11+7+3) 21 U , ; ,"7J 40 M/O9 ا. ه.,[ [ ا,6 ا3; WO; : اآة0دا 0 م ا. ا " ري ا9: ه ا2I 3آ ة ا System Numeric ا,9 U , 6 _O/ مN ,9 إ " ا ` ت ا"دN SHOW Command 3; وCommand / SHOW آ ة ر ا,9 U ! آ ! زe T او.Attributes ! G ه ان اO Status Line , ا7 3; OK wYV ا%X AC1 Sار أآ2 'وق ا 3; وCommand / SHOW ر. ا9: ا3; آ ة ا,9 U ! ز9 و3 ا 3 اR7: د ا2( ه22) , : ا5. ه، OK wYV ا%X N$Rework1 Sار أآ2 'وق ا .وT ا,6 ا3; WO; ر، ت2 ا.;ا2 " هO Window / Simulation Window / Facilities Window R7: د آ ! ا-29 &ا وا- , Machine1 , "; ان6T .تUة ا.; 5.ه ل2YO ر ا ا ا. هM 9 &0 : [ Machine1 MO`وا أن "ل ا9 ،ةN ا .&:79 [ا اآ- إ& رN ، ا@آ ل, ز0 اري/I رج2 هTable Transit ولHا Window / Simulation Window / Table Window wYf آ ة ا3; 6ول وا- -29 & اP6 w:; Transit , ار ى آ2 'وق ا3;و OK نh ا.,:J د800 ! [ اآ. اR7: ان " اT ا,:J د321 ء آ نU@ ز ! اw2 ان%^ .اولHت واU ا.;ا2 M`Jأ ر. ت2" ا5. ه7"I ف2 Sا2:ة ا.; ؟R7:! ا9ن أh اNا 548 Window / Simulation Window / Blocks Window ! آة ي اH ف2 . ASSIGN S J 3; Machine1 NI ,"7J 30 -2I & ا6T %: " اUb"ة ا" رات و.; a` أ. ت2 ا.;ا2 " هه ! لO و9ة.; a`آ ة و ه إ ب اO 3/ &62` Sا2:ة ا.; 3: . UN6 3; S^ 3ا ر.آ ة ى اHI ا رة%: هت " اO "ا Window / Simulation Window / Expressions Window S ا" أآ, 3; وRework1 S أآG ا, 3; ا" رات و9 I 'وق3; ءG- ان6T U" I @ دةW ار,"7J %ف ى آ2 ة.; ه اO N$Rework1 " R ا إ دة اN ا%X Memorize وView wYV ا..9 ف2 U 3; , ا, :ار ال ا2 'وق ا3; ا" رات و9 I ة.; 3; ., [ ا,h ,H " ا N$Rework2 ـ, ا, : ا" ال ا, 3; وRework2 , : G ا, ـG ة ا" رات آ ل ا.; 3; ,[ [ ا,h ,H " " اR ا إ دة اNأا أ ا. ه. Memorize وView wYV ا%X N$Rework3 وا" ـRework3 ! ` ه ا " ! اO ف2 Sا2:ة ا.; 3; f9 ا،, ` اR7: هت اO ! / Rework3 وRework2 وRework1 Sا2: !اا Part S أآG ا, 3;ار و2 'وق ا3; ،wO اM " ,"7: ا%J ا رN OK %X Memorize وView wYV اXN1 S ا" رات أآ, 3; وnumber ر,? ا, ? : ! ا.,? 6@ ا " ! و ` ا"ادات اM ! آ ف2 Clear q XeI T U0 ` I % Part no. , : ا. OK وCommand / Clear Command ر. " UNI P " واSا2: ا3I.;ك ا6 .آ ة د ء اH YI OK %X 50 ـ1 و ل/ START ؟gI N6 S أآ." واSا2: ا3I.; 6T وث6 آ ة _ اJ2 د.MO`I % R7: ا%N" ;نWN6T آ. "ة ا.; M`Jن اhا رSا2:ة ا.; 3;( وCtrl+Alt+H) Halt آ ة _ اJ أو.و0 ا,6 ا3; ,"7: MO; S : ا3 ا` رةA RV ، هة ا ةO ا3ل ا2 3/ View / Entity Details 549 7 3; Place wYV ا%X (&2 Y9) راa ; & wYV وأRework1 G ا M " MO; آ ة _ اJ2 . (Ctrl+Alt+C) 3 wYf آ ة نh ا.!I (Ctrl+Alt+1) wYf ة27 ة27 آ ة إ ا.دوات0ا ى ا-ن اh اRework1 ؟gI N6 اى ودونM?ب ا- .g` ذج2 ا, H %J 550 :-/C D*1 >$4 آة ;م# -6 :/BJض ا2 SC , وآ،ة6 و600 W"V و، order point SC ,7: & %/ I !9GI مN .ة6 و700 ,و0ون اG ا, آ.ة6 و500 ! economic order quantity ,9د Jإ lead time م: ز ! ا. وي,ز2 ة6 و63 إ40 لH ا3; 3 2 اS7ا ! . م9 أ5 R? f اM'2I 36 S7ا م29 100 ! ة9G م اN 3 آ6 ,"` ا, 2ون وا " ت اG اR9ز2I ! :g#6ض ا2 ; GPSS World Sample File - ORDERPNT.GPS, by Gerard F. Cummings ********************************************************************* * * Order Point Inventory System * * * * ********************************************************************* * Initialize and define INITIAL X$EOQ,500 INITIAL INITIAL Inventory TABLE Sales TABLE ;Economic order qty. X$Point,600 X$Stock,700 ;Order point ;Set initial stock=700 X$Stock,0,50,20 P$Demand,38,2,20 ;Table of stock levels ;Table of sales levels Var2 VARIABLE RN1@24+40 ********************************************************************* Again GENERATE TEST L ,,,1 X$Stock,X$Point ;Order placed on successful ADVANCE 5 ;Lead time = 1 week SAVEVALUE TRANSFER Stock+,X$EOQ ,Again ;Economic order ;Cycle transaction again test ********************************************************************* GENERATE 1 ;Daily demand xact ASSIGN TABULATE Demand,V$Var2 Inventory ;Assign daily demand ;Record inventory TEST GE X$Stock,P$Demand ;Make sure order can be filled 551 SAVEVALUE Stock-,P$Demand ;Remove demand from stock SAVEVALUE TABULATE Sold,P$Demand Sales ;X$Sold=Daily demand ;Record daily sales TERMINATE 1 ;Daily timer ********************************************************************* م2:9 ي. `د واM " 29 ول0 اGENERATE S J .اءG- ة أ3; SI ذج2 ا ; إ ر رS J , 6 3; ل2 ر اN &J و%N" 3f 9 M " ا ا. ه.S7 دة ا ونG ى ا2 , "O9 ا. ا@ ر هS J . Again G refuse mode TEST N اM " ;ن اS7 ا,7: W I ونG ى ا2 ن2/9 .S7 ا,7: W I ن2/I WJ2 N9 %X ونG إ اS7_ اf9 م و9 أ5 N9 وADVANCE S J إ9 .S7 ا,7: ! MJون أG ى ا2 ن2/9 3 ا !/9 % إذا.!? G ت اC M[ I 3 وا, 2 ا " ! ا29 3 [ اGENERATE S J Sا2: ; إ ر رS J M آ,C 6 إg/ 9 . TEST S J & إ2 دR 9 SC : I / . ه كeا ! ا9:I إذا اردتDEPART وQUEUE :إ=اء اآة ار ر2 'وق ا3; وFile / Open ا " ري ر9:I 2آ ة و 3; !9Y & ! هO % رGUH آ ة ي اH 3/ ان أ اMJ Open %XORDERPNT ر،%ة ا.; ل إ2'2 اR7 36 آ ة اSH9 ا. هMJ !/ .ذج2 ا ر%X Command / Create Simulation Window / Simulation Window / Plot Window :3 اM/O ا3; ! 2 ت آ ه2" اM ت أد2 ا9 I ة.; 3;و 552 ت2" اM أد:,N6 ) .% ` ا3 ونG ي ا2 و3 2 اS7 ا% ف2 ,2 H M أد%X Memorize %X Plot wYV ( إEnter ` ح3 wYfI ون أن Inventory Level دة ـ2-2 ا, : ل اG ا, 3; ، U ر9 3 ا, [ ا%:ا وPlot wYV إ%X X$Stock دة ـ2-2 ا, : ا" ل ا, 3;و إ ر%X آ ة ء اX هة اO ا,U U"H9 M/O %ة ا.; ك6 OK %X Memorize OK %X 100 ـ1 ار إل2 'وق ا3; وCommand / START آOrderpnt.1.1 _ ا " ري إ ا9: اS/9م و29 100 آ ة " ور :3 آ ة آ ا3UI ء اX وا أ%ة ا.; .9 ر:ة ا.; 3; "ض9 553 ت2ة ا.; :g1 اJ1# .Y9 ونG ى ا2 ه أنO P6 aVون واG م اN فI أن%وا ! ا9 .ة6 و300 ! :9 % !9Gى ا2 ! انI 9: ا3; ونG ول ا- : اآة0دا SHOW 0 م ا. ا9: ه ا2I 3آ ة وا ا,9 U , 6 نh_ اO/ Sار أآ2 'وق ا3; وCommand / SHOW ونG ى ا2 w2 N OK %X TB$Inventory 612 .ونG ا3; ,C2 ا ل ا, / س: 2 وه.ونG ى ا2 w2 ! ا.ه !9G م اN 3; " ا تY ; " ا ل2I R7 ر.R`I وا9 .آ ا ول- ة.; a; أ. :6T U- 0 م2ة ا.; Y' T أو. ت2 إ " اN Window / Simulation Window / Table إ رInventory Table ونG ا 5. ه. OK wYVار إ2 'وق ا3; دة2-2 Inventory Table ان 554 وWindow SJ ا.3 2ون اG ى ا2 R9ز2I !9 ولHا ا. هInventory Table ول- ة.; ر، م اى9 ا,"f طO ولHة ا.; M`J اOK %X 100,NP Sار أآ2 'وق ا3; وCommand / START ان6 Window / Simulation Window / Blocks Window Sا2:ة ا.; a`و 3`ء اGH وا،SC ط إ دةN9 0ء اGH ا3; M " ا.ا- w ذج2 ا ا.ه ة.; 3; ا@ ب6Tآ ة ة اى و ا- إ., 2ا ا " ت ا2[ 9 ! " 9 . OK %X 50,NP Sار أآ2 'وق ا3; وCommand / START إ ر.Sا2:ا T 400 إ3و0ون اG وا600 ! T 300 إS7 ا,7: م لN ا3; b Y %X Clear Off Sار أآ2 'وق ا3; وCommand / Custom ر، 700 ! Savevalue ,2` ا%: اM ` آ9 ,ا ا " ! آM آM9G9 CLEAR 0 ا.OK " w:; Y ف2 و,2` ا%: , ا%: ا3 3:9 " ة- Off M "! ام ا/و Sار أآ2 'وق ا3; وCommand / Custom ر,2` ا%: ا رة%:ا INITIAL S ` ا وق أآ3; %X Enter wYV إ%X INITIAL X$Point,300 ! و% ا اN . 500 MN إذ, 27 ا, / اY % . OK %X X$Stock,400 م2ة ا.; آ، ا% '` اCLEAR 0 ا.Sا2:ة ا.; M`J اT أو،آ ة ي اH ث6 إذا,;" ج.OK %X 100,NP S اآ%X Command / START آ ة وأ أ ا Window / إ رInventory ولH & ! آ ?! اM ا. وهstockout ونG ` ذ OK %X Simulation Window / Table Window 0 U J 3ار ا" ا/ ا,b; ن0 aVا وا. ه. عV او:; اي3 "9 % ونG ان ا6T f9 ا., : ر ا9 ي إ.د ا2 " ا3; ? دا,2 O ن2/I ,9ار/ ت اb` ,9 ا%: ا.,^; ر MJ . ذج ا2 ! ا- ! I ا. وه. 329.1 w:; 2ون هG ى ا2 w2 ه انO , أي ا,; Ie9 % !-ذ2 ان ه! ان ا`ق ! اSH9 ]? ا5. ! ه9:I %9:I ?ت 6@ ! اstarting conditions اء, 6 ! اSH9 آ.W 3?ا2O . ANOVA 0 اR :6T ,OJ ي. واRESET 0 ام اg وذ,? Uا 555 وB! إD ! 14 آة ;م# -7 :/BJض ا2 ا تe"I R9ز2 ا%J 3; ., J ت ر, م2:9 و ت/ إ, آ3; R ا%J %H6 .ن2ز2 اU79 3 ت ا/ ة "ضG ه- S 3; ,b"I ,( ,7ا2 3? :I M/O :, ا, ا7"9 S7ا Order Size 6 12 18 24 30 36 48 Frequency .10 .25 .30 .15 .12 .05 .03 , X 120 SC M/ ,b" ز ! ا. زع أ2 ,:J د15 ت7ل ا2' ! ! وG اw2 3; , J] ا ت ا9 R ا%J .S7 ا3; e"I , J ر, M/ ان2X 10 إ,; V@ .,:J د455 3; ة6 و60 %H ت2 H :, ت ا2" ا37"I 3/ ,آO ط اO ! م9 أ5 3 آ6 ,b" ا%J 3; ةN ت ا7 د اw2 -1 م29 M آ,ز2 ا, J ا ت ا, آ-2 ت7 transit times , :@ ت اJو0 اR9ز2I -3 :g#6ض ا2 ; GPSS World Sample File - MANUFACT.GPS, by Gerard F. Cummings ********************************************************************* * Manufacturing Company * ********************************************************************* * * Time Unit is one hour * Sizeorder FUNCTION RN1,D7 ;Order size .10,6/.35,12/.65,18/.80,24/.92,30/.97,36/1.0,48 Transit TABLE M1,.015,.015,20 556 ;Transit time Number TABLE X1,100,100,20 ;No. packed each day Ptime VARIABLE .0028#P1+0.0334 ;Packing time Amount EQU 1000 ;Initial stock amount Stock STORAGE 4000 ;Warehouse holds ; 4000 units ********************************************************************* GENERATE (Exponential(1,0,0.25)) ;Order arrives ASSIGN 1,1,Sizeorder ;P1=order size TEST GE S$Stock,P1,Stockout ;Is stock sufficient? LEAVE Stock,P1 ;Remove P1 from stock QUEUE Packing SEIZE Machine DEPART Packing ADVANCE V$Ptime ;Packing time RELEASE Machine ;Free the machine SAVEVALUE 1+,P1 ;Accumulate no. packed TABULATE Transit ;Record transit time ;Get a machine TERMINATE Stockout TERMINATE ********************************************************************* GENERATE 0.75,0.08334,1 ;Xact every 40+/-5 mins ENTER Stock,60 ;Make 60, Stock * Stockad increased by 60 TERMINATE ********************************************************************* GENERATE 8 TABULATE Number SAVEVALUE 1,0 TERMINATE 1 ;Xact every day ********************************************************************* GENERATE ,,,1,10 ;Initial stock xact ENTER Stock,Amount ;Set initial stock TERMINATE ********************************************************************* -2I Storage وvariable وfunction ? ت/_ ا9"I " .اءG- ة أ3; %N ذج2 ا ! " وا، ت7ا ا2[ 9 ذج2 ! ا0ء اGH ا3J ! " ا.ذج2 اء ! اG- أR أر ءGH ا3; ! " ا،ونG إ ا, J ر, 60 ! ت2 H ا2`f9 3 ء اGH ا3; 557 0ء اGH ا3; M " وا، م90 3/ ة ا/ ا ز ! ا2J29 و, 2ا ا " ت ا2وH9 3 ا .ة6 و1000 ون إG ى ا2 MU9 ذج2 ! ا ى2 ا2 وه، S$Stock Y M[ ونG ى ا2 . ! تGات ا6 س و:I ون وG ! ا.e 3/ LEAVE ا م.U وStock ونG آ ?! ا3; 3 ا ,6 . stockouts 3U ونG 3 ت ^ ا ة ه7 ا.&_ إf / ENTER ـMU9 S$Stock ـM[ ون اG ى ا2 .ة6 و4000 ـ3`/I ,6 اR? f! ا9GI .ذج2 ! ا0ء اGH ا3; ,f; ذا اM " ,7ا2 آ ة .آ ة ا,9ة ا6 و1000 ا3; ك9 ! ن أول2/ M " ا ا.ه :إ=اء اآة MANUFACT ار ر2 'وق ا3; وFile / Open " ري ر9:I 2آ ة و Command ر%X Command / Create Simulation 0 آ ة S J ! " 5 ل2آ ة د ي اH 3/ ا%X Open wYf %X ا3U OK %X دة2-2 ا1 , J ! T 5 S/و/ START _ " ري إ ا9:I S/ آ " د.R اM ! م9 أ5 M[ 9 ا.وهTERMINATE 1 .9 ر:ة ا.; 3; I"ض ذا9 9:ا ا. آ ان هManufact.1.1 :g1 اJ1# :9: ا3; ,HI ت ا2" ! ا,/O ض ا3; ,6و7 ا,b0 ا, -@ اR7 3; Ave. Cont. , J ! 2 وه. 0.12 w:; 2 ه,b" ا%J 3; ةN ت ا7 د اw2 .Queue Entity Packing W I 9:ا . Table Number 3; 7" 29 ,ز2 ا, J ا ت اR9ز2I : اآة0دا إN SHOW 0 م ا.9: اU9 2I 3آ ة وا ا,9 U , 6 نh"ض ا ، 5 : ت ا7 د اT أو. System Numeric Attributes مN ,9" ا ` ت ا"د هOI ف2 . OK %X N1 S/ ار2 'وق ا3; وCommand / SHOW ر Journal ة9Hة ا.; 3; و,?ة ا.; ا3; Status Line , ا7 3; 169 ,Hا 558 ، stockout ونG ` ذ اU; ث6 3ن د ا ات ا0ف ` ا2 .g. آWindow . OK %X N$Stockout ار2 'وق ا3; S/ %X Command / SHOW ر ر،, 2 ا.;ا2 ه " اO Window / Simulation Window / Storages Window ت92 M[ 9 stock level ونG ى ا2 Storages Window ة ا زن.; 3وه نG اW I , : ا5. هH 898 هU J 3 واStorage Entity ونG ?! ا/ , ا ونG ى ا2 . Storages Window ة ا زن.; 3; Storage In Use ا م _O/O .ى ا@ ج2 ص: إSH; دة ا " ت9! ! ز/ % إذا،ا- R`I 3 ا Window / Simulation ر.ة ا زن.; أى " إ^ق, 2 ر.;ا2 ن2 .ا- ,f` ,b"ت اT( , "; ه أنO . Window / Facilities Window ءGH ا3; g ,6 ى ا0 ا%:ة اN 3: ا. 6 ,2YO ,h! أن ا9 ,2:9hا رTransit Table 3 :@ول اH ا3ن إh اN .ة.; ! اM ` ا Window / Simulation Window / Table Window R9ز2I !9 ا. هOK إ ر%X Transit wYV إTransit -ار او2 'وق ا3;و Number Table اد0ول ا- إN . order transit times ت7 , :@ز ن ا0ا إ ر Window / Simulation Window / Table Window ول- ، OK wYVe; إJ Number 3 ول اH ان اH ار2 'وق ا3; .م29 M آ,b" ا, Jاري ت ا/! ا رج ا9 اد0ا ا2 ون أG ن ا2/9 SC :, ا, H %: . ت2ة ا.; M`Jإ Window / Simulation Window / Blocks رSا2:ة ا.; a` .& R9 ي.ذج ) ا2 ا3; TERMINATE S J ا` رة إ ر اولA , "@ Window _J2I طRf نh ا.ء3f9 S :ن ا2 ه انO .& wYV ( وأTABULATE S J The Place Icon in the Debugging wYV إ،S :ا ا. هStop Condition 559 OK %X 5,NP Sار أآ2 ق ا2' 3; وCommand / START ا ر%X Toolbar ،S7 ذج ا ص2 ء اG- إ0 إ اwO اM " ك ا6 آ ة _ اJ2I ، OK %X TRANSFER ,2 Sار أآ2 'وق ا3; وCommand / Custom إ ر 6T . "ة اتCtrl+Alt+1 ة ام27 ة27 آ ة اء ا- S7 ا6T نhا .gI N6 ا ?] ودون .gI N6 دون%X ث9 6T م وN ا% " ربH " ا%J 560 # -8آة 'ق #آ>ي 2ض ا:/BJ M 9ا !? Gرا2 %UIق ;2 3ق آGي _J2 .ا2ق R9ـ 650رة .إذا % !/ 9ا2 Gن ! إ H9د _J2ر Y9 ,Iدر ون أن 29ق .ا ; ,ا9 3ه ا2 Gن ! ا _J2ا دا Mا2ق YIق ; 3ا ., X 60 w2ا2 2:9 !? Gا Oاء ! 5إ 2 R7J 100ز2I ,ز "9و . 9ا !? GاO9 !9.وا R7J 10أو أ2 9 MJا g.ل وا2 , 70 U -29 3ق .ا !? GاO9 !9.وا أآ[ ! 2 9 R7J 10ا g.ت وا2 , 650 U -29 3ق .ز ! ا2ق M/ز 2ن "9د ا R7:ا Oا5 وه2X 10 2ان " .,"7J M/إ ره 9O %ت 9ا 2J2ن 2 C Jeر , وا 9 3ده 17 .Sا !? Gا !9.أوا أ %U 7 R7J 10 ! MJا2J2ف 2 7ر ص R9 Y9 ,ق O ,"7J M/ , X 2ا ,; V@ ،5إ .,ز ! ا ز ! ا; Rا.ي Y9ق إ 25أو 30أو ., X 35ه.ا ا ! Gا@ ,:9C "9 3; Vا;R إ :ا أو ) gO ; (3او ,J 7إ د وا ` " - U 3ا@ 6ل ; 3ا@ام. " ,9 Uا ب &H9ا2 Gن إ ر26 3; &Iا , X 60 3و &I 9O M 9و Y9در ا " ._J2ل و'2ل ا !? Gإ ا2ق ا آGي 2زع أ ا ـ 600ز 2ن ; 3ا , ة _ ,و 900ز 2ن ; 3ا ,ة ,و 450ز 2ن ; 3ا ,ة ,و 300ز 2ن ; 3ا 29 ,: ,م ا2ق. -1أ- آ ة ة 3ت. ! -2ا transit time ! Gا@.!? G 3 : _J2 , "; ! -3ا رات و ت ا2ق ول وا !. - -4ول د ا 3; !? Gا2ق ا آGي .,:J 2ض ا:g#6 ; GPSS World Sample File - SUPERMRK.GPS, by Gerard F. Cummings ********************************************************************* * * * 561 * Supermarket Simulation Model * * Time Unit = 1/10 Of a Second * ********************************************************************* * RMULT 1187 First EQU 2 Last EQU 18 Qty VARIABLE (RN1@96+5) Finance VARIABLE (RN1@3+1)#50+200 Transit TABLE M1,10000,10000,7 ;Time in system Items TABLE P$Quantity,10,10,10 ;No. of items bought Shoppers TABLE X$Customers,100,50,12 ;No. of shoppers Baskt STORAGE 70 Cart STORAGE 650 Park STORAGE 650 Checkout VARIABLE (P$Quantity)#20+P$Payment Tshop VARIABLE P$Quantity#100 INITIAL X$Customers,0 ********************************************************************* * Beg TRANSFER Both,,Lost ;Tries to park or leaves ENTER Park ;Park in parking lot ADVANCE 600 ;Time to walk from car SAVEVALUE Customers+,1 ;One more customer ASSIGN Quantity,V$Qty ;Param quantity = No. ; items bought ASSIGN Payment,V$Finance ;Param payment = Method ; payment TEST LE P$Quantity,10,Qcart ;Items >10 Get cart GATE SNF Baskt,Qcart ;Check basket available QUEUE Basket ;Queue for a basket ENTER Baskt ;Get a basket DEPART Basket ;Leave queue ASSIGN Carrier,Baskt ;Param carrier ; assigned baskt TRANSFER ,Shop ;Proceed to shop ********************************************************************* * Qcart QUEUE Carts ;Queue for a cart 562 ENTER Cart ;Get a cart DEPART Carts ;Depart carts queue ASSIGN Carrier,Cart ;Param carrier assigned ADVANCE V$Tshop ;Shopping time elapses TEST LE P$Quantity,10,Norm ;Items < 10 go to express COUNT L Where,First,Last,1,Q ;Any empty checkouts? TEST E P$Where,0,Norm ;Some empty checkouts? QUEUE Xpress ;Queue at express SEIZE Xpres ;Get express checkout DEPART Xpress ;Depart express queue ADVANCE V$Checkout ;Checkout time RELEASE Xpres ;Free express checkout LEAVE P$Carrier ;Leave the basket TRANSFER ,Fin cart Shop ********************************************************************* * Norm Fin SELECT MIN Minque,First,Last,,Q ;Find minimum queue QUEUE P$Minque ;Join the min queue SEIZE P$Minque ;Get the checkout DEPART P$Minque ;Depart the queue ADVANCE V$Checkout ;Checkout time RELEASE P$Minque ;Free the checkout LEAVE P$Carrier ;Leave the cart TABULATE Transit ;Record transit time TABULATE Items ;Record items bought SAVEVALUE Customers-,1 ;One customer leaves ADVANCE 600 ;Walk to the car LEAVE Park ;Leave the car park TERMINATE Lost TERMINATE ;One customer lost ********************************************************************* * * Arrivals for 0 - 30 min. GENERATE (Exponential(1,0,60)),,,300 ;A Customer ; arrives TRANSFER * ,Beg Arrivals for 30 - 90 min. GENERATE (Exponential(1,0,40)),,18000,900 ;Arrival rate ; after .5 hours 563 TRANSFER * ,Beg Arrivals for 90 - 150 min. GENERATE (Exponential(1,0,80)),,54000,450 ;Arrival rate ; after 1.5 hrs TRANSFER * ,Beg Arrivals for 150 min + GENERATE (Exponential(1,0,120)),,90000 ;Arrival after ; 2.5 hours TRANSFER ,Beg ********************************************************************* * GENERATE 600 ;Xact each minute TABULATE Shoppers ;Record number of TERMINATE 1 customers ********************************************************************* Storage وVariable Entities Y _ آ ? ت ا9"I " .اءG- ة أ3; %N ذج2 ا .ذج2 اءG- أ,XX -2I Savevalues ` ا%J لU و إEntities - إذا و،_ ا راتJ2 ! د: ?! اGا ا2[ 9 ذج2 ا3; 0ء اGH ا3; ! " ا ن ^ در ون2 زM[ 9 ا. وه،آ ة در اY9 &; 3; وا9 و, أو, 3 ا2 3; TEST S J ., Park ن اG آ ?! اM " 9 ل2ا ! ا2/ 9 !9. ?! اG ا.ق2ل ا2د ر2 C Je 9 R7J 10 ! [ن أآ2 G اR إذا آ ن،ق2ا G اS : إ اM " ا ا. هM[ M9ا ا@ ر و.U م2:9 ذج2 ! اP [ء اGHا Rf9 ي.ذج وا2 ! اR ء ااGH ا3; SELECT S : د9 J0ر ا2 7 ا، Normal 10 %U9 !9. " ! ا. Minque اM " ا%" 3; S ر ا2 7 آ ?! ا%Jر & J ر ا2 7` آ ? ت ا9 ذج2 ! اP [ء اGH ا3; COUNT S J ;نMJ أو أR7J , ر ا2 7 M " ا9 ة6 وا-2I % ;ذا،, , ,7: 20 6 و4 ! a`I 3 واGENERATE Sا2J ى ة2 9 ذج2 ! ا0 اMJ ءGH ا.R9ا !/ آ ن ! ا،ل2'2 ! "ل اY S اWJ2 اturn on and off M`:Iو 3; ! " ا.آ ة ا, 3 "9 3 داY 6 واGENERATE S J إام . ءU@ اد ا:I و,:J دM آ,9 U !? Gول أاد اHIآ ة و 564 اWJ2I 0ء اGHا :إ=اء اآة آ ة ر ا، Open %X SUPERMRK %X File / Open ر 180 S وأآCommand / START ر%X Command / Create Simulation OK %X ت3 ورM[ 9 ا. وهTERMINATE 1 S J M " 180 ل2آ ة " د ا3UI "ض9 g. وآSupermrk.1.1 _ ا" ري إ ا9: اS/9 آ " دة.ق2 اM 3 .9 ر:ة ا.; 3; Iذا :g1 اJ1# 394 أو, X 23640 ق آ ن2 ز ! اw2 أنTable Transit 3 :@ول اH! ا ا.U .;ة2 ا," اwJ M 9 % "ادI Jن ى أن أG ?! ا/ 3?GH ا9: ! ا.,:Jد !/ و، ! ال وا" ت,; _ ا رات و أاد آJ2 3; ;ة2 ! دا? ا آ-29 &; 3; ا2f 9 ا.U %U; ،, ا ا2C 3; !9N !? G ! ا397 د د آ2- و6 رج37"9 Table Shoppers ولH ا.ق2 ا3; & رN@ ا3; ل2C اWJ وw2 ا 398.7 w2 ا3; -29 ،,:J دM آ,9 U sampled !9 " ق2 ا3; !? G اري/I ., ا ا2C 3; واN9 % أآ[ه9:I ،ق2 : اآة0دا " إN SHOW 0 م ا.9: ا2I آ ة ا,9 U , 6 نh"ض ا إ ر، ل, "` اw2 هO T أو._0اء ! اG-e M[ I 3 م واN ,9ا ` ت ا"د ، ا" ت, "; g " ذSR$Baskt ار2 'وق ا3; S أآ%X Command / SHOW _Jا2 , "; %X SR$Cart Sار أآ2 'وق ا3; وCommand / SHOW إ ر MU أ، SR$Park Sار أآ2 'وق ا3; وCommand / SHOW إ ر،ا رات ، Storages Window ة ا زن.; a; 9C ! ن2/9 ا`" ت5. هت هO ,:9C ! آ ? ت ا زن9 ا. ه. Window / Simulation Window / Storages ر ى أن ه ك ايJ0 ا@ام ا%J ! ،_ ا راتJا2 " ت وال و,[ ا 565 تJو0 اري/ن ا رج اh ه اO أن/ 9 .آ ة ت ام آ ل ا/ @ ا5.! ه Window / Simulation Window / Table Window ر،ق2ا 5اO اR7: ,9ار/ ت ا- ه ا رOI أنg/ 9 ، OK إ ر%X Transit wYVإ -ا2I !ة أ آN 3: . Shoppers وItems 5 اولH ا5. ه،ق2 ا3; !? Gو ر،! " ا Window / Simulation Window / Blocks Window SELECT S : 3 ( ا30 %J رS J) QUEUE S J 3; ! " ! ا9"د ا2- و6T . ا بR;ا د2 و9 !9. ?! اGا ا2[ 9 ن2 " ء اTA هSEIZE S J ل2وا دN9 Window / Simulation Window / ر،! ا ا2C ن إh اN Facilities Window ) R9 ا, ر ا2 7 ,[ ا,Uة ك إ ا.; اS - 3; قTG@د ا2 إم R9 ا, (ه J0 ة.; أو آ ا ت ا7 R - ان6T ر ا2 7 ,[ ت اUة ا.; , ر ا2 C ى,92C ا2C Uه و J0 , , M`J أ.!? G[ ! ا/وا ا:` T م وإ6Gا ا. هSHI ق2 ان إدارة اaV وا،R9ا 566 2ا; .ا 2ت ا ` &62ود Hب إ10 ,; V 7ت ,و Nإذا آ ن ه.ا M " ه 5.ا Oآ , J ^ ،Mا 7ا Gـ Lastإ 28ه.ا 9Gد 7ت ا , ! 17إ 27ر Command / Custom و;' 3وق ا 2ار أآ %X Last EQU 28 Sإ OK wYVإ ر Command / Clear OK %Xإ أ ا ا آ ة ر Command / STARTوأآ,9 U " . OK %X 180 S آ ة أ Nإ أ@6 7ت ا ? ت ا , Uا OJ 3ه :ودون .gI N6أو -ا"د اM[ 0 ,ا , 3`I 3ا !? GوI Tه إدارة ا2ق ام د ! أآ[ ! اfوري )ز 9دة روا .(SIه.ا "9ض ,/Oإدارة ا2ق ; wV 3ا2ازن ! ا,`/ وا Mوإر Vء ا.!? G 567 GPSS -( ا1) [/# ADOPT Blocks are used to change the Assembly Set of the Active Transaction. ADOPT A A - Assembly Set. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. ADOPT 2000 ADVANCE Block delays the progress of a Transaction for a specified amount of simulated time. ADVANCE A,B A - The mean time increment. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA or SNA*Parameter. B - The time half-range or, if a function, the function modifier. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. ADVANCE 101.6,50.3 ALTER Block changes the priority or a Parameter of selected members of a Transaction Group. ALTER O A,B,C,D,E,F,G O - Conditional operator. Relationship of E to F for the alteration to occur. These choices are explained below. Optional. The operator must be Null, E, G, GE, L, LE, MAX, MIN, or NE. A - Transaction Group. Group whose members will be tested for alteration. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Limit. The maximum number of Transactions to be altered. The default is ALL. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Altered attribute. The member Transaction Parameter to be altered, or PR to alter the member Transaction priority. The operand must be PR, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Replacement value. The value which will replace attribute C. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. E - Test value. PR or Parameter number. The member Transaction Parameter which determines whether each Group member Transaction should be altered, or PR to use the Transaction priority for the determination. It is evaluated with respect to the Transaction 568 Group member. Optional. The operand must be PR, Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. F - Reference value. The value against which the E Operand is compared. It is evaluated with respect to the Active Transaction. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. G - Alternate Block number. The alternate destination for the Active Transaction. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. ALTER Inventory,ALL,Price,49.95 ALTER NE Bin7,10,Price,49.95,PartNum,99.95,Out The conditional operator may be E, G, GE, L, LE, MAX, MIN, or NE. If no conditional operator is used, E (equality) is assumed. When the condition is true, the Transaction being tested is altered. ASSEMBLE Wait for and destroy related Transactions. ASSEMBLE A A - Transaction count. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. ASSEMBLE 2 ASSIGN Blocks are used to place or modify a value in a Transaction Parameter. ASSIGN A,B,C A - Parameter number of the Active Transaction. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter, followed by +, -, or Null. B - Value. Required. the operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. C - Function number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. ASSIGN 2000,150.6 ASSIGN TEXT,"Look on my works, ye Mighty, and despair." ASSIGN 2000+,-3 ASSIGN 2000-,-3 BUFFER Block places the Active Transaction on the Current Events Chain behind its priority peers. 569 BUFFER CLOSE Block terminates a Data Stream and retrieves its error code. CLOSE A,B,C A - Transaction Parameter. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Data Stream. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. The default is 1. C - Alternate Destination. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. CLOSE Error_Parm,2 COUNT Block places an entity count into a Parameter of the Active Transaction. COUNT O A,B,C,D,E O - Conditional operator or logical operator. These choices are explained below. Required. The operator must be FNV, FV, I, LS, LR, NI, NU, SE, SF, SNE, SNF, SNV, SV, U, E, G, GE, L, LE, MIN, MAX, or NE. A - Parameter number to receive count. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Number or name of entity at lower end of range. The entity number of the first entity to be tested. The entity type is implicitly specified by the logical operator or by Operand E. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Number or name of entity at upper end of range. The entity number of the last entity to be tested. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Reference value for E Operand. Required only when in Conditional Mode. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. E - SNA class name. Entity attribute specifier for Conditional Mode tests. Required only for Conditional Mode. The type of SNA implies the entity type. You do not specify the entity number in Operand E. This is done automatically as the entity number range is searched. You may use any entity SNA class. The operand must be Null or entitySNAclass. COUNT SF FullCount,Warehouse1,Warehouse13 COUNT E EmptyCount,FirstQueue,LastQueue,0,Q 570 Either a conditional operator or a logical operator is required. The logical operator may be FNV, FV, I, LS, LR, NI, NU, SE, SF, SNE, SNF, SNV, SV, or U. When the logical operator is true, the entity being tested is counted. The conditional operator may be E, G, GE, L, LE, MAX, MIN, or NE. DEPART Block registers statistics which indicate a reduction in the content of a Queue Entity. DEPART A,B A - Queue Entity name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Number of units by which to decrease content of the Queue Entity. Default value is 1. Optional. The operand must be Null, Name, PosInteger, String, ParenthesizedExpression, SNA, or SNA*Parameter. DEPART WaitingLine DISPLACE Block moves any Transaction. DISPLACE A,B,C,D A - Transaction number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Displaced Transaction destination. Block name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Parameter number. Parameter of displaced Transaction to receive residual time if preempted Transaction is removed from FEC. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Alternate destination for the Active Transaction. Block name or number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. DISPLACE X$Culprit,Compensate,Residual,NotCaught ENTER Block When a Transaction attempts to enter an ENTER Block, it either takes or waits for a specified number of storage units. ENTER A,B A - Storage Entity name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Number of units by which to decrease the available storage capacity. Default value is 1. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. 571 ENTER Toolkit,2 EXAMINE Block may be used to test for membership in a Numeric Group or a Transaction Group. EXAMINE A,B,C A - Group number. Group whose members will be examined. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Numeric Mode only. The value to be tested for membership in the Numeric Group. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. C - Block number. Alternate destination for Active Transaction if no membership is found. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. EXAMINE ValidColors,P$Color,NotCorrectColor EXAMINE ValidXNs,,NotValidXN EXECUTE Block can cause any Block routine in the simulation to be done on behalf of the Active Transaction. EXECUTE A A - Block number. The name or number of the Block to be "performed". required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. EXECUTE P$ActiveBlock FAVAIL Block ensures that a Facility Entity is in the available state. FAVAIL A A - Facility number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. FAVAIL Teller1 FUNAVAIL Blocks are used to make a Facility Entity unavailable for ownership by Transactions. FUNAVAIL A,B,C,D,E,F,G,H A - Facility name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - REmove or COntinue Mode for owning Transaction. Optional. The operand must be RE, CO, or Null. 572 C - Block number. New Block for Transaction owning the Facility Entity. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Parameter number. Parameter to receive residual time if owning Transaction is removed from FEC. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. E - REmove or COntinue Mode for preempted Transactions. Optional. The operand must be RE, CO or Null. F - Block number. New Block for Transactions preempted at the Facility Entity. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. G - REmove or COntinue Mode for Transactions pending or delayed at the Facility Entity. Optional. The operand must be RE, CO or Null. H - Block number. New Block for Transactions pending or delayed at the Facility Entity. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. FUNAVAIL Teller1 FUNAVAIL TELLER,RE,TLR2,300,RE,MGR,CO GATE Block alters Transaction flow based on the state of an entity. GATE O A,B O - Conditional operator. Condition required of entity to be tested for successful test. Required. The operator must be FNV, FV, I, LS, LR, M, NI, NM, NU, SE, SF, SNE, SNF, SNV, SV, or U. A - Entity name or number to be tested. The entity type is implied by the conditional operator. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Destination Block number when test is unsuccessful. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, SNA*Parameter. GATE SNF MotorPool GATE SNE MotorPool,CupboardIsBare The conditional operator is required. It may be FNV, FV, I, LS, LR, M, NI, NM, NU, SE , SF, SNE, SNF, SNV, SV, or U. When the condition is true, the Transaction enters the GATE Block and proceeds to the Next Sequential Block. GATHER Wait for related Transactions. GATHER A 573 A - Transaction count. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. GATHER 2 GENERATE Block creates Transactions for future entry into the simulation. GENERATE A,B,C,D,E A - Mean inter generation time. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, or DirectSNA. You may not use Transaction Parameters. B - Inter generation time half-range or Function Modifier. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, or DirectSNA. You may not use Transaction Parameters. C - Start delay time. Time increment for the first Transaction. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, or DirectSNA. You may not use Transaction Parameters. D - Creation limit. The default is no limit. Optional. The operand must be Null, Name, PosInteger, String, ParenthesizedExpression, or DirectSNA. You may not use Transaction Parameters. E - Priority level. Optional. Zero is the default. The operand must be Null, Name, integer, String, ParenthesizedExpression, or DirectSNA. You may not use Transaction Parameters. GENERATE 0.1 INDEX Block updates a Parameter of the Active Transaction. INDEX A,B A - Parameter number. Parameter with source value. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Numeric value. Number to be added to contents of Parameter. The result goes into Parameter 1. Required. The operand must be Name, Number, ParenthesizedExpression, SNA, or SNA*Parameter. INDEX 2,11.7 JOIN Block adds the Active Transaction to a Transaction Group, or adds a number to a Numeric Group. JOIN A,B A - Group entity number. Group to which a member will be added. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Numeric value. Number to be added to numeric Group. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. 574 JOIN Solditems LEAVE Block increases the accessible storage units at a Storage Entity. LEAVE A,B A - Storage Entity name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Number of storage units. The default is 1. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. LEAVE RepairMen,10 LINK Block controls the placement of the Active Transaction on the User Chain of a Userchain Entity. LINK A,B,C A - Userchain number. The Userchain Entity which may receive the entering Transaction. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Chain ordering. The placement of new Transactions on the Userchain. Required. The operand must be LIFO, FIFO, ParenthesizedExpression, SNA, or SNA*Parameter. C - Next Block location. The destination Block for Transactions which find the Link Indicator of the Userchain in the off state (reset). Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. LINK OnHold,FIFO LOGIC Block changes the state of a Logicswitch entity. LOGIC O A O - Logic operator. Required. The operator must be S, R, or I. A - Logicswitch Entity number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. LOGIC S PowerSwitch A logical operator is required. It may be S, R, or I with the following effect: • S - The logic switch is left in the "set" or on state. • R - The logic switch is left in the "reset" or off state. • I - The logic switch is inverted. 575 LOOP Block modifies a Parameter and controls the destination of the Active Transaction based on the result. LOOP A,B A - Parameter containing count. required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Block number. Next Block if count nonzero after decrement. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. LOOP Customer_Count,Start_Over MARK Block places an absolute clock time stamp into the Active Transaction or into its Parameter. MARK A A - Parameter number. Parameter to receive value of system clock. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. MARK Beginning MATCH A pair of MATCH Blocks cause Transactions to wait for each other. MATCH A A - Block name or number. Conjugate MATCH Block to be tested for a matching (same Assembly Set) Transaction. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. A_Is_Done MATCH B_Is_Done B_Is_Done MATCH A_Is_Done MSAVEVALUE Block updates an element of a Matrix Entity. MSAVEVALUE A,B,C,D A - Matrix Entity name or number, with optional + or -. Required. the operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter, followed by +, -, or Null. B - Row number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. C - Column number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. D - Value to be stored, added, or subtracted. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. 576 MSAVEVALUE Sales+,Part23,Cust77,6.234 MSAVEVALUE Parts,Part23,Description,"Zippo lighter" OPEN Block initializes a Data Stream. OPEN A,B,C A - Data Stream descriptor. Required. The operand must be Name, PosInteger, String, ParenthesizedExpression, SNA or SNA*Parameter. B - Data Stream number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. Default is 1. C - Alternate Destination Block name or number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. OPEN ("MYFILE.TXT"),2,Error_Block PREEMPT Block displaces a Transaction from ownership of a Facility Entity. PREEMPT A,B,C,D,E A - Facility name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Priority Mode. PR, for Priority Mode, or Interrupt Mode, if omitted. Optional. The operand must be PR or Null. C - Block name or number. New destination for Transaction presently owning the Facility. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Parameter number. Parameter of preempted Transaction to receive residual time if preempted Transaction is removed from FEC. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. E - REmove Mode. Removes preempted Transaction from contention for the Facility. Optional. The operand must be RE, or Null. If RE, you must specify a destination in Operand C. PREEMPT Teller1 PREEMPT Teller1,,Teller2,101,RE PREEMPT Teller1,PR,Teller2 PRIORITY Block sets the priority of the Active Transaction. PRIORITY A,B 577 A - New priority value. Required. The operand must be Name, integer, String, ParenthesizedExpression, SNA, or SNA*Parameter. B - Buffer option. Places Active Transaction behind priority peers on CEC. Optional. The operand must be BU or Null. PRIORITY 10 QUEUE Block updates Queue Entity statistics to reflect an increase in content. QUEUE A,B A - Queue Entity name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Number of units by which to increase the content of the Queue Entity. Default value is 1. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. QUEUE WaitingLine RELEASE Block releases ownership of a Facility, or removes a preempted Transaction from contention for a Facility. RELEASE A A - Facility number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. RELEASE Teller1 REMOVE Block removes members from a Numeric Group or a Transaction Group. REMOVE O A,B,C,D,E,F O - Conditional operator. Relationship of D to E for removal to occur. These choices are explained below. Optional. The operator must be Null, E, G, GE, L, LE, MAX, MIN, or NE. A - Group number. Group from which a member or members will be removed. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Removal limit. The maximum number of Transactions to be removed. Optional. The operand must be ALL, Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. C - Numeric value. Numeric value to be removed from a Numeric Group. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA or SNA*Parameter. D - Test value. PR or Parameter number. The member attribute which determines whether each Group member Transaction should be removed, or PR to use the Transaction priority for 578 the determination. It is evaluated with respect to the Transaction Group member. Optional. The operand must be PR or Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. E - Reference value. The value against which the D Operand is compared. The reference value is evaluated with respect to the Active Transaction. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA or SNA*Parameter. F - Block number. The alternate destination for the entering Transaction. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. REMOVE Inventory REMOVE G 3,10,,300,11.6,Jump_Block The conditional operator may be E, G, GE, L, LE, MAX, MIN, or NE. If no conditional operator is used, E (equality) is assumed. When the condition is true, the Transaction being tested is removed from the Group RETURN Block releases ownership of a Facility, or removes a preempted Transaction from contention for a Facility. RETURN A A - Facility number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. RETURN Teller1 SAVAIL Block ensures that a Storage Entity is in the available state. SAVAIL A A - Storage name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. SAVAIL MotorPool SAVEVALUE Block changes the value of a Savevalue Entity. SAVEVALUE A,B A - Savevalue Entity number. Required. May be followed by + or - to indicate addition or subtraction to existing value. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter, followed by +, -, or Null. B - The value to be stored, added, or subtracted. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. SAVEVALUE Account,99.95 SAVEVALUE The_Bard,"A rose by any other name ..." 579 SCAN Block passes information from a Transaction Group member to the Active Transaction. SCAN O A,B,C,D,E,F O - Conditional operator. Relationship of B to C for the Transaction Group member to be chosen. These choices are explained below. Optional. The operator must be Null, E, G, GE, L, LE, MAX, MIN, or NE. A - Transaction Group number. Group whose members will be scanned. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Test value. PR or Parameter number. The member attribute which determines whether the Group member Transaction should be selected. It is evaluated with respect to the Transaction Group member. Optional. The operand must be PR or Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Reference value. The value against which the B Operand is compared. The default is 0. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. D - Retrieved value. PR or Parameter number. The member attribute which is to be assigned to a Parameter of the Active Transaction. It is evaluated with respect to the Transaction Group member. Required. The operand must be PR, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. E - Receiving Parameter number. The Parameter number of the entering Transaction which will receive the value retrieved from Operand D. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. F - Alternate Block number. The alternate destination for the entering Transaction. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. SCAN MAX Inventory,P$Price,,P$PartNumber,100 SCAN E Lot11,PartNum,127,Price,Price,Phone The conditional operator may be E, G, GE, L, LE, MAX, MIN, or NE. If no conditional operator is used, E (equality) is assumed. When the condition is true, the Transaction being tested is selected SEEK Block sets the Current Line Position of a Data Stream. SEEK A,B A - New Current Line Position. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. B - Data Stream Entity. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA or SNA*Parameter. SEEK 20,Data_Base 580 SEIZE Block When the Active Transaction attempts to enter a SEIZE Block, it waits for or acquires ownership of a Facility Entity. SEIZE A A - Facility name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. SEIZE Teller1 SELECT Block chooses an entity and places its entity number in a Parameter of the Active Transaction. SELECT O A,B,C,D,E,F O - Conditional operator or logical operator. These choices are explained below. Required. The operator must be FNV, FV, I, LS, LR, NI, NU, SE, SF, SNE, SNF, SNV, SV, U, E, G, GE, L, LE, MIN, MAX, or NE. A - Parameter name or number to receive the number of the selected entity. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Lower entity number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Upper entity number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Reference value for E Operand when in Conditional Mode. Optional. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. Not used with MAX or MIN. E - SNA class name. Entity attribute specifier for Conditional Mode tests. Required only for Conditional Mode. The type of SNA implies the entity type. You do not specify the entity number in Operand E. This is done automatically as the entity number range is searched. You may use any entity SNA class. Optional. The operand must be Null or entitySNAclass. F - Alternate Block number. The destination Block if no entity is selected. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. SELECT SNF Not_Full,Bin1,Bin3 10 Bin1 EQU 1 20 Bin2 EQU 2 30 Bin3 EQU 3 40 Bin1 STORAGE 11 50 Bin2 STORAGE 1000 581 60 Bin3 STORAGE 150 . . 100 SELECT SNF,3,Bin1,Bin3,,,No_Room Either a conditional operator or a logical operator is required. The logical operator may be FNV, FV, I, LS, LR, NI, NU, SE, SF, SNE, SNF, SNV, SV, or U. When the logical operator is true, the entity being tested is selected. Either a conditional operator or a logical operator is required. The conditional operator may be E, G, GE, L, LE, MAX, MIN, or NE. The conditions are defined as follows: SPLIT Block creates Transactions in the same Assembly Set as the Active Transaction. SPLIT A,B,C A - Count. Number of related Transactions to be created. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Block number. Destination for new Transactions. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Parameter number. Parameter to receive serial number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. SPLIT 1 SPLIT 3,P20,20 SPLIT 3,Pro,17 SUNAVAIL Block ensures that a Storage Entity is in the unavailable state. SUNAVAIL A A - Storage name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, SNA*Parameter. SUNAVAIL MotorPool TABULATE Block triggers the collection of a data item in a Table Entity. TABULATE A,B A - Table Entity name or number. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. 582 B - Weighting factor. Optional. The operand must be Null, Name, Number, ParenthesizedExpression, SNA, or SNA*Parameter. TABULATE Sales TERMINATE Block removes the Active Transaction from the simulation and optionally reduces the Termination Count. TERMINATE A A - Termination Count decrement. Default is 0. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. TERMINATE 1 TEST Block compares values, normally SNAs, and controls the destination of the Active Transaction based on the result of the comparison. TEST O A,B,C O - Relational operator. Relationship of Operand A to Operand B for a successful test. Required. The operator must be E, G, GE, L, LE, or NE. A - Test value. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. B - Reference value. Required. The operand must be Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. C - Destination Block number. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. TEST G C1,70000 TEST G Q$Teller1_Line,Q$Teller2_Line,Teller1 TRACE Block turns on the Trace Indicator of the Active Transaction. TRACE TRANSFER Block causes the Active Transaction to jump to a new Block location. TRANSFER A,B,C,D A - Transfer Block mode. Described below. Optional. The operand must be BOTH, ALL, PICK, FN, P, SBR, SIM, fraction, Name, PosInteger, ParenthesizedExpression, SNA, SNA*Parameter, or Null. 583 B - Block number or location. Parameter name or number when in P Mode. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Block number or location. Increment value in FN or P Mode. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Block number increment for ALL Mode. Default is 1. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. Unconditional Mode TRANSFER ,New_Place Fractional Mode TRANSFER .75,,New_Place Both Mode TRANSFER BOTH,First_Place,Second_Place All Mode TRANSFER ALL,First_Place,Last_Place,2 Pick Mode TRANSFER PICK,First_Place,Last_Place Function Mode TRANSFER FN,Func1,5 Parameter Mode TRANSFER P,Placemarker,1 Subroutine Mode TRANSFER SBR,New_Place,Placemarker Simultaneous Mode TRANSFER SIM,Nodelay_Place,Delay_Place UNLINK Block removes Transactions from the User Chain of a Userchain Entity. 584 UNLINK O A,B,C,D,E,F O - Relational operator. Relationship of D to E for removal to occur. These choices are explained below. Optional. The operator must be Null, E, G, GE, L, LE or NE. A - User Chain number. User Chain from which one or more Transactions will be removed. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. B - Block number. The destination Block for removed Transactions. Required. The operand must be Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. C - Removal limit. The maximum number of Transactions to be removed. If not specified, ALL is used. Optional. The operand must be ALL, Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. D - Test value. The member Transaction Parameter name or number to be tested, a Boolean variable to be tested, or BACK to remove from the tail of the chain. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, SNA*Parameter or BACK. E - Reference value. The value against which the D Operand is compared. Optional. The operand must be Null, Name, Number, String, ParenthesizedExpression, SNA, or SNA*Parameter. Operand E is not used if Operand D is a Boolean Variable. F - Block number. The alternate destination for the entering Transaction. Optional. The operand must be Null, Name, PosInteger, ParenthesizedExpression, SNA, or SNA*Parameter. UNLINK OnHold,Reentry,1 The relational operator may be E, G, GE, L, LE, or NE. If no relational operator is used, E (equality) is assumed. When the relationship is true and the limit condition has not been reached, the Transaction being tested is removed from the User Chain UNTRACE Block turns off the Trace Indicator of the Active Transaction. UNTRACE 585 GPSS #( أوا2) [/# BVARIABLE Command defines a Bvariable Entity. NAME BVARIABLE X NAME - Entity Label for this entity. Required. The field must be Name. X - Expression. Required. Must be Expression. Expressions are discussed in Section 3.4. LINE11 BVARIABLE (BV$CLK’AND’BV$PHASE2) CLEAR Command returns the simulation to the unused state. CLEAR A A - ON or OFF. If the A Operand is omitted, ON is assumed. Optional. The operand must be ON, OFF or Null. CONDUCT Command begins an experiment. CONDUCT A A - PLUS Experiment Procedure Call. Optional. The operand must be ProcedureCall. CONDUCT MyExperiment( NumberOfTellers, StartingReplicateNumber ) CONTINUE Command causes a halted simulation to resume. CONTINUE EQU Command evaluates an Expression and assigns the result to a Named Value. NAME EQU X NAME - Named Value to receive a value. Required. The field must be Name. X - Expression. Required. Must be Expression. Expressions are discussed in Section 3.4. Price EQU 19.95 EXIT Command concludes the GPSS World Session. EXIT FUNCTION Command defines the rules for a table lookup. NAME FUNCTION A,B 586 NAME - Entity Label this entity. Required. The field must be Name. A - Function argument. Required. The operand must be Name, PosInteger, String, ParenthesizedExpression, SNA, or SNA*Parameter. B - Function type (one letter) followed immediately by the number of data pairs in the Function Follower Statements. Required. Type C Functions Output FUNCTION V$Input,C3 1.1,10.1/20.5,98.7/33.3,889.2 Xpdis FUNCTION RN200,C24 0,0/.1,.104/.2,.222/.3,.355/.4,.509/.5,.69/.6,.915/.7,1.2/.75,1.38 .8,1.6/.84,1.83/.88,2.12/.9,2.3/.92,2.52/.94,2.81/.95,2.99/.96,3.2 .97,3.5/.98,3.9/.99,4.6/.995,5.3/.998,6.2/.999,7/.9998,8 Type D Functions DIis1 FUNCTION X$A2,D5 1.1,6.9/2.1,7/6.33,9.4/7,10/9.9,12.01 Ran1 FUNCTION RN1,D5 0,0/.2,7.2/.4,6.667/.8,9.92/1.0,10 Type E Functions Edisc FUNCTION X$QRA,E5 1,S$Stor1/3,S$Stor2/5,S$Stor3/9,S$Stor5/10,S$Stor6 Type L Functions Listtype FUNCTION Q$Barber,L5 1,PAR1/2,PAR2/3,PAR3/4,PAR4/5,PAR5 Type M Functions Mlist FUNCTION X$Name1,M5 1,Q$Nnam1/2,Q$NamX/3,Q$Nam4/4,Q$Nam6/5,F$Tan1 FVARIABLE Command defines a "floating point arithmetic" Variable Entity. 587 NAME FVARIABLE X NAME - Entity Label for this entity. Required. The field must be Name. X - Expression. Required. Expressions are discussed in Section 3.4. VAR1 FVARIABLE 5#LOG(Q$WAITINGLINE) HALT Command interrupts the simulation and purges the Command Queue. HALT INCLUDE Command Translates a file of Model Statements. INCLUDE A A - Filespec. A string representing the file specification of the Secondary Model File or Command List to be Translated. Required. Operand must be String. INCLUDE "SAMPLE1.GPS" INITIAL Command initializes a Logicswitch Entity, Savevalue Entity, or an element of a Matrix Entity. INITIAL A,B A - Logicswitch, Savevalue, or Matrix element specified as SNA. Operand A must have the form of an LS, X, or MX class SNA. Required. The operand must be LSPosInteger, LS$Name, XPosInteger, X$Name, MXPosInteger(m,n) or MX$Name(m,n). Coordinates (m,n) must be Name or PosInteger. B - Value to be assigned. The default is 1. Optional. The operand must be Null, Number, String or Name. INITIAL X$Quote,"Now is the time ... " INITIAL MX$Inventory(Part_39,Stocklevel),200 MATRIX Command defines a GPSS Matrix Entity. NAME MATRIX A,B,C NAME - Entity Label for this entity. Required. The field must be Name. A - Unused field (for compatibility with older GPSS implementations). B - Number of matrix rows. Required. The operand must be PosInteger. C - Number of matrix columns. Required. The operand must be PosInteger. 588 Inventory MATRIX ,1000,5 QTABLE Command initializes a queue time frequency distribution table. NAME QTABLE A,B,C,D NAME - Entity Label for this entity. Required. The field must be Name. A - Name of Queue Entity. Required. The operand must be PosInteger or Name. B - Upper limit of first frequency class. The maximum argument which causes the first frequency class to be updated. Required. The operand must be Number or String. C - Size of frequency classes. The difference between the upper limit and lower limit of each frequency class. Required. The operand must be Number or String. D - Number of frequency classes. The operand must be PosInteger. WaitTimes QTABLE WaitingLine,100,100,10 REPORT Command causes a report to be created immediately. REPORT A,B A - Must be Null. B - NOW, to write a Standard Report, immediately. Optional. the operand must be NOW or Null. RESET Command marks the beginning of a measurement period. RESET RMULT Command sets the seeds for random number generators. RMULT A,B,C,D,E,F,G A - Seed for random number generator number 1. Optional. The operand must be Null, or PosInteger. B - Seed for random number generator number 2. Optional. The operand must be Null, or PosInteger. C - Seed for random number generator number 3. Optional. The operand must be Null, or PosInteger. D - Seed for random number generator number 4. Optional. The operand must be Null, or PosInteger. 589 E - Seed for random number generator number 5. Optional. The operand must be Null, or PosInteger. F - Seed for random number generator number 6. Optional. The operand must be Null, or PosInteger. G - Seed for random number generator number 7. Optional. The operand must be Null, or PosInteger. RMULT ,,111 SHOW Command sends an Expression for evaluation by the Simulation Object, and writes the result in the Status Line. SHOW X X - Expression. SHOW 2#LOG(Q$Barber) SHOW C1 SHOW 4#(SQR(2)+SIN(C1)) SHOW N1^W$Chair START Command begins a simulation. START A,B,C,D A - Termination count. Required. The operand must be PosInteger. B - Printout operand. NP for "no printout". Default is to print a standard report. Optional. The operand must be NP or Null. C - Not used. Kept for compatibility with older dialects of GPSS. D - Chain printout. 1 to include the CEC and FEC in the standard report. Optional. The operand must be Null, or PosInteger. START 1000,,,1 STEP Command causes the simulation to proceed a specified number of Block entries. STEP A A - Block entry count. Required. A must be a positive integer, more formally, PosInteger. STEP 1 STOP Command sets or removes a Stop Condition. 590 STOP A,B,C A - Transaction number. A must be a positive integer. If the A Operand is omitted, any Transaction number will satisfy the condition. Optional. The operand must be Null, or PosInteger. B - Block number. If the B Operand is omitted, any Block will satisfy the condition. Optional. The operand must be Null, Name, or PosInteger. C - ON or OFF. If the C Operand is omitted, ON is assumed. Optional. The operand must be ON, OFF or Null. STOP 100,52 STOP STOP ,,OFF STOP 2 STOP ,Chair STOP ,Chair,OFF STORAGE Command defines a Storage Entity. NAME STORAGE A NAME - Entity Label for this entity. Required. The field must be Name. A - Total storage capacity. Required. The operand must be PosInteger. MotorPool STORAGE 20 TABLE Command initializes a frequency distribution table. NAME TABLE A,B,C,D NAME - Entity Label for this entity. Required. The field must be Name. The length of a Table name is limited to 32 characters. A - Table argument. The data item whose frequency distribution is to be tabulated. Required. The operand must be ParenthesizedExpression, SNA or SNA*Parameter. B - Upper limit of first frequency class. The maximum argument which causes the first frequency class to be updated. Required. The operand must be Number or String. C - Size of frequency classes. The difference between the upper limit and lower limit of each frequency class. Required. The operand must be Number or String. D - Number of frequency classes. Required. The operand must be PosInteger. SalesTable TABLE P$Price,9.95,10,10 591 VARIABLE Command defines an arithmetic Variable Entity. NAME VARIABLE X NAME - Entity Label for this entity. Required. The field must be Name. X - Expression. Required. Expressions are discussed in Section 3.4. Var1 VARIABLE 5#LOG(Q$WaitingLine) 592 ;م1/ )د.( ات ا3) [/# SNAs available in GPSS World: • A1 - Assembly Set of the Active Transaction. Integer value. • AC1 - Value of absolute system clock. Simulated time since last CLEAR. Real value. • BVEntnum - Result of evaluating Boolean Variable Entity Entnum. Real value. • C1 - Value of relative system clock. Simulated time since last RESET. Real value. • CAEntnum - Average Userchain content. The time weighted average number of chained Transactions for Userchain Entnum. Real value. • CCEntnum - Total Userchain entries. The count of all Transactions chained to Userchain Entnum. Integer value. • CHEntnum - Current Userchain content. The current number of Transactions chained to Userchain Entnum. Integer value. • CMEntnum - Maximum Userchain content. The maximum number of Transactions chained to Userchain Entnum. The "high water mark". Integer value. • CTEntnum - Average Userchain residence time. The average duration of Transactions at Userchain Entnum. Real value. • FEntnum - Facility busy. If Facility Entity Entnum is currently busy, FEntnum returns 1. Otherwise FEntnum returns 0. Integer value. • FCEntnum - Facility capture count. The number of times Facility Entity Entnum has been SEIZEd or PREEMPTed by a Transaction. Integer value. • FIEntnum - Facility Entnum interrupted. If Facility Entity Entnum is currently preempted, FIEntnum returns 1. Otherwise FIEntnum returns 0. Integer value. • FNEntnum - Function. Result of evaluating Function Entity Entnum . Real value. • FREntnum - Facility utilization. The fraction of time Facility Entity Entnum has been busy. FREntnum is expressed in parts-per-thousand and therefore returns a value 0-1000, inclusive. May be nonintegral. Real value. • FTEntnum - Average Facility holding time. The average time Facility Entity Entnum is owned by a capturing Transaction. Real value. • FVEntnum - Facility in available state. FVEntnum returns 1 if Facility Entity Entnum is in the available state, 0 otherwise. Integer value. • GNEntum - Numeric Group count. GNEntnum returns the membership count of Numeric Group Entnum. Integer value. • GTEntnum - Transaction Group count. GTEntnum returns the membership count of Transaction Group Entnum. Integer value. 593 • LSEntnum - Logicswitch set. LSEntnum returns 1 if Logicswitch Entity is in the "set" state, 0 otherwise. Integer value. • MBEntnum - Match at Block. MBEntnum returns a 1 if there is a Transaction at Block Entnum which is in the same Assembly Set as the Active Transaction. MBEntnum returns a 0 otherwise. Integer value. • MPParameter - Transit Time, Parameter. Current absolute system clock value minus value in Parameter Parameter. Real value. • MXEntnum(m,n) - Matrix Savevalue. The value in row m, column n of Matrix Entity Entnum is returned. In Matrices of more than 2 dimensions, all other indices are assumed to be 1. Unlike MX class SNAs, PLUS Expressions can refer to any element of a higher dimension matrix. • M1 - Transit time. M1 returns the absolute system clock minus the "Mark Time" of the Transaction. Real value. • NEntnum - Block entry count. The total number of Transactions which have entered Block Entnum is returned. Integer value. • PParameter or *Parameter - Parameter value. PParameter or *Parameter returns the value of Parameter Parameter of the Active Transaction. Integer, real, or string value. Indirect addressing uses the notation SNA*Parameter. • PR - Transaction priority. The value of the priority of the Active Transaction. Integer value. • QEntnum - Current Queue content. The current count value of Queue Entity Entnum. Integer value. • QAEntnum - Average Queue content. The time weighted average count for Queue Entity Entnum. Real value. • QCEntnum - Total Queue entries. The sum of all entry counts for Queue Entity Entnum. Integer value. • QMEntnum - Maximum Queue content. The maximum count of Queue Entity Entnum. The "high water mark". Integer value. • QTEntnum - Average Queue residence time. The time weighted average of the count for Queue Entity Entnum. Real value. • QXEntnum - Average Queue residence time excluding zero entries. The time weighted average of the count for Queue Entity Entnum not counting entries with a zero residence time. Real value. • QZEntnum - Queue zero entry count. The number of entries of Queue Entity Entnum with a zero residence time. Integer value. • REntnum - Available storage capacity. The storage content (or "tokens") available for use by entering Transactions at Storage Entity Entnum. Integer value. • RNEntnum - Random number. RNEntnum returns a random integer 0-999 from Random Number Generator Entnum. Integer value. 594 • SEntnum - Storage in use. SEntnum returns the amount of storage content (or "tokens") currently in use by entering Transactions at Storage Entity Entnum. Integer value. • SAEntnum - Average storage in use. SAEntnum returns the time weighted average of storage capacity (or "tokens") in use at Storage Entity Entnum. Real value. • SCEntnum - Storage use count. Total number of storage units that have been acquired from Storage Entity Entnum. Integer value. • SEEntnum - Storage empty. SEEntnum returns 1 if Storage Entity Entnum is completely available, 0 otherwise. Integer value. • SFEntnum - Storage full. SFEntnum returns 1 if Storage Entity Entnum is completely used, 0 otherwise. Integer value. • SREntnum - Storage utilization. The fraction of total usage represented by the average storage in use at Storage Entity Entnum. SREntnum is expressed in parts-per-thousand and therefore returns a value 0-1000, inclusive. May be nonintegral. Real value. • SMEntnum - Maximum storage in use at Storage Entity Entnum. The "high water mark". Integer value. • STEntnum - Average holding time per unit at Storage Entity Entnum. Real value. • SVEntnum - Storage in available state. SVEntnum returns 1 if Storage Entity Entnum is in the available state, 0 otherwise. Integer value. • TBEntnum - Nonweighted average of entries in Table Entity Entnum. Real value. • TCEntnum - Count of nonweighted table entries in Table Entity Entnum. Integer value. • TDEntnum - Standard deviation of nonweighted table entries in Table Entity Entnum. Real value. • TG1 - Remaining Termination Count. TG1 returns the count that is decremented by TERMINATE Blocks with a positive A operand. This value is initialized by START Statements and indicates completion of the simulation when it is 0. Integer value. • VEntnum - Result of evaluating arithmetic or floating point Variable Entity Entnum. Real value. • WEntnum - Current Block count. The current number of Transactions in Block Entity Entnum. Integer value. • XEntnum - Savevalue. The value of Savevalue Entity Entnum is returned. Integer, real, or string value. • XN1 - Active Transaction number. The Transaction number of the Active Transaction is returned. Integer value. • Z1 - Free memory. Value returned by the Operating System. Integer value. Special rules apply when a simulation is run in GPSS/PC Compatibility Mode. This are discussed more fully below. 595 GPSS ل2 (4) [/# Operators Operators are used to combine data elements in Expressions. Data are coerced if a specific type is required by the operator. For example, if a numeric operation is to be performed on a variable with a string value, the numeric equivalent derived from the characters in the string is used. A Setting is available in the Simulation Page of the Settings Notebook which switches the roles of the [*] operator and the [#] operator. The operators used in GPSS World are: ^ Exponentiation. A^B returns A raised to the power of B. # (or *) Multiplication. A # B returns the numeric product of A and B. / Division. A / B returns the quotient of A divided by B. \ Integer Division. A \ B returns the result of integer division of A by B. @ Integer Remainder. A @ B returns the modulo division of A by B. - Subtraction. A - B returns the difference of A and B. + Addition. A + B return the sum of A and B. >= ‘GE’ Greater Than or Equal To. A >= B returns 1 if A is numerically greater than or equal to B, 0 otherwise. <= ‘LE’ Less Than or Equal To. A <= B returns 1 if A is numerically less than or equal to B, 0 otherwise. > ‘G’ Greater Than. A > B returns 1 if A is numerically greater than B, 0 otherwise. < ‘L’ Less Than. A < B returns 1 if A is numerically less than B, 0 otherwise. = ‘E’ Equal A = B returns 1 if A is numerically equal to B, 0 otherwise. != ‘NE’ Not Equal. A != B returns 1 if A is numerically different from B, 0 otherwise. & ‘AND’ | ‘OR’ Logical And. A & B returns 1 if and only if both A and B are non zero, 0 otherwise. Logical Or. A ‘OR’ B returns 1 if A or B or both are non zero, 0 otherwise. 596 Precedence When Expressions are evaluated, the precedence of operators determines the order of operations. An operator with a higher precedence is evaluated before an operator with a lower precedence. The precedence of operators is as follows, from highest to lowest: ^ Exponentiation # (or *) / \ Multiplication, Division, Integer Division @ Integer Remainder -+ Addition, Subtraction >= <= > < Comparison Operators = != Equal, Not Equal & Logical And | Logical Or 597 GPSS - ا4 لB7( أ5) [/# 598 )(6 " أ ,bا@ رات ا ,:وإ -ت U , 599 ا ا ا ث ا" ت2 ء و6@ ا%J هـ1422/هـ1421 ول0 اM `إ ر ا ( 1 ق ا آ ةC ) P 241 دة ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول & , اLinear Congruential Method ,7 ا7ق اC ! إذا آ ن أي%; ! (أ :, دورة آ a ) X i = (13 X i −1 + 13) ( mod 16 ) b) X i = (12 X i −1 + 13) ( mod 16 ) c) X i = (13 X i −1 + 12 ) ( mod 16 ) :, ا,?ا2O"اد اq (ب 0.488 0.226 0.221 0.043 0.055 0.743 0.081 0.685 0.364 0.012 0.372 0.543 0.483 0.050 0.628 0.966 0.750 0.697 0.764 0.040 0.404 0.549 0.203 0.990 0.155 0.079 0.789 0.462 0.795 0.190 :, ا,V` آ ي أ اR إ ر H 0 : Ri ∼ U 0,1 H1 : Ri ≁ U 0,1 :ا ال ا ة:; 3; ,?ا2O"اد ا0 و اInverse Transform Method 3/" اM92 ا,:9C (ا Exponential Distribution 3 اR9ز2I & 3?ا2O Y %J , ول و0ال اA)ب( ! ا :, اآI R9ز2I ,ا − λ x 1 − e , x ≥ 0 F ( x ) = x<0 0, ةRJا2 ا6e 6ا2م ا2 ا3; ولb `6 ,( ل7 "د ات إ, ب( ا ت ا 29 50 0 0 2 0 0 2 0 1 1 0 0 0 0 0 0 2 1 1 0 0 0 0 1 1 0 0 0 0 0 3 1 1 0 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 39H اR9ز2 ا- أو،ح: اR9ز2 ا% " رJ ا ت و5.U 3 " 3? 6 إR9ز2I -أو . f9 ت أEmpirical Distribution . م9ة أO ا ` ة,( 9و9 آ6 ,: ة )ب( ا:`ج( ?] ا 600 :,-ذ2 ت ا-@ا :3 آMinitab ] 3; Worksheet M , `' 3; ا تM Tأو MTB > DATA> DATA> DATA> DATA> DATA> DATA> set 0 0 2 0 0 end c1 2 0 1 1 0 0 0 0 0 0 2 1 1 0 0 0 0 1 1 0 0 0 0 0 3 1 1 0 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 . ' R H 3 ار/I و3 ار/I ول- ن2/9 3 ا0ا MTB > tally c1; SUBC> perc; SUBC> cump. م2 ا3; ولb `6 ,( ل7 د ات إ3?ا2O" اY ,/ ا%:ي ا2 9 (C1) ول0د ا2 "ا . اR H ا3ار ا/ اP [د ا2 " و ا3ار ا/ي ا2 9 3 [د ا2 " ا،6ا2ا Summary Statistics for Discrete Variables C1 0 1 2 3 Percent CumPct 62.00 62.00 30.00 92.00 6.00 98.00 2.00 100.00 (C2) د2 " ا3; 6ا2م ا2 ا3; ولb `6 ,( ل7 د ات إ3?ا2O" اY ,/ ا%: اRf , دا3 ه5.( وهC3) د2 " ا3; (100 ,ارات ا/ ا, : U M ) ,92b ا,ارات ا/وا 6ا2م ا2 ا3; ولb `6 ,( ل7 د ات إ3?ا2O" اY , 6@ ا,/ا MTB > DATA> DATA> MTB > DATA> DATA> DATA> DATA> DATA> set c2 0 1 2 3 end set c3 .62 .3 .06 .02 end (C1) 6ا2م ا2 ا3; ولb `6 ,( ل7 د ات إ3?ا2O" اY ,/ ا%: ! ا, J 50 !9 " 29 50 ا ` ة,( آ ةM[ I 5.( وهC4) 3; U"f( وC3) تT 6@ام ا MTB > rand 50 c4; SUBC> disc c2 c3. 3 آ ة آ ا%: ,ارات ا/ ا-2 MTB > tally c4; SUBC> perc. Summary Statistics for Discrete Variables C4 0 1 2 3 Percent 68.00 28.00 2.00 2.00 د3?ا2O" اY , 6@ ا,/ ا, دا3 ه5.( وهC5) 3; ا آ ة%: ,92b ا,ارات ا/ اM ( هةO ا آ ة )ا6ا2م ا2 ا3; ولb `6 ,( ل7ات إ MTB > set c5 DATA> .68 .28 .02 .02 DATA> end د ات3?ا2O" اY , 6@ ا,/ ا, أن دا,9` ا,V` آ ي @ ر اR ن رhم ا2: Y , 6@ ا,/ ا,_ ! داIT ( هةO ا آ ة )ا6ا2م ا2 ا3; ولb `6 ,( ل7إ ,Y (ول0ال اA ا3; , 2 )ا,"J2 ا6ا2م ا2 ا3; ولb `6 ,( ل7 د ات إ3?ا2O"ا 601 n χ n2−1 = ∑ (Oi − Ei ) 2 Ei i =1 k1 3; &"f9 آ ي وR S 9 3 ا0 ا،,"J2 ا%:ي ا2 I C3 هة وO ا%:ي ا2 I C5 P6 MTB > let k1=sum((c5-c3)**2/c3) K1 0.0338065 &96 ت- در3 ـ, 2 آ ي اR , J 3 ه5.ه MTB > SUBC> MTB > MTB > cdf k1 k2; chis 3. let k3=1-k2 print k3 Data Display K3 0.998363 MJ أ3( وهk2) 0.00163651 2 ه0.0338065 , : ل ا6 ره ) إ9 إ0.998363 ,6 I 3وه ,9` ا,V`; اT ( أي0.025 ! ,Y اS I , وا ا0ا 4 E ( X ) = ∑ xi p ( xi ) i =1 MTB > let k4=sum(c2*c3) MTB > let k5=sum(c2*c5) MTB > print k4 k5 (k5 , J) 0.38 3آ ة ه Data Display K4 K5 ت ا,"J2 ا, :( واk4 , J) 0.48 3 ه5 هO ت ا,"J2 ا, :ا 0.480000 0.380000 V (X ) = E(X 2 ,Y اS I , وا ا0ا )− E (X ) 2 MTB > let k6=sum((c2**2)*c3)-k4**2 MTB > let k7=sum((c2**2)*c5)-k5**2 MTB > print k6 k7 k7 وk6 3; ت9 ا Data Display K6 K7 0.489600 0.395600 k9 وk8 3; ,9 ا@ ا; ت ا " ر37"I ,: ا%: 3" ر اGHا MTB > let k8=sqrt(k6) MTB > let k9=sqrt(k7) MTB > print k8 k9 Data Display K8 0.699714 K9 0.628967 MTB > ا ا ا ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﻫـ1422/ﻫـ1421 ﺇﺧﺘﺒﺎﺭ ﺃﻋﻤﺎﻝ ﻓﺼﻠﻲ ﺃﻭﻝ ﻟﻠﻔﺼﻞ ﺍﻟﺜﺎﻧﻲ 602 ﻟﻤﺎﺩﺓ 241ﺑﺤﺚ ) ﻃﺮﻕ ﺍﻟﻤﺤﺎﻛﺎﺓ ( 1 ا, 2 ! G أ= ! = U/2 -ا' /Kا : ا ال اول: ا ت ا " ,د ات إ 7ل ( b `6 ,ول ; 3ا2م ا2ا 6e 6ا 2ا RJة 50 29 1 0 1 0 0 0 0 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 0 3 1 1 0 0 0 0 0 0 0 2 1 1 0 0 0 0 2 0 1 1 0 )أ( أو -دا ,ا ,/ا@" , 6د ات ا@ 7ل ا ،3 2و Uاو -د ات ا@T 7ت ا 29 ,"J2و ا@ اف ا " ري "د ات ا@ 7ل ا3 2 )ب( أو -دا ,ا2ز R9ا" Empirical Distribution 39Hد ات ا@ 7ل ا.3 2 ا ال ا: )أ( 6آ 9و ,( 9ا ` ة . 29 50و ! ?] ا آ ة أو -ا 7ت ; 3ا`:ة )أ( ! اAال ا0ول. )ب( ام إ ر Rآ ي ،ه -29 Mإف ! دا ,ا ,/ا@ , 6ا Oهة ) ! ا /ة( وا ) ,"J2ا 3; , 2اAال ا0ول( ،أ در95% ,:X ,- 603 0 0 2 0 0 ا ا ا د2" g ا," م2" ا,آ ث ا" ت2 ء و6@ ا%J هـ1422/1421 3 [ اM ` ل ا0 3 [ا@ ر ا (1 ) ا آ ةP 241 دة , 2 :! Gا :, ا,b0 اR - S-أ :ول0ال اAا ,XX ! ," 2 Linear Congruential Method ,7 ا,: 7 ا,:97)أ( إم ا X 0 = 27, a = 8, c = 47, m = 100 %: ! اJ ذات ر,?ا2O مJأر ," 2 Multiplicative Congruential Method ,` f ا,: 7 ا,:97)ب( إم ا X 0 = 117, a = 43, m = 1000 %: م اJ ار,XX ذات,?ا2O مJ أر," ! ار :3 [ال اAا ; إذا,V` @ ر اKolmogorov-Smirnov ف2 – روف2-2 2إم إ ر آ ,?ا2O" م اJر0 اW آ 0.136 0.394 0.513 0.531 0.844 0.715 0.681 0.276 0.154 0.880 0.239 0.888 0.090 0.631 0.245 . α = 0.05 . ؟T [ ام0,1] ا`ة%N R9ز2I U :P [ال اAا , 6 إR9ز2I , & داX 3?ا2O Y x≤2 0, 2 x − 1 , 2< x≤3 2 F (x) = 2 x 1 1 − 3 3 − 2 , 3 < x ≤ 6 x>6 1, .3?ا2O" اY , J 15 ! , )أ( و .,9N ا, : U رJ و," اw2 S6)ب( أ 604 ا ا ا هـ1422/1421 3 [ اM ` ل ا0 3 [ ر اz , ت-إ (1 ) آ ةP 241 ا ة :ول0ال اA , -إ ( )أ Linear Congruential Method X i +1 = ( aX i + c ) mod m, i = 0,1, 2,... Xi , i = 1, 2,... m X 0 = 27, a = 8, c = 47, m = 100 Ri = X 1 = ( 8 × 27 + 47 ) = 263 = 63 mod100 X 1 63 = = 0.63 m 100 X 2 = ( 8 × 63 + 47 ) = 551 = 51 mod100 R1 = X 2 51 = = 0.51 m 100 X 3 = ( 8 × 51 + 47 ) = 455 = 55 mod100 R2 = R3 = X 3 55 = = 0.55 m 100 0.63, 0.51, 0.55 :3 ه,?ا2O" م اJر0إذا ا ()ب Multiplicative Congruential Method X i +1 = aX i , mod m, i = 0,1, 2,... Xi , i = 1, 2,... m X 0 = 117, a = 43, m = 1000 Ri = X 1 = 43 × 117 = 5031 = 031 mod1000 031 = 0.031 1000 X 2 = 43 × 031 = 1333 = 333 mod1000 R1 = 333 = 0.333 1000 X 3 = 43 × 333 = 14319 = 319 mod1000 R2 = 319 = 0.319 1000 X 4 = 43 × 319 = 13717 = 717 mod1000 R3 = R4 = 717 = 0.717 1000 605 0.031,0.333, 0.319, 0.717 :3 ه,?ا2O" م اJر0إذا ا :3 [ال اA , -إ ف2 -روف2-2 2ارزم إ ر آ2 ,V`@ ر ا H 0 : {R1 , R2 ,..., RN } ~ U [0,1] H1 : {R1 , R2 ,..., RN } L U [0,1] P :, ات ا27 اR i ,I هة ذات اO ا3 إG I R(i ) دع.آq Y'0 ا ت ! اSI ر: 1 ة27ا R(1) ≤ R( 2 ) ≤ ... ≤ R( N ) ن2/9 ت/ اS6 أ: 2 ة27ا i D + = max − R(i ) 1≤i ≤ N N i −1 D − = max R(i ) − 1≤i ≤ N N D = max ( D + , D − ) S6 أ: 3 ة27ا ف2 -روف2-2 2/ ,- ا%:ول ا- ! Dα ,- ا, : ! ا: 4 ة27ا 7" اN ," ا%H ا د وα ,92" ى ا2 ,V` ; ; اDα ,- ا, : أآ ! اD ," ا,? 6 إW إذا آ: 5 ة27ا ي2" ;ق-29T &ر ا: ; D ≤ Dα W إذا آ.%N R9ز2I ! 3IeI ," أن ا,9` ا .%N اR9ز2{ واR1 , R2 ,..., RN } مJرq 3:: اR9ز2! ا :3 ول آ- 3; , -@ اSI R(I) 0.09 0.136 0.154 0.239 0.245 0.276 0.394 0.513 0.531 0.631 0.681 0.715 0.844 0.88 0.888 I 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 I/N (I-1)/N R(I)-(I/N) ((I-1)/N)-R(I) |R(I)-(I/N)| |((I-1)/N)-R(I)| max|(R(I)-(I/N)| max|((I-1)/N)-R(I)| D 0.0667 0 0.02333 -0.09 0.023333 0.09 0.124 0.09 0.124 0.1333 0.0667 0.00267 -0.0693333 0.002667 0.069333333 0.2 0.1333 -0.046 -0.0206667 0.046 0.020666667 0.2667 0.2 -0.0277 -0.039 0.027667 0.039 0.3333 0.2667 -0.0883 0.02166667 0.088333 0.021666667 0.4 0.3333 -0.124 0.05733333 0.124 0.057333333 0.4667 0.4 -0.0727 0.006 0.072667 0.006 0.5333 0.4667 -0.0203 -0.0463333 0.020333 0.046333333 0.6 0.5333 -0.069 0.00233333 0.069 0.002333333 0.6667 0.6 -0.0357 -0.031 0.035667 0.031 0.7333 0.6667 -0.0523 -0.0143333 0.052333 0.014333333 0.8 0.7333 -0.085 0.01833333 0.085 0.018333333 0.8667 0.8 -0.0227 -0.044 0.022667 0.044 0.9333 0.8667 -0.0533 -0.0133333 0.053333 0.013333333 1 0.9333 -0.112 0.04533333 0.112 0.045333333 D = 0.124 0د ا2 " و ! اD − = 0.09 وD + = 0.124 H 0 اMJ !9د2 "! ا H N = 15 7 واD0.05 د2 " اW Iف و2 -روف2-2 2/ ,- ا%:ول ا- ! D0.05,15 = 0.338 3 ه,- ا, :ان ا 606 هاتO أن ا,9` ا,V` ; اT ; D = 0.124 < D0.05,15 = 0.338 أن:ار:ا .%N R9ز2I ! 3IeI :P [ال اA , -إ ( )أ For 2 < X ≤ 3 2 1 X R = − 1 , 0 < R ≤ 4 2 ∴X = 2 ( ) R + 1 , when 0 < R ≤ 0.25 For 3 < X ≤ 6 2 1 X 1 R = 1− 3− , < R ≤ 1 3 2 4 ∴ X = 6 − 2 3R , when 0.25 < R ≤ 1 :3 آ3?ا2O" اY , J 15 ! , 2 Microsoft Excel ف م2 Random Numbers و ! 'وق ا@ رات رData Analysis رTools ! -1 Number of Random Numbers وNumber of Variables (=1) ا ت%X Generation and وBetween (=0) .e Parameters , 3; وUniform رDistributions ! =( و15) Output رOutput options 3; و31 !/ و3 أو%J ر رRandom Seed 3;=( و1) . OK %X A1:A15 UI.; 3; S/ وRange S/ ة ا@د ل.; 3; %X B1 , د ا-2 =IF(0<=A1<=0.25,B1=2+SQRT(A1)+1,6-2*SQRT(3*A1)) B15 6 وB2 9 ا3; U: وU %X ة اىB1 , د ا-3 ]; :3 ا 0.004242073 0.404065065 0.548448134 0.839350566 0.028290658 0.074861904 0.199804682 0.215948973 0.939634388 0.117862484 0.03869747 0.8992584 0.979247414 0.6621601 0.621539964 5.774378915 3.798005271 3.434580423 2.826325979 5.417344099 5.052190502 4.451563311 4.390221234 2.642082095 4.810735604 5.318553274 2.715018904 2.572031365 3.181148957 3.268978292 3.976877 ," اw2 انH Excel )ب( ام E(X ) = a + b + c 2 + 3 + 6 11 = = = 3.66667 3 3 3 607 2 ه3[[ اR9ز2 يN اw2 ا %ا ا ! 6ا%6 ء و 2ث ا" ت %Jا@6 آ ,ا"2م ," -ا 2" gد ا@ ر ا M ` 3? Uا[ 1422/1421 3هـ دة C ) P 241ق ا آ ة ( 1 ا>2' 3 #ت أ R - S-ا ,b0ا :, اAال ا0ول: 2Iز R9ز ! ! ا2'2ل ,:J !? Gإ دآ ن أ 6ا H 37"9 !Jول: Probability Time Between Arrivals )(Minutes 0.23 1 0.37 2 0.28 3 0.12 4 )أ( و أز ! ,و'2ل "د 50ز . 2 )ب( آ2ن رج /Iاري qز ,ا 2ة ; 3ا`:ة ا .,: )ج( أ 2-دة اq ;2ز ,ا 2ة ) ا Oهة R ( Oا0ز ,ا " 3; 5 7اHول 2 )ا = 7.81 ) . α = 0.05 . .( E ,"J2 ( χ 3,0.05 اAال ا[ :3 qر Jم ا ) :,إJأ ! ا ر ! 7ا (7 0.25 0.01 0.93 0.70 0.66 0.74 0.79 0.47 0.68 0.18 0.88 0.07 0.99 0.51 0.04 0.01 0.43 0.60 0.59 0.55 0.64 0.10 0.61 0.22 0.85 0.42 0.01 0.98 0.05 0.20 0.11 0.23 0.68 0.41 0.96 0.48 0.11 0.59 0.11 0.10 )أ( أم إ ر اHي 2; Runs Testق و W Iا @ w2ر ; إذا آ Wه 5.ا0ر Jم 2Oا?. ., b − ( 2n1n2 N ) − 1 2 ) 2n1n2 1 2 2n1n2 ( 2n1n2 − N = + ,σb = , Z0 12 2 N 2 )N ( N − 1 2n1n2 ( 2n1n2 − N ) N 2 ( N − 1) α = 0.05, z0.025 = 1.96 = µb 608 , داRI ,?ا2O اتY 8 ـ%J و,: ا,?ا2O" م اJر0ول ! ا0 ا7)ب( ام ا :, اR9ز2ا 0, 2 x , 2 F (x) = 2 1 − ( 2 − x ) , 2 1, x≤0 0 < x ≤1 1< x ≤ 2 x>2 :P [ال اAا اتY 8 ـ%J وAcceptance-Rejection Technique ;ل وا2: ا,:9C ام إم. ( e −0.2 = 0.8187 ) λ = 0.2 w2 Poisson Variates ن2ا2 R9ز2I RI ,?ا2O :3ارزم ه2ات ا27 .7 ا7 3 [ال اA ! ا,?ا2O" م اJر0ا . P = 1 وn = 0 RV :1 ة27ا . P × Rn +1 ـP و لRn+1 3?ا2O %J و ر:2 ة27ا و6ا2 n وزد, اn ; أرT وإN = n MJ إ.? P < e − λ W إذا آ:3 ة27ا . 2 ة27 609 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? Uا@ ر ا ( 1 ق ا آ ةC ) P 241 دة ت2' 3 #>ا :, ا,b0 اR - S-أ :ول0ال اAا :ولH 37"9 !J ا6 إ دآ ن أ,:J !? G ل2'2 ز ! ! اR9ز2I Time Between Arrivals (Minutes) 1 2 3 4 Probability 0.23 0.37 0.28 0.12 . 2 ز50 ل "د2' ! و, )أ( و أز .,: ة ا:` ا3; ة2 ا, زq اري/I ن رج2)ب( آ ولH ا3; 5 7" ا, ز0 اR ( O هةO ة ) ا2 ا, زq ;2دة ا2- )ج( أ 2 ( χ 3,0.05 = 7.81 ) . α = 0.05 . .( E ,"J2 )ا :3 [ال اAا (7 ا7 ! أ ! ا رJ )إ:, م اJرq 0.25 0.01 0.93 0.70 0.66 0.74 0.79 0.47 0.68 0.18 0.88 0.07 0.99 0.51 0.04 0.01 0.43 0.60 0.59 0.55 0.64 0.10 0.61 0.22 0.85 0.42 0.01 0.98 0.05 0.20 0.11 0.23 0.68 0.41 0.96 0.48 0.11 0.59 0.11 0.10 مJر0 ا5. هW @ ر ; إذا آw2 اW Iق و2; Runs Test يH)أ( أم إ ر ا . .,?ا2O µb = b − ( 2n1n2 N ) − 1 2 2n1n2 1 2 2n1n2 ( 2n1n2 − N ) + ,σb = , Z0 = 12 2 N 2 N ( N − 1) 2n1n2 ( 2n1n2 − N ) N 2 ( N − 1) α = 0.05, z0.025 = 1.96 R7: 3?ا2OY ! %J 6 و,: ا,?ا2O" م اJر0ول ! ا0 ا7)ب( ام ا :, اR9ز2 ا, داR9 (M ` ) x , x = 1, 2,⋯ , 6 6 Y' أي أ x = smallest integer ≥ x ,J"م اI , ' مJ أر3 ل2 F (x) = :,N6 ) . x وي9 أآ ! أوa ' د 610 ! %J 4 وAcceptance-Rejection Technique ;ل وا2: ا,:9C )ج( ام . ( e −0.2 = 0.8187 ) λ = 0.2 w2 Poisson Variates ن2ا2 R9ز2I R9 3?ا2OY :3ارزم ه2ات ا27 .7 ا7 3 [ال اA ! ا,?ا2O" م اJر0إم ا . P = 1 وn = 0 RV :1 ة27ا . P × Rn +1 ـP و لRn+1 3?ا2O %J و ر:2 ة27ا و6ا2 n وزد, اn ; أرT وإN = n MJ إ.? P < e − λ W إذا آ:3 ة27ا . 2 ة27 :P [ال اAا "د3 6@ أR9ز2 ا. 29 "ه9 3 اG أ,`^ د أرw2 9 I !9 ا ز6 أ99 :ولH 7"9 29 !? Gا Number of Customers/Day Probability 8 0.35 10 0.30 12 0.25 14 0.10 :3 ا3 6@ اR9ز2 اS6 ,`^ر0ي د ! اO9 ن2 زMآ Number of Loafs/Customer Probability 4 0.4 8 0.3 12 0.2 16 0.1 . 29 "ه ا ز9 3 ا,`^ر0 د اw2 د6 وM م9 أ, 9و9 3 آ6 " دI ة وM آ3; ا9- J ام ر.3 [ال اA ! ا,?ا2O" م اJر0 ام ا:,N6 .(3U9 Mول آH م ! أول اJر0 ا,?اJ 611 %6 ! ا6 ا ا% هـ1422/1421 3 [ اM ` 3? U ر اz , ت-إ P 241 ا دة :ول0ال اA , -إ ( )أ 1 2 3 1 2 2 1 2 1 4 1 2 4 3 1 4 3 2 2 3 2 3 3 1 3 2 2 3 2 1 2 2 2 1 2 2 1 4 1 1 2 2 1 3 2 3 2 3 2 3 ()ب Count ( Oi ) 13 21 12 4 x 1 2 3 4 p (x) 0.26 0.42 0.24 0.80 Frequency 20 10 0 1 2 3 4 C8 Ei ,"J2 ا%: اS ()ج E1 = 50 × 0.23 = 11.5 E2 = 50 × 0.37 = 18.5 E3 = 50 × 0.28 = 14 E4 = 50 × 0.12 = 6 آ يR , J S و k (Oi − Ei ) i =1 Ei χ =∑ 2 0 2 (13 − 11.5) = 11.5 2 ( 21 − 18.5) + 18.5 2 (12 − 14 ) + 2 14 = 0.195652 + 0.337838 + 0.285714 + 0.666666 = 1.4859 2 ∵ χ 02 = 1.4859 < 7.81 = χ 3,0.05 612 ( 4 − 6) + 6 2 .ولH 7" اR9ز2 اRI ة2 ا,?ا2O" م اJر0ن اe ,? : ا,V`; اT w2 ا:3 [ال اA , -إ µ = 0.4485 w2 اW Iق و2; يH ا-2 + + + + + + + + + + + + + + + + + b = 21 , n1 = 21 , n2 = 19 , N = 40 2 × 21 × 19 1 µb = + = 20.45 40 2 2 × 21 × 19 × ( 2 × 21 × 19 − 40 ) 604884 = = 9.693654 σ b2 = 2 62400 ( 40 ) ( 40 − 1) 21 − 20.45 0.55 Z0 = = = 0.17665 9.693654 3.11346 ∵ Z 0 = 0.17665 < 1.96 = z0.025 + - - + + + - - .,?ا2O مJر0 ا5. أن ه,? : ا,V`; اT ; ()ب F (x) = x = R, x = 1, 2,...,6; R ∼ U ( 0,1) 6 X =R 6 X = 6 R, R ∼ U ( 0,1) ∴ .e 6 و1 ! X 3?ا2O" اY , ' مJ أرM X = 6 R , R ∼ U ( 0,1) 3/و :3 ه, 27 ا%:ا X 1 = 6 × 0.25 = 1.5 = 2, X 4 = 6 × 0.70 = 4.2 = 5, X 2 = 6 × 0.01 = 0.06 = 1, X 3 = 6 × 0.93 = 5.58 = 6 X 5 = 6 × 0.66 = 3.96 = 4, X 6 = 6 × 0.74 = 4.44 = 5 2,1,6,5,4,5 أي ()ج step 1: set n = 0, P = 1 step 2 : R1 = 0.25, P → P × R1 , P = 1 × 0.25 = 0.25 step 3 : Sice P = 0.25 < e − λ = 0.8187, accept N = 0. step 1: set n = 0, P = 1 step 2 : R1 = 0.01, P → P × R1 , P = 1 × 0.01 = 0.01 step 3 : Sice P = 0.01 < e − λ = 0.8187, accept N = 0. step 1: set n = 0, P = 1 step 2 : R1 = 0.93, P → P × R1 , P = 1 × 0.93 = 0.93 step 3 : Sice P = 0.93 ≥ e − λ = 0.8187, reject n = 0, and return to step 2 with n = 1. step 2 : R2 = 0.70, P → P × R2 , P = 0.93 × 0.70 = 0.65 step 3 : Sice P = 0.65 < e − λ = 0.8187, accept N = 1. 613 step 1: set n = 0, P = 1 step 2 : R1 = 0.66, P → P × R1 , P = 1 × 0.66 = 0.66 step 3 : Sice P = 0.66 < e − λ = 0.8187, accept N = 0. 0,0,1,0 :3ب ه27 ا3?ا2O" اY ! ا%J 4 إذا :P [ال اA , -إ م29 M/ !? G( "د ا1) ول- " Number of Customers 8 10 12 14 CDF 0.35 0.65 0.90 1 Random Number 0.01 - 0.35 0.36 - 0.65 0.66 – 0.90 0.91 - 1 ن2 زM/ ,`^ر0( "د ا2) ول- " Number of Loafs 4 8 12 16 CDF 0.40 0.70 0.90 1 Random Number 0.01 - 0.40 0.41 - 0.70 0.71 – 0.90 0.91 - 1 8 !? G د اH (1) ول- ! وR = 0.25 :ول0م ا2ا Customer Number 1 2 3 4 5 6 7 8 R 0.01 0.93 0.70 0.66 0.74 0.79 0.47 0.68 Number of Loafs 04 16 08 08 12 12 08 08 Total = 76 8 !? G د اH (1) ول- ! وR = 0.18 :3 [م ا2ا Customer Number 1 2 3 4 5 6 7 8 R 0.88 0.07 0.99 0.51 0.04 0.01 0.43 0.60 Number of Loafs 12 04 16 08 04 04 08 08 Total = 64 10 !? G د اH (1) ول- ! وR = 0.59 :P [م ا2ا 614 Customer Number 1 2 3 4 5 6 7 8 9 10 R 0.55 0.64 0.10 0.61 0.22 0.85 0.42 0.01 0.98 0.05 Number of Loafs 08 08 04 08 04 12 08 04 16 04 Total = 76 8 !? G د اH (1) ول- ! وR = 0.20 :R م اا2ا Customer Number 1 2 3 4 5 6 7 8 R 0.11 0.23 0.68 0.41 0.96 0.48 0.11 0.59 Number of Loafs 04 04 08 08 16 08 04 08 Total = 60 8 !? G د اH (1) ول- ! وR = 0.11 : م ا2ا Customer Number 1 2 3 4 5 6 7 8 R 0.10 0.25 0.01 0.93 0.70 0.66 0.74 0.79 Number of Loafs 04 04 04 16 08 08 12 12 Total = 64 w2 إذا. `^ ر76,64,76,60,64 :3 م ه9 أ, 3; , ا,`^ر0ا ;ن د أ./وه . `^ ر68 2 ه,`^ر0د ا 615 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1423/1422 ول0 اM ` 3? Uا@ ر ا ( 1 ق ا آ ةC ) P 241 دة ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول 2 ز50 م "دN ا2C 6 أ3; , ! اG , ا ت اWH 5 7 5 8 5 7 8 6 8 6 7 8 7 8 6 9 8 6 8 8 8 9 9 7 6 9 6 9 6 7 7 8 5 9 6 7 9 5 9 5 6 6 8 5 6 9 7 9 7 5 . هاتO ا5.U S 3 6 إR9ز2I C (أ . مNا ا.U , ! ز20 و (ب :ا ال ا :, اR9ز2 ا, داR9 (M ` ) R7: 3?ا2OY ! , J 20 و x , x = 1, 2,⋯ ,6 6 Y' أي أ x = smallest integer ≥ x ,J"م اI , ' مJ أر3 ل2 F (x) = :,N6 ) . x وي9 أآ ! أوa ' د : ا ال ا "د3 6@ أR9ز2 ا. 29 "ه9 3 اG أ,`^ د أرw2 9 I !9 ا ز6 أ99 :ولH 7"9 29 !? Gا Number of Customers/Day Probability 8 0.35 10 0.30 12 0.25 14 0.10 :3 ا3 6@ اR9ز2 اS6 ,`^ر0ي د ! اO9 ن2 زMآ Number of Loafs/Customer Probability 4 0.4 8 0.3 12 0.2 16 0.1 . 29 "ه ا ز9 3 ا,`^ر0 د اw2 د6 وM م9 أ10 9و9 3 آ6 616 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1423/1422 ول0 اM ` 3? Uا@ ر ا ( 1 ق ا آ ةC ) P 241 دة ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول 2 ز50 م "دN ا2C 6 أ3; , ! اG , ا ت اWH 5 6 5 7 8 7 6 5 8 7 5 7 6 7 9 9 7 5 9 6 9 6 5 8 7 5 9 8 7 6 8 8 9 8 8 7 9 6 9 9 6 9 6 8 5 8 7 8 6 6 . هاتO ا5.U S 3 6 إR9ز2I C (ت . مNا ا.U , ! ز20 ث( و :ا ال ا :, اR9ز2 ا, داR9 (M ` ) R7: 3?ا2OY ! , J 20 و x , x = 1, 2,⋯ ,6 6 دY' أي أ x = smallest integer ≥ x ,J"م اI , ' مJ أر3 ل2 F (x) = :,N6 ) . x وي9 أآ ! أوa ' : ا ال ا ! %J 5 وAcceptance-Rejection Technique ;ل وا2: ا,:9C ام . λ = 0.5 w2 Poisson Variates ن2ا2 R9ز2I R9 3?ا2OY :3ارزم ه2ات ا27 . P = 1 وn = 0 RV :1 ة27ا . P × Rn +1 ـP و لRn+1 3?ا2O %J و ر:2 ة27ا و6ا2 n وزد, اn ; أرT وإN = n MJ إ.? P < e − λ W إذا آ:3 ة27ا . 2 ة27 :! ا ال اا !? G "د ا3 6@ أR9ز2 ا. 29 "ه9 3 اG أ,`^ د أرw2 9 I !9 ا ز6 أ99 :ولH 7"9 29 Number of Customers/Day Probability 8 0.35 10 0.30 12 0.25 14 0.10 :3 ا3 6@ اR9ز2 اS6 ,`^ر0ي د ! اO9 ن2 زMآ Number of Loafs/Customer Probability 4 0.4 8 0.3 12 0.2 16 0.1 . 29 "ه ا ز9 3 ا,`^ر0 د اw2 د6 وM م9 أ, 9و9 3 آ6 617 %6 ! ا6 ا ا% هـ1423/1422 ول0 اM ` 3? U ا@ ر ا,b0 ,-ذ2 ت-إ ( 1 ة/ ق اC ) P 241 دة : ال اول/ =إ H Minitab )أ( ام MTB > Tally C1; SUBC> Counts; SUBC> CumCounts; SUBC> Percents; SUBC> CumPercents. Summary Statistics for Discrete Variables SerTime Count CumCnt Percent CumPct 5 8 8 16.00 16.00 6 11 19 22.00 38.00 7 10 29 20.00 58.00 8 11 40 22.00 80.00 9 10 50 20.00 100.00 N= 50 Input ا تM آ ي أو مR م إ ر إS 3 6 إR9ز2I 7 Analyzer Distribution Summary Distribution: Discrete Expression: Disc(5, 9) Square Error: 0.002400 Chi Square Test Number of intervals = 5 Degrees of freedom = 4 Test Statistic = 0.6 Corresponding p-value > 0.75 Data Summary Number of Data Points = 50 Min Data Value =5 Max Data Value =9 Sample Mean = 7.08 Sample Std Dev = 1.38 Histogram Summary Histogram Range = 4.5 to 9.5 618 Number of Intervals = 5 ا ت79 9 و5 ! Discrete R7: اR9ز2 أن اH :3IT آMinitab 3; ل6 ,9 " م أ ا, ! ز20 2 ()ب MTB > Sample 20 C1 c4; SUBC> Replace. MTB > print c4 Data Display C4 6 9 8 5 8 8 8 6 6 6 8 8 8 9 5 7 6 8 6 5 : ال ا/ =إ R9ز2 ا, داR9 3?ا2O Y %J 2 F (x ) = x , x = 1,2,..., 6 6 :3 اM " x R = F (x ) = , x = 1,2,..., 6 6 ∴ x = 6R, R ∈ (0,1) ,J" م ا, ' مJل ار2 و, ' ^ %J 7"9 ا.وه x = smallest integer ≥ x H Minitab ام MTB > SUBC> MTB > MTB > MTB > MTB > Random 20 c1; Uniform 0.0 1.0. let c2=6*c1 let c3=c2+0.5 round c3 c4 print c4 Data Display C4 5 5 3 2 6 6 1 6 5 4 6 3 4 4 5 4 1 5 1 5 MTB > : ال ا/ =إ e −0.5 = 0.606531 619 1)n = 0, P = 1 2)R1 = 0.771828 ⇒ P → PR1 = 0.771828 3)0.771828<0.606531 ⇒ NO → reject n = 0 ⇒ n = 1 2)R2 = 0.428251 ⇒ P → PR2 = 0.3305361 3)0.3305361 < 0.606531 ⇒ YES → N = 1 1)n = 0, P = 1 2)R1 = 0.995495 ⇒ P → PR1 = 0.995495 3)0.995495<0.606531 ⇒ NO → reject n = 0 ⇒ n = 1 2)R2 = 0.067969 ⇒ P → PR2 = 0.067663 3)0.067663 < 0.606531 ⇒ YES → N = 1 1)n = 0, P = 1 2)R1 = 0.815945 ⇒ P → PR1 = 0.815945 3)0.815945<0.606531 ⇒ NO → reject n = 0 ⇒ n = 1 2)R2 = 0.833423 ⇒ P → PR2 = 0.680027 3)0.680027 < 0.606531 ⇒ NO → reject n = 1 ⇒ n = 2 2)R3 = 0.344675 ⇒ P → PR3 = 0.234388 3)0.234388 < 0.606531 ⇒ YES → N = 2 1)n = 0, P = 1 2)R1 = 0.565971 ⇒ P → PR1 = 0.565971 3)0.565971<0.606531 ⇒ NO → reject n = 0 ⇒ n = 1 2)R2 = 0.560698 ⇒ P → PR2 = 0.317339 3)0.317339 < 0.606531 ⇒ YES → N = 1 1)n = 0, P = 1 2)R1 = 0.718902 ⇒ P → PR1 = 0.718902 3)0.718902<0.606531 ⇒ NO → reject n = 0 ⇒ n = 1 2)R2 = 0.631130 ⇒ PR2 = 0.453721 3)0.453721<0.606531 ⇒ YES → N = 1 1,1,2,1,1 :3 ه%:ا :! ال اا/ =إ :3 آ,9 " اول- ن2/ ,9اء ا آ ة او-@ م29 M/ !? G د ا,9 " ولNumber of Customers/Day 8 10 Probability 0.35 0.30 620 Cumulative Probability 0.35 0.65 12 14 0.25 0.10 0.90 1.00 ن2 زM/ ,`^ر0 د ا,9 " ولNumber of Loafs/Customer 4 8 12 16 Probability 0.4 0.3 0.2 0.1 إذا د0.35 و0 ! %Jا ا.أن ه Number of Customer 1 2 3 4 5 6 7 8 Total :ول0م ا2ا و0.125002 3?ا2O %J رS !? G د ا-2 8 = ول0م ا2 !? Gا 8 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Random Number 0.747727 0.165930 0.807279 0.691822 0.332073 0.865662 0.954414 0.605033 إذا0.65 و0.35 ! %Jا ا.أن ه Cumulative Probability 0.4 0.7 0.9 1.0 Number of Loafs 12 04 12 08 04 12 16 08 76 `^ ر76 = ول0م ا2 , ا,`^ر0إذا د ا :3 [م ا2ا و0.436581 3?ا2O %J رS !? G د ا-2 10 = 3 [م ا2 !? Gد ا 10 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number 1 0.795704 2 3 4 5 6 7 8 9 10 Total 0.191331 0.326339 0.760580 0.232169 0.766908 0.897992 0.498371 0.593898 0.917927 Number of Loafs 12 04 04 12 04 12 12 08 08 16 92 `^ ر92 = 3 [م ا2 , ا,`^ر0إذا د ا :P [م ا2ا 621 إذا1.00 و0.90 ! %Jا ا.أن ه و0.975134 3?ا2O %J رS !? G د ا-2 14 = 3 [م ا2 !? Gد ا 14 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Number of Customer Random Number 1 0.500345 2 3 4 5 6 7 8 9 10 11 12 13 14 Total 0.377338 0.497917 0.560237 0.742156 0.066540 0.953874 0.048342 0.133688 0.145730 0.313932 0.656628 0.146369 0.688054 إذا0.90 و0.65 ! %Jا ا.أن ه Number of Customer `^ ر96 = P [م ا2 , ا,`^ر0إذا د ا :R م اا2ا و0.852771 3?ا2O %J رS !? G د ا-2 12 = 3 [م ا2 !? Gد ا 12 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Random Number 1 0.102021 2 3 4 5 6 7 8 9 10 11 12 Total 0.352606 0.739246 0.278503 0.495604 0.471064 0.214966 0.784797 0.922574 0.011573 0.530562 0.811989 إذا0.90 و0.65 ! %Jا ا.أن ه Number of Customer Number of Loafs 08 04 08 08 12 04 16 04 04 04 04 08 04 08 96 Number of Loafs 04 04 12 08 08 08 04 12 16 04 08 12 100 `^ ر100 = R م اا2 , ا,`^ر0إذا د ا : م ا2ا و0.676495 3?ا2O %J رS !? G د ا-2 12 = 3 [م ا2 !? Gد ا 12 ?! اـGن ! ا2 زM/ ,`^ر0ن د اh د ا Random Number 622 Number of Loafs 1 0.113377 2 3 4 5 6 7 8 9 10 11 12 Total 0.682001 0.860924 0.616596 0.670505 0.996726 0.203282 0.616869 0.337997 0.273178 0.832140 0.575714 04 08 12 08 08 16 04 08 04 04 12 08 96 `^ ر96 = م ا2 , ا,`^ر0إذا د ا 2 ه29 , ا,`^ر0 د اw2 إذا Average Number of Loafs = 76 + 92 + 96 + 100 + 96 460 = = 92 5 5 . 29 `^ ر92 ز إادMf;0 ! اg.و 623 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ #دة C) 241ق اآة ( 1 ا@ ر ا M ` 3? Uا[ 1423/1422 3هـ ا 3 ! Gت أ= ! = U/2 -ا' /Kا : ا ال اول: SCاOاء ا R9 !" ] 3 2ا2ز R9ا@ 3 6ا :3 4 0.10 2 0.20 3 0.12 1 0.25 Daily Demand Probability 0 0.33 `9ا Gون ! ه.ا ا ] آ ," Mا 9م ;ذا و -ا& ا ! MJاو 9وي 6و6ات SC %9 10و6ات .أي : : I ,Cرا Gون ا 2-2د و C .AITت ) ,f92"Iأي " : I و'2ل Gون .(9-ز ! ا:م ) Lead Timeوه 2ا ! Gا 27:ع ! !6و RVاS7 6و' R9 (&2ا2ز R9ا@ 3 6ا :3 3 0.2 1 0.3 2 0.5 )Lead Time (Days Probability ا ! اول ا20ع إذا آ ن ا Gون اا? 12 3و6ة و C -2ITت ; Rا Gون " ; آ9 3و 6 9أ .U Rا ا Nم 6 .د ,ا 90م ا6 3ث ; ,C : I 3; : Uو, ا62ات ا WC 3و : I %و w2د ا62ات ا O , 27اء ا. 2 ا ال ا: ز ! ا ة 2 Lifetimeات 3 ' :و 3; RVار 26ل ا0رض R9ا2ز R9ا :3 0.4e−0.4 x , x≥0 f ( x) = otherwise 0, ام MINITABأو EXCELو 1000أز 6 ,ة وأ S-ا :3 -1ه 2إ 6ل أن ا :ا G9T 3ال 2 5 " M "9ات؟ -2ه 2إ 6ل أن ا :ا 3 ! M "9 3و 2 6ات " إ&JC؟ ) I gH? :6 -3ا@ , -ه 5.ا`:ة إ ر.( 9 ا ال ا : 624 xi 3?ا2O Y هاتO M[ 9 3 اري ا/ول اHا xi Observed Frequency 0 118 1 274 2 298 3 169 4 105 5 25 6 8 7 1 8 2 . α = 0.05 . 2 w2 ن2ا2 R9ز2I & 3?ا2O Y xi ان,? : ا,V`أ ا 625 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ إ= ت 60 /#ر ا / W1ا 1423/1422هـ #دة C) 241ق اآة ( 1 إ= /ال اول: آ ة او2/ ,9ن اHاول ا :, ول " ,9ا S7ا:3 2Random Number 0.00 – 0.33 0.34 – 0.58 0.59 – 0.78 0.79 – 0.90 0.91 – 1.00 Cumulative Probability 0.33 0.58 0.78 0.90 1.00 Probability 0.33 0.25 0.20 0.12 0.10 Demand 0 1 2 3 4 Cumulative Probability 0.3 0.8 1.0 Probability 0.3 0.5 0.2 Lead Time 1 2 3 ول " ,9ز ! ا:م:Random Number 0.00 – 0.30 0.31 – 0.80 0.81 – 1.00 ا آ ة: ا6'fع اول: ا2م ا0ول: ا Gون ا 2-2د 12 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?0.419225 3 ا2م ا[ :3 ا Gون ا 2-2د 11 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?0.672281 3 ا2م ا[ :P ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?0.556692 3 ا2م اا :R ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?0.179291 3 ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?0.066128 3 ا2م ا دس: ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?0.136442 3 ا2م ا :R ! -ول ا " ,9ا2/9 S7ن 1و6ة. ! -ول ا " ,9ا2/9 S7ن 2و6ة. ! -ول ا " ,9ا2/9 S7ن 1و6ة. ! -ول ا " ,9ا2/9 S7ن 0و6ة. ! -ول ا " ,9ا2/9 S7ن 0و6ة. ! -ول ا " ,9ا2/9 S7ن 0و6ة. 626 ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.219630 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع ا0ول ! :Iا Gون 8و6ات ,Hا` .,C RfIT : ا'6ع ا: ا2م ا0ول: ا Gون ا 2-2د 8 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.345517 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :3 ا Gون ا 2-2د 7 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.520493 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :P ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.616346 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 4 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.639711 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا : ا Gون ا 2-2د 2 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.330888 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا دس: ا Gون ا 2-2د 2 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.949622 3ول ا " ,9ا2/9 S7ن 4و6ة. ) : , 6و(!I6 ا2م ا :R ا Gون ا 2-2د 0 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.640219 3ول ا " ,9ا2/9 S7ن 2و6ة. ) : , 6و(!I6 ; ,9 U 3ا20ع ا[ ! :9 % 3ا Gون و6ث 4 :و6ات ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.315576 3ز ! ا:م 29 2م. ا'6ع ا : ا2م ا0ول: ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.753165 3ول ا " ,9ا2/9 S7ن 2و6ة. ) : , 6و(!I6 ا2م ا[ :3 ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.132686 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.203047 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م اا :R 627 ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.592781 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.641142 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا دس: ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.711578 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا :R ا Gون ا 2-2د 4 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.976901 3ول ا " ,9ا2/9 S7ن 4و6ة. ; ,9 U 3ا20ع ا[ ! :9 % Pا Gون و 9 %ث .: ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.612898 3ز ! ا:م 29 2م. ا'6ع اا !: ا2م ا0ول: ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.940874 3ول ا " ,9ا2/9 S7ن 4و6ة. ) 4 : , 6و6ات( ا2م ا[ :3 ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.830444 3ول ا " ,9ا2/9 S7ن 3و6ة. ) 3 : , 6و6ات( ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.761498 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.823155 3ول ا " ,9ا2/9 S7ن 3و6ة. ا2م ا : ا Gون ا 2-2د 5 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.996509 3ول ا " ,9ا2/9 S7ن 4و6ة. ا2م ا دس: ا Gون ا 2-2د 1 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.382630 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا :R ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.018751 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع اا ! :9 % Rا Gون و6ث 7 :و6ات. ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.015373 3ز ! ا:م 29 1م. ا'6ع ا:"#$ ا2م ا0ول: 628 ا Gون ا 2-2د 0 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.599484 3ول ا " ,9ا2/9 S7ن 2و6ة. ) 2 : , 6و6ات( ا2م ا[ ) :3و' Wا ,7ا9Hة( ا Gون ا 2-2د 10 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.583797 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :P ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.835045 3ول ا " ,9ا2/9 S7ن 3و6ة. ا2م اا :R ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.362963 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا : ا Gون ا 2-2د 5 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.699827 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م ا دس: ا Gون ا 2-2د 3 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.089972 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا :R ا Gون ا 2-2د 3 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.155004 3ول ا " ,9ا2/9 S7ن 0و6ة. ; ,9 U 3ا20ع ا ! :Iا Gون 3و6ات و6ث 2 :و6ة ; 3ا ,9ا20ع. ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.424699 3ز ! ا:م 29 2م. ا'6ع ا دس: ا2م ا0ول: ا Gون ا 2-2د 3 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.373323 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ :3 ا Gون ا 2-2د 2 :و6ة. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.379252 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا[ ) :Pو' Wا ,7ا9Hة( ا Gون ا 2-2د 11 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.630487 3ول ا " ,9ا2/9 S7ن 2و6ة. ا2م اا :R ا Gون ا 2-2د 9 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.584059 3ول ا " ,9ا2/9 S7ن 1و6ة. ا2م ا : ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.138283 3ول ا " ,9ا2/9 S7ن 0و6ة. ا2م ا دس: ا Gون ا 2-2د 8 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.615948 3ول ا " ,9ا2/9 S7ن 2و6ة. 629 ا2م ا :R ا Gون ا 2-2د 6 :و6ات. ا.U S7ا ا2م :ا %Jا"2Oا?- ! 0.928577 3ول ا " ,9ا2/9 S7ن 4و6ة. ; ,9 U 3ا20ع ا دس ! :Iا Gون 2و6ات و 9 %ث .: ,Hا` 10 ,C RV :و6ات. 2و'2ل ا :,7ا %Jا"2Oا? 0.892844 3ز ! ا:م 3ا 9م. ) ,9 Uا آ ة( و Rfا ?] ;- 3ول آ :3 ا Gون ا 2-2د ا%J ا"2Oا?3 S7 اS7 12 11 9 8 8 8 8 8 0.419225 0.672281 0.556692 0.179291 0.066128 0.136442 0.219630 1 2 1 0 0 0 0 4 8 0.345517 0.520493 0.616346 0.639711 0.330888 0.949622 0.640219 1 1 2 2 0 4 2 12 0 0 0 10 0.753165 0.132686 0.203047 2 0 0 10 8 6 4 0 0.592781 0.641142 0.711578 0.976901 2 2 2 4 12 0 0 10 0.940874 0.830444 0.761498 4 3 2 8 5 1 0 0 0.823155 0.996509 0.382630 0.018751 3 4 1 0 17 ا20ع)(5 ا2م ا0ول ا2م ا[ 3 0 10 0.599484 0.583797 2 1 ا2م ا[ P 9 0.835045 3 ا 90م ا20ع )(1 ا2م ا0ول ا2م ا[ 3 ا2م ا[ P ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع ا20ع)(2 ا2م ا0ول ا2م ا[ 3 ا2م ا[ P ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع ا20ع)(3 ا2م ا0ول ا2م ا[ 3 ا2م ا[ P ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع ا20ع)(4 ا2م ا0ول ا2م ا[ 3 ا2م ا[ P ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع 8 7 6 4 2 2 0 0 ! :I ا Gون ,H ا` ,C RfIT 10,C RV ا: ا%J ا"2Oا?3 2'2ل ا,7 ز! ا:م 0 2 2 4 0.315576 2 2 و'2ل ا,7 0 10,C RV 2 0.612898 2 4 3 و'2ل ا,7 0 10,C RV 7 0.015373 1 2 و'2ل ا,7 630 ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع ا20ع)(6 ا2م ا0ول ا2م ا[ 3 ا2م ا[ P ا2م اا R ا2م ا ا2م ا دس ا2م ا R ,9 Uا20ع 0.362963 0.699827 0.089972 0.155004 1 2 0 0 9 6 5 3 3 3 3 2 11 0.373323 0.379252 0.630487 1 1 2 9 8 8 6 2 0.584059 0.138283 0.615948 0.928577 1 0 2 4 11 3 2 10,C RV 0.424699 2 و'2ل ا,7 2 0 10,C RV 0.892844 3 ا:g1 ا20ع 1 2 3 4 5 6 اS7 4 12 12 17 9 11 ا 2 Hع 65 د ا 90م ا6 3ث ;: U 0 2 1 2 1 0 6 ا ) :ا S7ا(R? f 0 4 2 7 2 0 15 ه ك 6أ 9م 6ث ; : Uاي ! 14.3%ا 90م. د ا62ات ا WC 3و : I %ه 15 3و6ة أي , 23.07%ا S7ا.R? f w2د ا62ات ا O , 27اء ا 10.83 2و6ة وه 3ا ! د ا62ات ا3 . UC %9 631 : ال ا/ =إ µ= 1 = 2.5 w2 أي أن اλ = 0.4 H , 6@ ا,; [/ ا,! دا 0.4 :3 وا آ0 واMINITAB T م او, J 1000 2 MTB > RANDOM 1000 C1; SUBC> EXPO 2.5. MTB > ىY ا%: ا- او%X A د2 " ا3; EXCEL ! , `' 3; U: ة وا2 ا%: اdا ولHن ا2 وآU 6 ا اد%: اUI 9 U 7I P تb`ن ا2ى ت وآ/وا :3 ا Class Interval xi ≤ 0 Relative Frequency 0 0 < xi ≤ 1 0.331 1 < xi ≤ 2 0.224 2 < xi ≤ 3 0.144 3 < xi ≤ 4 0.101 4 < xi ≤ 5 0.056 5 < xi ≤ 6 0.049 6 < xi ≤ 7 0.035 7 < xi ≤ 8 0.018 8 < xi ≤ 9 0.012 9 < xi ≤ 10 0.006 10 < xi ≤ 11 0.007 11 < xi ≤ 12 0.006 12 < xi ≤ 13 0.006 13 < xi ≤ 14 0.001 14 < xi ≤ 15 0.003 15 < xi ≤ 16 0 16 < xi ≤ 17 0.001 17 < xi 0 Cumulative Relative Frequency 0 = P ( X ≤ 0) 0.331 = P ( X ≤ 1) 0.555 = P ( X ≤ 2 ) 0.699 = P ( X ≤ 3) 0.800 = P ( X ≤ 4 ) 0.856 = P ( X ≤ 5 ) 0.905 = P ( X ≤ 6 ) 0.940 = P ( X ≤ 7 ) 0.958 = P ( X ≤ 8 ) 0.970 = P ( X ≤ 9 ) 0.976 = P ( X ≤ 10 ) 0.983 = P ( X ≤ 11) 0.989 = P ( X ≤ 12 ) 0.995 = P ( X ≤ 13) 0.996 = P ( X ≤ 14 ) 0.999 = P ( X ≤ 15 ) 0.999 = P ( X ≤ 16 ) 1.000 = P ( X ≤ 17 ) :ولH! ا ات2 5 " M "9 الG9T 3 ا: ل ان ا6 إ-1 P ( X ≥ 5 ) = 1 − P ( X < 5 ) = 1 − 0.856=0.144 .ولH P [د ا2 " ! اgوذ ات2 6 و3 ! M "9 3 ا: ل ان ا6 إ-2 P ( 3 ≤ X ≤ 6 ) = P ( X ≤ 6 ) − P ( X ≤ 3) = 0.905 - 0.699 = 0.206 .ولH ا3; P [د ا2 " ام اf9ا -3 632 1) P ( X ≤ 5 ) = ∫ 0.4e−0.4 x = 1 − e −0.4(5) = 0.864664717 5 0 1-P ( X ≤ 5 ) = 0.1353353 2) P ( 3 ≤ X ≤ 6 ) = ∫ 0.4e −0.4 x = e −0.4(3) − e −0.4( 6) = 0.210476259 6 3 (, ! [ اآ.AI ل ?] أدق2 633 ) ]? ا3; رب:I ان ه ك6 : ال ا/ =إ :3 آ,"J2 ارات ا/ اS E3 = 1000 P ( X E4 = 1000 P ( X E5 = 1000 P ( X E6 = 1000 P ( X E7 = 1000 P ( X E8 = 1000 P ( X E9 = 1000 P ( X 0 e 2 = 135.335283 0! e −2 21 = 1) = 100 = 270.6705665 1! e −2 2 2 = 2 ) = 100 = 270.6705665 2! e −2 23 = 3) = 100 = 180.4470443 3! e −2 2 4 = 4 ) = 100 = 90.22352216 4! e −2 25 = 5 ) = 100 = 36.08940886 5! e −2 26 = 6 ) = 100 = 12.02980295 6! e −2 27 = 7 ) = 100 = 3.43708656 7! e − 2 28 = 8 ) = 100 = 0.85927164 8! E1 = 1000 P ( X = 0 ) = 100 E2 = 1000 P ( X −2 :ول- ن2/و i xi Observed Oi Expected Ei 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 Total 118 274 298 169 105 25 8 1 2 1000 135.3353 270.6706 270.6706 180.447 90.22352 36.08941 12.0298 3.437087 0.859272 999.7626 U ,: ا, اR ! ; ] ا5 ! MJة أ0 ا! ا3; ,"J2 ا, : أن ا6 xi Observed Oi Expected Ei ( Oi − Ei ) 0 1 2 3 4 118 274 298 169 105 135.3353 270.6706 270.6706 180.447 90.22352 2.220504 0.040953 2.759428 0.726162 2.420038 634 2 Ei 3.40751 1.737578 13.31217 36.08941 16.32616 999.7626 χ 62 = 13.31217 , 2 25 11 1000 آ ي R Iا χ وآ ي R IاHو= 12.5916 , ان ا , :ا , 2اآ ! ا , :اHو ; ; ,ا` ,Vا ,? :ان Y xi 2Oا?2I & 3ز2 R9ا2ن . α = 0.05 2 w2 2 0.05,6 635 5 ≥6 Total ا ا ا %Jا@ 6ء و 2ث ا" ت دة C ) P 342ق ا آ ة ( 2 إ ر ا` Mا0ول 1421هـ 1422/هـ ا 3 ! Gت أ R - S-ا ,b0ا :, ا ال اول: ا( ف ,:9Cآ ة ا60اث ا ` Discrete-event simulation method ,و أذآ أ [U , ب( Jرن ! - ,:9Cو ,ا60اث Event schedualingو M `I ,:9Cا" ت Process 3; interactionا آ ة ج( Jرن ! :I ,/ /م ز ! ا آ ة ا " ة ا60اث Next event time advanceو ا[ Fixed increment time advance , ا ال ا: آ2/9 , Gن ! د ! ا2ا 3آ N & %U Mم 2 Cر ، FIFOأي ز 2ن M /9 ا R ,ا دم ا0ول &H9إ ا دم ا[ 3و ! " إآ & ا R ,ا دم ا[ Y9 3در ا Nم` .ض أن ز ! ! ا2'2ل !? Gدم ا0ول & 2Iز R9ا w2 3د,:J وا6ة .ز ! ا ,ا دم ا0ول Uأ2I f9ز R9ا 0,7 w2 3د ,:Jو ا دم ا[ 2I U 3ز R9ا 0،9 w2 3د .,:Jأو -ا : GPSS 3 أ( أ-ي آ ة Nم "د 100ز 2ن وJر w2ز ! ا@ Nر w2 ، !? Gد ا 3; ،!? Gآ2 C ! Mر ا د ! وJر ;" ,آ ! Mا د !. ب( `ض أ& ; -29ة ز ! &-2 ,ا دم ا0ول إ ا دم ا[ 3وا2I U 3زR9 ! MXد ,:JوXث د .? Jأ إ-اء ا آ ة W Iه 5.اNوف وأو -ا9:ات ا .,: ج( `ض أن ! %20ا 9T !? Gج إ ,ا دم ا[ Y9 M 3در ا Nم " إآ ل ا R ,ا دم اTول .أ -ا آ ة W Iه 5.اNوف وأو -ا9:ات ا .,: 636 %ا ا ! 6ا%6 ء و 2ث ا" ت %Jا@6 آ ,ا"2م ," -ا 2" gد ا@ ر ا[ 0 3ل ا` Mا[ 1422/1421 3هـ دة ) P 342ا آ ة ( 2 ا, 2 :! G أ 3 S-وا ! w:; 6ا ,b0ا :GPSS WORLD , )أ( ! ," 9C ! ,"7J R Iا" ت ،آ . ` !:J RI U Mا" ,ا0و Iج إ ! 20%ا " R7:د . U" Iا" ! ا[ ,وا[ [ I ,ج آ U Mإ 15%و ! 5%ا " R7:د U" Iا2ا ! 60% .3ا R7:ا " د 2/I U" Iن &` Iو .I ، scrappedواـ 40%ا I ,Jج ا 3إ دة " ! ,Hا" ,ا U %I 3ا;. ' 9- ,"7J ,ة 3; %9ا w2آ 30 Mد2 ,:Jز R9ا .3ا , " ! GاTو 7"9 Hول ا :3 Time For First Process 0.15 0.29 0.22 0.16 0.13 0.05 45 38 32 21 14 10 Frequency )Process time (mins ا" ,ا[ YI ,ق 15±6د ? Jوز ! ا" ,ا0ة & 2Iز 24 w2 3"C R9د ,:Jو إ اف " ري 4د 6 .? Jآ 3ت ا Rـ ! ., / ,"7J 100ا ! Gاhزم g. ود ا R7:ا ;.,V2 أو )ب( Gون ] 2 & %/ 9 3? Uا ,7ا ,"-دور ,9ا . 2ا Gون ا@ ا?2/9 3ن ! 1000و6ة .ا S7ا 40 ! Y9 3 2و 63و6ة و 6ل وي .ا Gون ا Uف ه 1000 2و6ة ،اي ان M9"Iا Gون S7 %9ا`ق ! ا Gون ا 2-2د و 1000و6ة; .ذا آ ن ا Gون ا 2-2د ه 800 2و6ة او اآ[ ;! "9ل ا Gون g. ا2Tع .اOآ N M "I ,م ,ا 9م 2zع .ز ! ا:م M'2 lead timeا ,7ه2 ا2ع وا 6 .6آ N 3م ا Gون ة 29 200م و ; Iإذا آ ن ه ك اي G :ون .stockouts 637 ا ا ا هـ1422/1421 3 [ اM ` ل ا0 3 [ ر اz , ت-إ (2 ) آ ةP 342 ا ة (, ا,?ا2O"اد ا0 ا,H _I ]? ا:,N6 ) (ال )أA , -إ ***************************************************************** * Quality Control Program * * Time units are in minutes * ***************************************************************** RMULT 93211 * Definitions Transit TABLE M1,100,100,20 ;Transit Time Process FUNCTION RN1,D7 0,0/.05,10/.18,14/.34,21/.56,32/.85,38/1.0,45 ***************************************************************** GENERATE (Exponential(1,0,30)) ASSIGN 1,FN$Process ;Process time in P1 Stage1 SEIZE Machine1 ADVANCE P1 ;Process 1 RELEASE Machine1 ADVANCE 2 ;Inspection TRANSFER .200,,Rework1 ;20% Need rework ***************************************************************** Stage2 SEIZE Machine2 ADVANCE 15,6 ;Process 2 RELEASE Machine2 ADVANCE 2 ;Inspection TRANSFER .150,,Rework2 ;15% Need rework ***************************************************************** Stage3 SEIZE Machine3 ADVANCE (Normal(1,24,4)) ;Process 3 RELEASE Machine3 ADVANCE 2 ;Inspection 3 TRANSFER .050,,Rework3 ;5% need rework TABULATE Transit ;Record transit time TERMINATE 1 ***************************************************************** Rework1 TRANSFER .400,,Stage1 TERMINATE Rework2 TRANSFER .400,,Stage2 TERMINATE Rework3 TRANSFER .400,,Stage3 TERMINATE (, ا,?ا2O"اد ا0 ا,H _I ]? ا:,N6 ) (ال )بA , -إ ********************************************************************* * * Periodic Review Inventory Model * * Time units are in days ********************************************************************* * Definitions of non block entities 638 RMULT 39941 Stock STORAGE 10000 ;Warehouse can hold 10000 Stock TABLE S$Stock,100,100,20 ;Table for inventory amts Orderqty VARIABLE Target-S$Stock ;Order quantity Demand VARIABLE RN1@24+40 ;Daily demand Target EQU 1000 ;Initial stock level Reorder EQU 800 ;Reorder point ********************************************************************* * The reorder process GENERATE 5,,,,1 ;Review xact, Priority=1 TEST L S$Stock,Reorder,Skip ;Is stock < Reorderpt ASSIGN 2,V$Orderqty ;Parameter 2=Order quantity Custwait ADVANCE 5 ;Lead time is 5 days ENTER Stock,P2 ;Stock increases by P2 Skip TERMINATE ;Ordering xact is finished ********************************************************************* * The daily demand decrements quantity on hand GENERATE 1 ;Daily demand transaction ASSIGN 1,V$Demand ;Parameter 1(P1)=daily demand TABULATE Stock ;Record daily stock TEST GE S$Stock,P1,Stockout ;Can order be filled LEAVE Stock,P1 ;Remove demand from stock TERMINATE 1 ;Daily timer Stockout TERMINATE 1 ;Daily timer ********************************************************************* * Initialize the inventory GENERATE ,,,1,10 ;Set initial stock ENTER Stock,Target ;Set init stock level=target TERMINATE ;Xact is terminated 639 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? Uا@ را ( 2 ) ا آ ةP 342 دة ت3 :! Gا :3 ال اA ا3 S-أ ة6ا2ة ا9Hي اO9 ،&? U" ?اH د ! ا29 ?ا- R? يO9 CاJ R عI م2 ا,9 U 3; 3:I 3ا? اH ا. ل9 ر2 U"9 ل و9 ر1.50 ا ;ن./ وه،?ا- 10 ! ن2/I مG6 3; ي ! اOI ?اH ا.ة6ا2ة ا9H , ه20 ه ك-2I R? ! ة ا. 29 ة9- d ا... او70 او60 او50 ي إO9 ?اH اR? تT 6 م "" و29س &" وe T" م29" و-" م29 ، رq م90اع ! ا2 أ,XX ع2 S6 ?اH ا3 S7 اR9ز2I .(! أ ! ا رJ )إ3ا2 ا0.35,0.45,0.25 :3 ول اH 7"9 م2ا Demand Probability Distribution Demand 40 50 60 70 80 90 100 Good Fair 0.03 0.05 0.15 0.20 0.35 0.15 0.07 0.10 0.18 0.40 0.20 0.08 0.04 0.00 Poor 0.44 0.22 0.16 0.12 0.06 0.00 0.00 .a أ ر: 9 36 29 ?اH اR? U9O9 3ا? اH ! اM[ 0 ا"د ا9 I ب27 ا .ب27 د اH9@ 9و9 م9 أ10 3 آ6 ()أ .ب27 د اH9@ م29 100 م ةN ا3 آ6 وGPSS WORLD ذج ام2 ن2)ب( آ :,Y ر ح ! ا0 اS I :,N6 P=R–C–L+S :3"I ز2 اP6 P = Profit (ر ح0)ا R = Revenue from sales (3/) ا " ت ا C = Cost of newspapers (?اH ا,`/I) L = Lost profit from excess demand (SC : I دة ! م2:` ر ح ا0)ا S = salvage from sale of scrap papers (,: ا? اH اR ! R- )ا ا 640 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? Uا@ را ( 2 ) ا آ ةP 342 دة ت3 :! Gا :, ا,b0 ا3 S-أ :ول0ال أAا ة6ا2ة ا9Hي اO9 ،&? U" ?اH د ! ا29 ?ا- R? يO9 CاJ R عI م2 ا,9 U 3; 3:I 3ا? اH ا. ل9 ر2 U"9 ل و9 ر1.50 ا ;ن./ وه،?ا- 10 ! ن2/I مG6 3; ي ! اOI ?اH ا.ة6ا2ة ا9H , ه20 ه ك-2I R? ! ة ا. 29 ة9- d ا... او70 او60 او50 ي إO9 ?اH اR? تT 6 م "" و29س &" وe T" م29" و-" م29 ، رq م90اع ! ا2 أ,XX ع2 S6 ?اH ا3 S7 اR9ز2I .(! أ ! ا رJ )إ3ا2 ا0.35,0.45,0.20 :3 ول اH 7"9 م2ا Demand Probability Distribution Demand 40 50 60 70 80 90 100 Good Fair 0.03 0.05 0.15 0.20 0.35 0.15 0.07 0.10 0.18 0.40 0.20 0.08 0.04 0.00 Poor 0.44 0.22 0.16 0.12 0.06 0.00 0.00 .a أ ر: 9 36 29 ?اH اR? U9O9 3ا? اH ! اM[ 0 ا"د ا9 I ب27 ا . 29 ة9- 80,70,60,50 R? ب ; إذا أى ا27 د اH9@ 9و9 م9 أ10 3 آ6 :,Y ر ح ! ا0 اS I :,N6 P=R–C–L+S :3"I ز2 اP6 P = Profit (ر ح0)ا R = Revenue from sales (3/) ا " ت ا C = Cost of newspapers (?اH ا,`/I) L = Lost profit from excess demand (SC : I دة ! م2:` ر ح ا0)ا S = salvage from sale of scrap papers (,: ا? اH اR ! R- )ا ا 641 :3 [ال اAا R9ز2 ا%J 3; ا تe"I ., J ت ر, و ت/ إ, آ3; R ا%J م2:9 %H6 .ن2ز2 اU79 3 ت ا/ ة "ضG ه- S 3; ,b"I ,( ,7ا2 3? :I M/O :, ا, ا7"9 S7ا Order Size 6 Frequency 0.10 12 0.25 18 0.30 24 0.15 30 0.12 36 0.05 48 0.03 , X 120 SC M/ ,b" ز ! ا. زع أ2 ,:J د15 ت7ل ا2' ! ! وG اw2 3; , J] ا ت ا9 R ا%J .S7 ا3; e"I , J ر, M/ ان2X 10 إ,; V@ .,:J د455 3; ة6 و60 %H ت2 H :, ت ا2" ا37"I 3/ ,آO ط اO ! م9 أ10 3 آ6 GPSS ام ,b" ا%J 3; ةN ت ا7 د اw2 -4 م29 M آ,ز2 ا, J ا ت ا, آ-5 ت7 transit times , :@ ت اJو0 اR9ز2I -6 642 %6 ! ا6 ا ا% ث ا" ت2 ءو 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? U ر اz , ت-إ ( 2 ) ا آ ةP 342 دة :ول0ال اA ا, -إ : ري0م ا2ع ا2 (1) ول- ن2/ News Day Prob. Cum. Prob Random Digit Good 0.35 0.35 01-35 Fair 0.45 0.80 36-80 Poor 0.25 1 81-00 :H ري ا0م ا2 S7 (2) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.03 0.03 01-03 50 0.05 0.08 04-08 60 0.15 0.23 09-23 70 0.20 0.43 24-43 80 0.35 0.78 44-78 90 0.15 0.93 79-93 100 0.7 1 94-00 :& سe T ري0م ا2 S7 (3) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.10 0.10 01-10 643 50 0.18 0.28 11-28 60 0.40 0.68 29-68 70 0.20 0.88 69-88 80 0.08 0.96 89-96 90 0.04 1 97-00 : ري ا0م ا2 S7 (4) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.44 0.44 01-44 50 0.22 0.66 45-66 60 0.16 0.82 67-82 70 0.12 0.94 83-94 80 0.06 1 95-00 :ول0م ا2 ة/ أ ا (C = 75 SR ) ل9 ر75 " ة9- 50 = اةO ا? اHد ا & سe T 64 = A.1. ول- ! 3?ا2O %J رS : ري0م ا2ع ا2 50 = S7( ا3) ول- ! و13 = 3?ا2O %J رS :ول0م ا2 S7ا P=R–C–L+S = 2x50 – 1.5x 50 – 0 + 0 = 25 SR :3 [م ا2ا ة9- 50 = اةO ا? اHد ا 82 = A.1. ول- ! 3?ا2O %J رS : ري0م ا2ع ا2 50 = S7( ا4) ول- ! و45 3?ا2O" ا%J ا:3 [م ا2 S7ا P=R–C–L+S = 2x50 – 1.5x 50 – 0 + 0 = 25 SR :3 ول آ- ن2/ا و./وه Day R.D. Newsday Newsday R.D. Demand Demand R L S P 1 2 64 82 Fair Poor 13 45 50 50 100 100 0 0 0 0 25 25 3 4 26 35 Good Good 93 80 90 90 100 100 20 20 0 0 5 5 644 5 17 Good 04 50 100 0 0 25 6 45 Fair 20 50 100 0 0 25 7 03 Good 88 90 100 20 0 5 8 72 Fair 03 40 80 0 2 7 9 83 Poor 78 60 100 5 0 20 10 69 Fair 03 40 80 0 2 7 ل9 ر14.5 2م ه2 ا3; ة9- 50 R? ; إذا اي ا3 2 اa اw2 انH ولH! ا .3 2 اa اw2 S و29 ة9- 80 و70 و60 ر ا ـ/ :3 [ال اA ا, -إ :3 آGPSS ذج ام2 ن2/ * Time Unit is one hour * Sizeorder FUNCTION RN1,D7 ;Order size .10,6/.35,12/.65,18/.80,24/.92,30/.97,36/1.0,48 Transit TABLE M1,.015,.015,20 ;Transit time Number TABLE X1,100,100,20 ;No. packed each day Ptime VARIABLE .0028#P1+0.0334 ;Packing time Amount EQU 1000 ;Initial stock amount Stock STORAGE 4000 ;Warehouse holds ; 4000 units ********************************************************************* GENERATE (Exponential(1,0,0.25)) ;Order arrives ASSIGN 1,1,Sizeorder ;P1=order size TEST GE S$Stock,P1,Stockout ;Is stock sufficient? LEAVE Stock,P1 ;Remove P1 from stock QUEUE Packing SEIZE Machine ;Get a machine DEPART Packing ADVANCE V$Ptime ;Packing time RELEASE Machine ;Free the machine SAVEVALUE 1+,P1 ;Accumulate no. packed TABULATE Transit ;Record transit time TERMINATE Stockout TERMINATE ********************************************************************* GENERATE 0.75,0.08334,1 ;Xact every 40+/-5 mins ENTER Stock,60 ;Make 60, Stock * increased by 60 Stockad TERMINATE ********************************************************************* GENERATE 8 ;Xact every day TABULATE Number SAVEVALUE 1,0 TERMINATE 1 ********************************************************************* GENERATE ,,,1,10 ;Initial stock xact ENTER Stock,Amount ;Set initial stock TERMINATE ]? 9 ر:I ! ة6 وا:]? ا 645 GPSS World Simulation Report - Manufact.1.1 Saturday, May 19, 2001 17:49:40 START TIME END TIME 0.000 80.000 BLOCKS FACILITIES STORAGES NAME AMOUNT MACHINE NUMBER PACKING PTIME SIZEORDER STOCK STOCKAD STOCKOUT TRANSIT LABEL RETRY 23 1 1 VALUE 1000.000 10009.000 10003.000 10008.000 10004.000 10000.000 10006.000 16.000 13.000 10002.000 LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT 1 GENERATE 325 0 2 ASSIGN 325 0 3 TEST 325 0 4 LEAVE 325 0 5 QUEUE 325 0 6 SEIZE 325 0 7 DEPART 325 0 8 ADVANCE 325 0 9 RELEASE 325 0 10 SAVEVALUE 325 0 11 TABULATE 325 0 12 TERMINATE 325 0 13 TERMINATE 0 0 14 GENERATE 105 0 15 ENTER 105 0 16 TERMINATE 105 0 17 GENERATE 10 0 18 TABULATE 10 0 0 0 0 0 0 0 0 0 0 0 0 0 STOCKOUT 0 0 0 STOCKAD 0 0 0 646 19 SAVEVALUE 10 0 20 TERMINATE 10 0 21 GENERATE 1 0 22 ENTER 1 0 23 TERMINATE 1 0 0 0 0 0 0 FACILITY MACHINE ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 325 0.354 0.087 1 0 0 0 0 0 MAX CONT.ENTRY ENTRY(0)AVE.CONT. AVE.TIME AVE.(-0)RETR PACKING 4 0 325 208 0.104 0.026 0.071 0 QUEUE STORAGE STOCK TABLE TRANSIT CAP. REM. MIN. MAX. 4000 2928 0 1378 MEAN 0.113 22 6.77 52 22.77 66 43.08 51 58.77 43 72.00 20 78.15 17 83.38 7 STD.DEV. 0.055 ENTRIES AVL. AVE.C. UTIL. RETRY DELAY 7300 1 1132.973 0.283 0 0 RANGE 0.045 RETRY FREQUENCY CUM.% 0 0.060 0.060 - 0.075 0.075 - 0.090 0.090 - 0.105 0.105 - 0.120 0.120 - 0.135 0.135 - 0.150 0.150 - 0.165 0.165 - 0.180 0.180 - 0.195 0.195 - 0.210 0.210 - 0.225 0.225 - 0.240 0.240 - 0.255 0.255 - 0.270 0.270 - 0.285 0.285 - 85.54 17 90.77 8 93.23 2 93.85 3 94.77 3 95.69 2 96.31 1 96.62 5 98.15 6 100.00 NUMBER 622.800 156.046 647 _ 0 1 10.00 1 20.00 1 30.00 4 70.00 2 90.00 1 100.00 SAVEVALUE 1 FEC XN VALUE 443 442 444 300.000 - 400.000 400.000 - 500.000 500.000 - 600.000 600.000 - 700.000 700.000 - 800.000 800.000 - 900.000 RETRY 0 PRI 0 0 0 BDT 80.090 80.343 88.000 VALUE 0 ASSEM CURRENT 443 442 444 0 0 0 648 NEXT 1 14 17 PARAMETER 649 Ave. , J ! 2 وه. 0.12 w:; 2 ه,b" ا%J 3; ةN ت ا7 د اw2 • .Queue Entity Packing W I 9: ا3; Cont. . Table Number 3; 7" 29 ,ز2 ا, J ا ت اR9ز2I • . ا% , V2 وTRANSIT ولH ا3; ت7 , :@ ت اJو0 اR9ز2I • 650 ا ا ا ث ا" ت2 ء و6@ ا%J هـ1421-1420 ول0 اM ` 3? U ر اTا (2 ق ا آ ةC ) P 342 ا دة ت2' ثr` ! Gا :, ا/K' = ! ا3 S-ا :ا ال اول : U ,[ أ37 و أ, ت ا7 ف ا (a) System state (b) Entity Simulation clock. (c) Attributes (d) List (e) Event (f) Event list (g) Activity (h) :ا ال ا A taxicab company operates one vehicle during the 9:00 A.M. to 5:00 P.M. period. Currently, consideration is being given to the addition of a second vehicle to the fleet. The demand for taxi follows the distribution shown: Time between Calls (Minutes) Probability 15 0.14 20 0.22 25 0.43 30 0.17 35 0.04 The distribution of time to complete a service is as follows: Service Time (Minute) Probability 5 0.12 15 0.35 25 0.43 35 0.06 45 0.04 a) Simulate the operation of the system for one day by hand. b) Using ARENA simulate five individual days of operation of the current system and the system with an additional taxicab. Compare the two systems with respect to the waiting times of the customers and any other measures that might shed light on the situation ( like vehicle utilization etc.) 651 ا ا ا : ت * ا17 /BJ# w7 37"9 اM/O ا. رات7: ا,7 ا%H ! % ` اM: مI ت6 6 9 .g. Station Travelig text Loading text Scale Weighing text Queue Loader Queue text _' إ ر,6 O ك اI M ر'`! و " ا6 ! ا6 ! ر'_ واM I ,6 Mآ زن2 " ا،,:J د2 ± 1 قYI انG ! O ا,`' ! ار,6 ز ! ا،زن2I 3/ وزن ., X ! ةO ا,`'د ا ار2"I وU `غI رات و7: ا,7 ا,6 O ك اI ة7" رات7: ا,7 دة ! وا2"ه ب وا.زن وز ! ا2 ت اJ ! واوO ت اJ" ت او9ز2I :, اول اH ا3; .M ا, ول از- -1 Loading Time 5 10 15 Probability 0.3 0.5 0.2 .زن2 ا, ول از- -2 Weighing Time 12 16 Probability 0.7 0.3 . رات7: ا,7 652 دة إ2"ه ب وا. ا, ول از- -3 Probability 0.4 0.3 0.2 0.1 Travel Time 40 60 80 100 Rا0و Jت :Iس .? Jا 27ب , "; 9:Iآ ! Mار'` ,ا ! Oور'_ ا2زن و w2ز ! ا@ Nر ; 3آM 2 Cر. 6 -1آ 3ا Nم ا 9و 9ـ 5ر6ت .,6 M/ . -2ج ا Nم ] ا آ ة GPSSـ 100ر.,6 M/ ,6 -3آر ا`:ة ] 2ا آ ة . ARENA N6ت: -1ا Mا ! , 30 9 aأ ل ا` 10 ) .Mت :; M/ة( % 2 ( -2ا 10 Mر fن 1422هـ ا 2ا; ; 25ا 2001 9م. -3ا Oرآ ,ا RHOI , Hا 9G9Tد ا Oرآ! ! . 2 وا ا .;2 د .ن -ي 653 ا ا ا ث ا" ت2 ء و6@ ا%J ( 2 ق ا آ ةC) P 342 دة هـ1423/1422 ول0 اM ` 3? Uا@ ر ا ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول وSystem states مNت اT 6 ذآR , ا, N0 ا, را,:9C Mf;أ( أو'_ أ Activities مN ا,7O و أAttributes ? ت/ و '` ت اEntities ? ت/ا ` تO ا6e ارئ2C %J (3 !:9C RC :I (2 R ! Y' %J (1 Discrete-event Simulation Method , ` اث ا60آ ة ا ,:97 د2 : ب( ا ,[ ذآ اR :ا ال ا :, اGPSS Sا2J M ء [ ل7 إR زH9 أ( أح 1) GENERATE 2) ADVANCE3) ASSIGN 4) TERMINATE 5) TRANSFER 6) TEST ء7 إR GPSS ا آ ة,Y U M ] آI _ وآStorage وFacility ! ا`ق (ب ,[ أ : ا ال ا 5:00 6 و6 ' 9:00 ا`ة3; ة6 ء رة واO@ ا,[96 رات-eI , آMYOI ,- اW ; اذا آ,! " درا/ و, X رة,; V إ3; ,آO اS6 ' /`9 . ا :3 ه,آO ى ا," H ا ت اS6 ة- رة اS7 ا.g ذS7I Time between calls (Minutes) Probability 15 0.14 20 0.22 25 0.43 30 0.17 35 0.04 :3 ن( آ2 G اM'2I) , إآ لWJ وR9ز2Iو Service Time (Minutes) Probability 5 0.12 15 0.35 25 0.43 35 0.06 45 0.04 ه كW ; إذا آ5ارJ ذI@ ,آO اS6 ' I 3/ م29 100 ة,آO م اN 3 آ6 ., X رة,; V@ ,- 6 GPSS ا آ ة,Y أ( ام ARENA ,992 ا آ ة ا,Y ب( و ام 654 هـ1423/1422 ول0 اM ` 3? U ر اz ,-ذ2 , -إ (2 ق آ ةC) P 342 ا دة :ول0ال اA , -إ (أ R I R7J م ه كM/O; R ا,"C إ ا ] وN ون ا:R ! %J (1 :3? Uل ا ] ا2 U" HI %9 إ ج وw 9 I d ا,"7J R HI ءU إ,N ، ا@ جw ,"7J ل2' و,N : مNت اT 6 R7: ا: ? ت/ا (R H )ز ! ا, ز ! ا،ل2'2 ز ! ا: ? ت/'` ت ا (, ا,"7: رN@ ز ! اXAI ,"7J M ر ) آN@ ت اJ أو: مN ا,7Oأ : إ رات ورU %/ I ه تHI@ اR - 3; ;ت6 ورG 9 و:!:9C RC :I (2 إ رة ا ورYI ,N ،RC : ا ا,; 6 ل2' و,N : مNت اT 6 ا ;ت: ? ت/ا ل2'2 ز ! ا: ? ت/'` ت ا ( 3; 3 ا ;ت اXA9 ا. )وهRC :ة اN د ا ;ت ا: مN ا,7Oأ (ر2" اMJ ا@ رةU M`:I ا@ رة أوa; I ر إ2 7ا 3: ادث2 ا%J ا إ2 9 ادث او ^ه26 3; ! ا:`O ارئ2C %J (3 ا"ج ء ا"جU إ,N ،ل ا ب2' و,N : مNت اT 6 (4 ! ا: ? ت/ا ز ! ا"ج،ل2'2 ز ! ا: ? ت/'` ت ا (3 ر ب اN@ ز ! اXA9 ب M ر ا"ج ) آN اWJ و: مN ا,7Oأ , ط ز: مNت اT 6 YI ,:97 ا5. ه3; :, ` اث ا60 آ ة ا,:9C (ب , ر2 C g [ ل ذ.ث6 U; ث9 3 ( واDiscrete R7: ! G )أي ان ا, ` ل ا ;ت إ2' و.ن2ا2 , RI , ` , ?! أزG اM 9 إذ6 دم وا .d! أ:9C RC :I :3 [ال اA , -إ ( )أ (1) GENERATE A,B,C,D,E Future Events Chain 40!"(( ا) اث ا$; *+ j,B وTransaction ,! Create A - Mean inter generation time. B - Inter generation time half-range or Function Modifier. C - Start delay time. Time increment for the first Transaction. D - Creation limit. E - Priority level. Example: GENERATE 0.1 655 (2) ADVANCE A,B Future Events Chain 40!"(( ا) اث ا$; * Transaction ,! ^B A - The mean time increment. B - The time half-range or, if a function, the function modifier. Example: ADVANCE 101.6,50.3 (3) ASSIGN A,B,C Transaction Parameter ,!( اX, ل, A - Parameter number of the Active Transaction. B - Value. C - Function number. Example: ASSIGN 2000,150.6 (4) TERMINATE A ء8 اد اO0 وا,! *ا A - Termination Count decrement. Default is 0. Example: TERMINATE 1 (5) TRANSFER A,B,C,D ] ا(@ د0 اE ا0&ك او ا A - Transfer Block mode. B - Block number or location. C - Block number or location. D - Block number increment for ALL Mode. Examples: (a) Unconditional Mode TRANSFER ,New_Place (b) Fractional Mode TRANSFER .75,,New_Place (c) Both Mode 656 TRANSFER BOTH,First_Place,Second_Place (d) All Mode TRANSFER ALL,First_Place,Last_Place,2 (e) Pick Mode TRANSFER PICK,First_Place,Last_Place (f) Function Mode TRANSFER FN,Func1,5 (g) Parameter Mode TRANSFER P,Placemarker,1 (h) Subroutine Mode TRANSFER SBR,New_Place,Placemarker (i) Simultaneous Mode TRANSFER SIM,Nodelay_Place,Delay_Place (6) TEST O A,B,C ,!( و ل إ"ب اarithmetic condition *%"@& ا[&ط ا4!Gا O - Relational operator. Relationship of Operand A to Operand B for a successful test. A - Test value. B - Reference value. C - Destination Block number. Example: TEST G C1,70000 ()ب ,U اM[ ت وJو0 ! اWJ أي وw:; 6 واM " S2I (,UI) Facility RELEASE وSEIZE ! :م ا9 :[ ل GPSS BLOCKS SEIZE Facility GPSS BLOCKS RELEASE Facility GPSS BLOCKS 657 M[ وSTORAGE 0 ," & د9 و6 واM " ! [ اآS29 (نG ) Storage LEAVE وENTER ! :م ا9 ," 9 I " نG ا :[ ل GPSS COMMANDS SL STORAGE Capacity GPSS COMMANDS GPSS BLOCKS ENTER SL GPSS BLOCKS LEAVE SL GPSS BLOCKS :P [ال اA , -إ calls FUNCTION RN1,D5 0.14,15/0.36,20/0.79,25/0.96,30/1.0,35 sertime FUNCTION RN1,D5 0.12,5/0.47,15/0.9,25/0.96,35/1.0,45 callwait TABLE M1,10,10,20 * GENERATE FN$calls QUEUE cabq SEIZE cab DEPART cabq ADVANCE FN$sertime RELEASE cab TABULATE callwait TERMINATE 1 GPSS World Simulation Report - Untitled Model 1.1.1 Sunday, January 13, 2002 00:06:22 START TIME 0.000 END TIME 2455.000 NAME CAB CABQ CALLS CALLWAIT SERTIME LABEL FACILITY CAB BLOCKS 8 FACILITIES 1 STORAGES 0 VALUE 10006.000 10005.000 10000.000 10004.000 10002.000 LOC 1 2 3 4 5 6 7 8 ENTRIES 101 BLOCK TYPE GENERATE QUEUE SEIZE DEPART ADVANCE RELEASE TABULATE TERMINATE UTIL. 0.827 ENTRY COUNT CURRENT COUNT RETRY 101 0 0 101 0 0 101 1 0 100 0 0 100 0 0 100 0 0 100 0 0 100 0 0 AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 20.099 1 101 0 0 0 0 658 QUEUE CABQ MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME 3 1 101 60 0.261 6.337 TABLE CALLWAIT MEAN 26.650 STD.DEV. 13.410 RANGE _ 10.000 20.000 30.000 40.000 50.000 60.000 - 10.000 20.000 30.000 40.000 50.000 60.000 70.000 AVE.(-0) RETRY 15.610 0 RETRY FREQUENCY CUM.% 0 7 7.00 27 34.00 39 73.00 13 86.00 9 95.00 3 98.00 2 100.00 CEC XN 101 PRI 0 M1 2450.000 ASSEM 101 CURRENT 3 NEXT 4 PARAMETER VALUE FEC XN 102 PRI 0 BDT 2475.000 ASSEM 102 CURRENT 0 NEXT 1 PARAMETER VALUE ! أن زH رN@ول ا- ! . 2 , 3 وه% 82.7 3 ا رة ه,9 "; أن6 ا آ- 3 2 ? وهJ د26.65 w2 و,:J د70 6 M 9 ر رة2 7 ا3; رN@ا :3 اري ا/ ا رج ا3; aV2 2ه ARENA )ب( ام 659 ARENA Simulation Results amb - License #9400000 Summary for Replication 1 of 1 Project: Taxi Cab Problem Analyst: Replication ended at time Run execution date : 1/12/2001 Model revision date: 1/12/2001 : 100.0 TALLY VARIABLES Identifier Average Half Width Minimum Maximum Observations _______________________________________________________________________________ finish_Ta 25.750 (Insuf) 22.000 27.000 4 cab_R_Q Queue Time 1.0000 (Insuf) .00000 5.0000 5 660 DISCRETE-CHANGE VARIABLES Identifier Average Half Width Minimum Maximum Final Value _______________________________________________________________________________ # in cab_R_Q .05000 (Insuf) .00000 1.0000 .00000 cab_R Busy .93000 (Insuf) .00000 1.0000 1.0000 cab_R Available 1.0000 (Insuf) 1.0000 1.0000 1.0000 COUNTERS Identifier Count Limit _________________________________________ finish_C 4 Infinite Simulation run time: 0.00 minutes. Simulation run complete. %93 ا رة, "; و,:J د25.75 رN@ ز ! اw2 أنH 9:! ا رN از ن إ%U !9. ?! اG ا:`9T 6 رة اى,آO اS6 ' ج9 J :ار:ا .,92C SIMAN ,Y ] ا ; Model statements for module: Arrive 1 42$ CREATE, 1:DISC( 0.14,15,0.36,20,0.79,25,0.96,30,1.0,35 ); 3$ STATION, calls; 51$ TRACE, -1,"-Arrived to system at station calls\n":; 661 6$ ASSIGN: Picture=Default; 27$ DELAY: 0.; 56$ TRACE, -1,"-Transferred to station cab\n":; 29$ ROUTE: 2,cab; ; ; Model statements for module: Server 1 ; 0$ STATION, cab; 158$ TRACE, -1,"-Arrived to station cab\n":; 121$ DELAY: 0.; 165$ TRACE, -1,"-Waiting for resource cab_R\n":; 82$ QUEUE, cab_R_Q:MARK(QueueTime); 83$ SEIZE, 1: cab_R,1; 192$ BRANCH, 1: If,RTYP(cab_R).eq.2,193$,Yes: If,RTYP(cab_R).eq.1,95$,Yes; 193$ MOVE: cab_R,cab; 95$ TALLY: cab_R_Q Queue Time,INT(QueueTime),1; 202$ DELAY: 0.0; TRACE, -1,"-Delay for processing time DISC( 0.12,5,0.47,15,0.9,25,0.96,35,1.0,45 )\n":; 84$ DELAY: DISC( 0.12,5,0.47,15,0.9,25,0.96,35,1.0,45 ); 166$ TRACE, -1,"-Releasing resource\n":; 85$ RELEASE: cab_R,1; 149$ DELAY: 0.; 171$ TRACE, -1,"-Transferred to station finish\n":; 89$ ROUTE: 0.,finish; ; ; Model statements for module: Depart 1 ; 662 2$ STATION, finish; 233$ TRACE, -1,"-Arrived to station finish\n":; 203$ DELAY: 0.; 225$ COUNT: finish_C,1; 230$ TALLY: finish_Ta,Interval(QueueTime),1; 240$ TRACE, -1,"-Disposing entity\n":; 232$ DISPOSE; 663 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ( 2 ق اآةC) 342 دة# هـ1423/1422 3 [ اM ` 3? Uا@ ر ا ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول :3 ا ] ا3; Sا2:وا و ا0 اM M ` اح SETS TRANSIT AGAIN OCCUPIED STORAGE TABLE GENERATE GATE SNF ENTER ADVANCE LEAVE TABULATE TERMINATE ADVANCE TRANSFER 2 M1,100,100,20 (Exponential(1,0,200)) SETS,OCCUPIED SETS 180,60 SETS TRANSIT 1 300,60 ,AGAIN :ا ال ا %"7 ?! إ اG اM 9 ،!? G ا, ,"9 ت ا-2 %"7 3; و/ و6 اM "9 .? J د10 ± 6 Mن آ2 ?! "ل زG و ا/ و6م ا9 .,:J د5 ± 5 Mن آ2 "ل ز Mf` اM "ن ان ا2 G ا- إذا و. ! / , و/ ! 6 ا, ا2f`9 !? Gا 100 , ,9 U 6 3 آ6 GPSS ام.3 اMf` اM " ر ا9 &; ل2YO &9 . مN ! ا, ءات ا6@ اM آ- أو.ن2 ز : ا ال ا MH ة و100 &?ا- %J وGPSS 3; ول0ال اA ا3; ر2آ. ا ] اMأ( أد TRANSIT ولHا ` @ ج, ا,? 6@ اR - أCLOSE وWRITE وOPEN Sا2:ب( ام ا EXCEL ,7ا2 ولHا 664 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ هـ1423/1422 ا/ W1ر ا60 /# إ= ت ( 2 ق اآةC) 342 دة# :إ= ا ال اول 2 0ا 2 !I6 و," &7"9ن وG ع2 ! SETS !? /"ف ا9 TRANSIT TABLE M1,100,100,20 0ا M1 مN ا3; ! ا ورG اري/I ول- 2ول وه- ع2 ! TRANSIT !? /"ف ا9 20 تb` ود ا100 ,b` ا," و100 و0 ا,b` ا,9 د & ا9 " ! و GENERATE (Exponential(1,0,200))S :ا ل2'2 ! ! اG , ة ز6 و200 "ل3T اR9ز2 اS6 ! " ا2 م2:9 AGAIN GATE SNF SETS,OCCUPIED S :ا , 6 3`; ^ نG ط ان ا: 9 6 wO اM " ور اa 9T S :ا ا.ه ا. ان ه6T OCCUPIED %" اS : wO اM " اM:9 نG ة ! ا6; و2I م AGAIN ـ%" S :ا ENTER SETS S :ا ,2YO a I 3 ن وG ا3; ;ة2 ات ا62 ا6 أwO اM " اgّ 9ُ S :ا ا.ه 6ا2 !9Gات ا6 د و:Iو ADVANCE 180,60 S :ا , ز ! اM[ 9 LEAVE SETS S :ا ;ة2 نG ا3; ,2YO ات ا62 ا6 أS :ا ا. هM"H9 wO اM " ا, ءU" إ امz TABULATE TRANSIT S :ا TRANSIT اري/ول اH إ اwO اM " ز ! ا ور,; V S :ا ا.م ه2:9 TERMINATE 1 S :ا 6ا2 ص اد ا آ ة: إ%9 م وN ! اwO اM " وج ا OCCUPIED ADVANCE 300,60 S :ا M[ 9 و,2YO نG ات ا6 وR - ن2 آ, 6 3; wO اM " ل ا& ا2 9 ي. اS :ا ا.ه م ة ايN ور, إ دة ا وMJ رN@ز ! ا TRANSFER ,AGAIN S :ا AGAIN ـ%" اS: ري- وإ3C ^ M92 I SETS STORAGE :إ= ا ال ا (S 7ب ! ا27 اMJ & ) ا/ أw ا3; ] ا GENERATE TRANSFER SEIZE ADVANCE RELEASE 5,5 BOTH,,BAKR AHMD 10,6 AHMD 665 BAKR KHLD TERMINATE TRANSFER SEIZE ADVANCE RELEASE TERMINATE SEIZE ADVANCE RELEASE TERMINATE 1 BOTH,,KHLD BAKRS 10,6 BAKRS 1 KHLDS 10,6 KHLDS 1 :]? ا GPSS World Simulation Report - OR342F22223TEST.5.1 START TIME END TIME BLOCKS FACILITIES STORAGES 0.000 527.111 15 3 0 NAME AHMD BAKR BAKRS KHLD KHLDS LABEL LOC 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 BAKR KHLD FACILITY AHMD BAKRS KHLDS VALUE 10001.000 7.000 10003.000 12.000 10004.000 BLOCK TYPE GENERATE TRANSFER SEIZE ADVANCE RELEASE TERMINATE TRANSFER SEIZE ADVANCE RELEASE TERMINATE SEIZE ADVANCE RELEASE TERMINATE ENTRIES UTIL. 38 0.742 33 0.625 29 0.538 ENTRY COUNT CURRENT COUNT RETRY 100 0 0 100 0 0 38 0 0 38 0 0 38 0 0 38 0 0 62 0 0 33 0 0 33 0 0 33 0 0 33 0 0 29 0 0 29 0 0 29 0 0 29 0 0 AVE. TIME 10.291 9.987 9.782 AVAIL. OWNER PEND INTER RETRY DELAY 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 :, و ا ?] ا ن2 ز29 , ن و2 ز33 , / ن و2 ز38 , 6 م اJ ن2 ز100 ! -1 % 53.8 و% 62.5 / و% 74.2 6 ا, "; -2 ة6 و9.78 و, ة ز6 و9.99 / و, ة ز6 و10.29 60 , ز ! اw2 -3 , ز : ال ا/ =إ SETS TRANSIT AGAIN STORAGE TABLE GENERATE GATE SNF ENTER 2 M1,100,100,20 (Exponential(1,0,200)) SETS,OCCUPIED SETS 666 OCCUPIED ADVANCE LEAVE TABULATE OPEN WRITE CLOSE TERMINATE ADVANCE TRANSFER 180,60 SETS TRANSIT ("OR342TEST.TXT") M1 1 300,60 ,AGAIN GPSS ! ]? ا GPSS World Simulation Report - Untitled Model 3.1.1 START TIME 0.000 END TIME 20542.415 NAME AGAIN OCCUPIED SETS TRANSIT LABEL AGAIN OCCUPIED STORAGE SETS FACILITIES 0 STORAGES 1 VALUE 2.000 11.000 10000.000 10001.000 LOC 1 2 3 4 5 6 7 8 9 10 11 12 BLOCK TYPE GENERATE GATE ENTER ADVANCE LEAVE TABULATE OPEN WRITE CLOSE TERMINATE ADVANCE TRANSFER ENTRY COUNT CURRENT COUNT RETRY 101 0 0 139 0 0 101 0 0 101 1 0 100 0 0 100 0 0 100 0 0 100 0 0 100 0 0 100 0 0 38 0 0 38 0 0 CAP. REM. MIN. MAX. 2 1 0 2 TABLE TRANSIT BLOCKS 12 MEAN 297.446 ENTRIES AVL. 101 1 STD.DEV. 218.612 100.000 200.000 300.000 400.000 500.000 600.000 700.000 800.000 900.000 1000.000 1100.000 AVE.C. UTIL. RETRY DELAY 0.880 0.440 0 0 RANGE - 200.000 300.000 400.000 500.000 600.000 700.000 800.000 900.000 1000.000 1100.000 1200.000 RETRY FREQUENCY CUM.% 0 43 43.00 29 72.00 0 72.00 12 84.00 9 93.00 1 94.00 2 96.00 1 97.00 0 97.00 2 99.00 1 100.00 EXCEL ا ?] ام 447.19104 120.9797 142.45752 1159.576 141.44256 100 Bin Frequency 200 100 0 300 200 43 153.0858 400 300 29 224.15124 500 400 0 187.07448 600 500 12 473.57184 700 600 9 187.85268 800 700 1 667 138.25368 900 800 2 583.11864 1000 900 1 126.55968 1100 1000 0 210.52992 1200 1100 2 1200 1 166.04964 202.2108 More 221.46168 144.26412 170.22144 151.45536 564.96312 401.00184 168.51948 227.982 493.75908 645.29976 128.09292 172.87824 214.55064 134.52924 238.19016 523.35684 188.38032 156.58548 199.62912 225.40236 214.041 1098.33264 163.29384 709.89768 195.2046 212.42136 403.98228 207.80292 874.81932 223.1532 512.68284 210.61992 195.47808 230.361 170.83992 190.97136 166.10148 205.11792 528.2358 213.90372 668 0 124.18656 131.94768 232.80108 443.54328 441.855 579.49092 1159.57632 787.90956 234.73992 458.39088 217.89816 215.5128 234.14784 149.37048 120.97968 200.424 577.71828 122.3448 148.4562 214.66848 122.07684 169.5528 184.78092 225.53004 212.53392 153.53736 213.2232 128.63448 145.53648 206.16264 489.95664 560.03004 470.44152 125.72004 198.56412 1037.46348 513.23496 405.47844 135.97596 183.97836 485.02836 214.5666 161.3094 122.68596 175.62636 225.71892 669 و 7I 6ا ?] 670 ا ا ا ث ا" ت2 ء و6@ ا%J هـ1421-1420 ول0 اM ` 3? U ر اTا (2 ق ا آ ةC ) P 342 ا دة ت2' ثr` ! Gا :, ا/K' = ! ا3 S-ا :ا ال اول : U ,[ أ37 و أ, ت ا7 ف ا (a) System state (b) Entity Simulation clock. (c) Attributes (d) List (e) Event (f) Event list (g) Activity (h) :ا ال ا A taxicab company operates one vehicle during the 9:00 A.M. to 5:00 P.M. period. Currently, consideration is being given to the addition of a second vehicle to the fleet. The demand for taxi follows the distribution shown: Time between Calls (Minutes) Probability 15 0.14 20 0.22 25 0.43 30 0.17 35 0.04 The distribution of time to complete a service is as follows: Service Time (Minute) Probability 5 0.12 15 0.35 25 0.43 35 0.06 45 0.04 a) Simulate the operation of the system for one day by hand. b) Using ARENA simulate five individual days of operation of the current system and the system with an additional taxicab. Compare the two systems with respect to the waiting times of the customers and any other measures that might shed light on the situation ( like vehicle utilization etc.) 671 ا ا ا %Jا@ 6ء و 2ث ا" ت دة C ) P 342ق ا آ ة ( 2 إ ر ا` Mا0ول 1421هـ 1422/هـ ا 3 ! Gت أ R - S-ا ,b0ا :, ا ال اول: ا( ف ,:9Cآ ة ا60اث ا ` Discrete-event simulation method ,و أذآ أ [U , ب( Jرن ! - ,:9Cو ,ا60اث Event schedualingو M `I ,:9Cا" ت Process 3; interactionا آ ة ح( Jرن ! :I ,/ /م ز ! ا آ ة ا " ة ا60اث Next event time advanceو ا[ Fixed increment time advance , ا ال ا: آ2/9 , Gن ! د ! ا2ا 3آ N & %U Mم 2 Cر ، FIFOأي ز 2ن M /9 ا R ,ا دم ا0ول &H9إ ا دم ا[ 3و ! " إآ & ا R ,ا دم ا[ Y9 3در ا Nم` .ض أن ز ! ! ا2'2ل !? Gدم ا0ول & 2Iز R9ا w2 3د,:J وا6ة .ز ! ا ,ا دم ا0ول Uأ2I f9ز R9ا 0,7 w2 3د ,:Jو ا دم ا[ 2I U 3ز R9ا 0،9 w2 3د .,:Jأو -ا : GPSS 3 ت( أ-ي آ ة Nم "د 100ز 2ن وJر w2ز ! ا@ Nر w2 ، !? Gد ا 3; ،!? Gآ2 C ! Mر ا د ! وJر ;" ,آ ! Mا د !. ث( `ض أ& ; -29ة ز ! &-2 ,ا دم ا0ول إ ا دم ا[ 3وا2I U 3زR9 ! MXد ,:JوXث د .? Jأ إ-اء ا آ ة W Iه 5.اNوف وأو -ا9:ات ا .,: ج( `ض أن ! %20ا 9T !? Gج إ ,ا دم ا[ Y9 M 3در ا Nم " إآ ل ا R ,ا دم اTول .أ -ا آ ة W Iه 5.اNوف وأو -ا9:ات ا .,: 672 %ا ا ! 6ا%6 ء و 2ث ا" ت %Jا@6 آ ,ا"2م ," -ا 2" gد ا@ ر ا[ 0 3ل ا` Mا[ 1422/1421 3هـ دة ) P 342ا آ ة ( 2 ا, 2 :! G أ 3 S-وا ! w:; 6ا ,b0ا :GPSS WORLD , )أ( ! ," 9C ! ,"7J R Iا" ت ،آ . ` !:J RI U Mا" ,ا0و Iج إ ! 20%ا " R7:د . U" Iا" ! ا[ ,وا[ [ I ,ج آ U Mإ 15%و ! 5%ا " R7:د U" Iا2ا ! 60% .3ا R7:ا " د 2/I U" Iن &` Iو .I ، scrappedواـ 40%ا I ,Jج ا 3إ دة " ! ,Hا" ,ا U %I 3ا;. ' 9- ,"7J ,ة 3; %9ا w2آ 30 Mد2 ,:Jز R9ا .3ا , " ! GاTو 7"9 Hول ا :3 Time For First Process 0.15 0.29 0.22 0.16 0.13 0.05 45 38 32 21 14 10 Frequency )Process time (mins ا" ,ا[ YI ,ق 15±6د ? Jوز ! ا" ,ا0ة & 2Iز 24 w2 3"C R9د ,:Jو إ اف " ري 4د 6 .? Jآ 3ت ا Rـ ! ., / ,"7J 100ا ! Gاhزم g. ود ا R7:ا ;.,V2 أو )ب( Gون ] 2 & %/ 9 3? Uا ,7ا ,"-دور ,9ا . 2ا Gون ا@ ا?2/9 3ن ! 1000و6ة .ا S7ا 40 ! Y9 3 2و 63و6ة و 6ل وي .ا Gون ا Uف ه 1000 2و6ة ،اي ان M9"Iا Gون S7 %9ا`ق ! ا Gون ا 2-2د و 1000و6ة; .ذا آ ن ا Gون ا 2-2د ه 800 2و6ة او اآ[ ;! "9ل ا Gون g. ا2Tع .اOآ N M "I ,م ,ا 9م 2zع .ز ! ا:م M'2 lead timeا ,7ه2 ا2ع وا 6 .6آ N 3م ا Gون ة 29 200م و ; Iإذا آ ن ه ك اي G :ون .stockouts 673 ا ا ا هـ1422/1421 3 [ اM ` ل ا0 3 [ ر اz , ت-إ (2 ) آ ةP 342 ا ة (, ا,?ا2O"اد ا0 ا,H _I ]? ا:,N6 ) (ال )أA , -إ ***************************************************************** * Quality Control Program * * Time units are in minutes * ***************************************************************** RMULT 93211 * Definitions Transit TABLE M1,100,100,20 ;Transit Time Process FUNCTION RN1,D7 0,0/.05,10/.18,14/.34,21/.56,32/.85,38/1.0,45 ***************************************************************** GENERATE (Exponential(1,0,30)) ASSIGN 1,FN$Process ;Process time in P1 Stage1 SEIZE Machine1 ADVANCE P1 ;Process 1 RELEASE Machine1 ADVANCE 2 ;Inspection TRANSFER .200,,Rework1 ;20% Need rework ***************************************************************** Stage2 SEIZE Machine2 ADVANCE 15,6 ;Process 2 RELEASE Machine2 ADVANCE 2 ;Inspection TRANSFER .150,,Rework2 ;15% Need rework ***************************************************************** Stage3 SEIZE Machine3 ADVANCE (Normal(1,24,4)) ;Process 3 RELEASE Machine3 ADVANCE 2 ;Inspection 3 TRANSFER .050,,Rework3 ;5% need rework TABULATE Transit ;Record transit time TERMINATE 1 ***************************************************************** Rework1 TRANSFER .400,,Stage1 TERMINATE Rework2 TRANSFER .400,,Stage2 TERMINATE Rework3 TRANSFER .400,,Stage3 TERMINATE (, ا,?ا2O"اد ا0 ا,H _I ]? ا:,N6 ) (ال )بA , -إ ********************************************************************* * * Periodic Review Inventory Model * * Time units are in days ********************************************************************* * Definitions of non block entities 674 RMULT 39941 Stock STORAGE 10000 ;Warehouse can hold 10000 Stock TABLE S$Stock,100,100,20 ;Table for inventory amts Orderqty VARIABLE Target-S$Stock ;Order quantity Demand VARIABLE RN1@24+40 ;Daily demand Target EQU 1000 ;Initial stock level Reorder EQU 800 ;Reorder point ********************************************************************* * The reorder process GENERATE 5,,,,1 ;Review xact, Priority=1 TEST L S$Stock,Reorder,Skip ;Is stock < Reorderpt ASSIGN 2,V$Orderqty ;Parameter 2=Order quantity Custwait ADVANCE 5 ;Lead time is 5 days ENTER Stock,P2 ;Stock increases by P2 Skip TERMINATE ;Ordering xact is finished ********************************************************************* * The daily demand decrements quantity on hand GENERATE 1 ;Daily demand transaction ASSIGN 1,V$Demand ;Parameter 1(P1)=daily demand TABULATE Stock ;Record daily stock TEST GE S$Stock,P1,Stockout ;Can order be filled LEAVE Stock,P1 ;Remove demand from stock TERMINATE 1 ;Daily timer Stockout TERMINATE 1 ;Daily timer ********************************************************************* * Initialize the inventory GENERATE ,,,1,10 ;Set initial stock ENTER Stock,Target ;Set init stock level=target TERMINATE ;Xact is terminated 675 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? Uا@ را ( 2 ) ا آ ةP 342 دة ت3 :! Gا :, ا,b0 ا3 S-أ :ول0ال أAا ة6ا2ة ا9Hي اO9 ،&? U" ?اH د ! ا29 ?ا- R? يO9 CاJ R عI م2 ا,9 U 3; 3:I 3ا? اH ا. ل9 ر2 U"9 ل و9 ر1.50 ا ;ن./ وه،?ا- 10 ! ن2/I مG6 3; ي ! اOI ?اH ا.ة6ا2ة ا9H , ه20 ه ك-2I R? ! ة ا. 29 ة9- d ا... او70 او60 او50 ي إO9 ?اH اR? تT 6 م "" و29س &" وe T" م29" و-" م29 ، رq م90اع ! ا2 أ,XX ع2 S6 ?اH ا3 S7 اR9ز2I .(! أ ! ا رJ )إ3ا2 ا0.35,0.45,0.20 :3 ول اH 7"9 م2ا Demand Probability Distribution Demand 40 50 60 70 80 90 100 Good Fair 0.03 0.05 0.15 0.20 0.35 0.15 0.07 0.10 0.18 0.40 0.20 0.08 0.04 0.00 Poor 0.44 0.22 0.16 0.12 0.06 0.00 0.00 .a أ ر: 9 36 29 ?اH اR? U9O9 3ا? اH ! اM[ 0 ا"د ا9 I ب27 ا . 29 ة9- 80,70,60,50 R? ب ; إذا أى ا27 د اH9@ 9و9 م9 أ10 3 آ6 :,Y ر ح ! ا0 اS I :,N6 P=R–C–L+S :3"I ز2 اP6 P = Profit (ر ح0)ا R = Revenue from sales (3/) ا " ت ا C = Cost of newspapers (?اH ا,`/I) L = Lost profit from excess demand (SC : I دة ! م2:` ر ح ا0)ا S = salvage from sale of scrap papers (,: ا? اH اR ! R- )ا ا 676 :3 [ال اAا R9ز2 ا%J 3; ا تe"I ., J ت ر, و ت/ إ, آ3; R ا%J م2:9 %H6 .ن2ز2 اU79 3 ت ا/ ة "ضG ه- S 3; ,b"I ,( ,7ا2 3? :I M/O :, ا, ا7"9 S7ا Order Size 6 Frequency 0.10 12 0.25 18 0.30 24 0.15 30 0.12 36 0.05 48 0.03 , X 120 SC M/ ,b" ز ! ا. زع أ2 ,:J د15 ت7ل ا2' ! ! وG اw2 3; , J] ا ت ا9 R ا%J .S7 ا3; e"I , J ر, M/ ان2X 10 إ,; V@ .,:J د455 3; ة6 و60 %H ت2 H :, ت ا2" ا37"I 3/ ,آO ط اO ! م9 أ10 3 آ6 GPSS ام ,b" ا%J 3; ةN ت ا7 د اw2 -7 م29 M آ,ز2 ا, J ا ت ا, آ-8 ت7 transit times , :@ ت اJو0 اR9ز2I -9 677 %6 ! ا6 ا ا% ث ا" ت2 ءو 6@ ا%J م2" ا,آ د2" g ا," - هـ1422/1421 3 [ اM ` 3? U ر اz , ت-إ ( 2 ) ا آ ةP 342 دة :ول0ال اA ا, -إ : ري0م ا2ع ا2 (1) ول- ن2/ News Day Prob. Cum. Prob Random Digit Good 0.35 0.35 01-35 Fair 0.45 0.80 36-80 Poor 0.25 1 81-00 :H ري ا0م ا2 S7 (2) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.03 0.03 01-03 50 0.05 0.08 04-08 60 0.15 0.23 09-23 70 0.20 0.43 24-43 80 0.35 0.78 44-78 90 0.15 0.93 79-93 100 0.7 1 94-00 :& سe T ري0م ا2 S7 (3) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.10 0.10 01-10 678 50 0.18 0.28 11-28 60 0.40 0.68 29-68 70 0.20 0.88 69-88 80 0.08 0.96 89-96 90 0.04 1 97-00 : ري ا0م ا2 S7 (4) ول- ن2/ Demand Prob. Cum. Prob. Random Dig. 40 0.44 0.44 01-44 50 0.22 0.66 45-66 60 0.16 0.82 67-82 70 0.12 0.94 83-94 80 0.06 1 95-00 :ول0م ا2 ة/ أ ا (C = 75 SR ) ل9 ر75 " ة9- 50 = اةO ا? اHد ا & سe T 64 = A.1. ول- ! 3?ا2O %J رS : ري0م ا2ع ا2 50 = S7( ا3) ول- ! و13 = 3?ا2O %J رS :ول0م ا2 S7ا P=R–C–L+S = 2x50 – 1.5x 50 – 0 + 0 = 25 SR :3 [م ا2ا ة9- 50 = اةO ا? اHد ا 82 = A.1. ول- ! 3?ا2O %J رS : ري0م ا2ع ا2 50 = S7( ا4) ول- ! و45 3?ا2O" ا%J ا:3 [م ا2 S7ا P=R–C–L+S = 2x50 – 1.5x 50 – 0 + 0 = 25 SR :3 ول آ- ن2/ا و./وه Day R.D. Newsday Newsday R.D. Demand Demand R L S P 1 2 64 82 Fair Poor 13 45 50 50 100 100 0 0 0 0 25 25 3 4 26 35 Good Good 93 80 90 90 100 100 20 20 0 0 5 5 679 5 17 Good 04 50 100 0 0 25 6 45 Fair 20 50 100 0 0 25 7 03 Good 88 90 100 20 0 5 8 72 Fair 03 40 80 0 2 7 9 83 Poor 78 60 100 5 0 20 10 69 Fair 03 40 80 0 2 7 ل9 ر14.5 2م ه2 ا3; ة9- 50 R? ; إذا اي ا3 2 اa اw2 انH ولH! ا .3 2 اa اw2 S و29 ة9- 80 و70 و60 ر ا ـ/ :3 [ال اA ا, -إ :3 آGPSS ذج ام2 ن2/ * Time Unit is one hour * Sizeorder FUNCTION RN1,D7 ;Order size .10,6/.35,12/.65,18/.80,24/.92,30/.97,36/1.0,48 Transit TABLE M1,.015,.015,20 ;Transit time Number TABLE X1,100,100,20 ;No. packed each day Ptime VARIABLE .0028#P1+0.0334 ;Packing time Amount EQU 1000 ;Initial stock amount Stock STORAGE 4000 ;Warehouse holds ; 4000 units ********************************************************************* GENERATE (Exponential(1,0,0.25)) ;Order arrives ASSIGN 1,1,Sizeorder ;P1=order size TEST GE S$Stock,P1,Stockout ;Is stock sufficient? LEAVE Stock,P1 ;Remove P1 from stock QUEUE Packing SEIZE Machine ;Get a machine DEPART Packing ADVANCE V$Ptime ;Packing time RELEASE Machine ;Free the machine SAVEVALUE 1+,P1 ;Accumulate no. packed TABULATE Transit ;Record transit time TERMINATE Stockout TERMINATE ********************************************************************* GENERATE 0.75,0.08334,1 ;Xact every 40+/-5 mins ENTER Stock,60 ;Make 60, Stock * increased by 60 Stockad TERMINATE ********************************************************************* GENERATE 8 ;Xact every day TABULATE Number SAVEVALUE 1,0 TERMINATE 1 ********************************************************************* GENERATE ,,,1,10 ;Initial stock xact ENTER Stock,Amount ;Set initial stock TERMINATE ]? 9 ر:I ! ة6 وا:]? ا 680 GPSS World Simulation Report - Manufact.1.1 Saturday, May 19, 2001 17:49:40 START TIME END TIME 0.000 80.000 BLOCKS FACILITIES STORAGES NAME AMOUNT MACHINE NUMBER PACKING PTIME SIZEORDER STOCK STOCKAD STOCKOUT TRANSIT LABEL RETRY 23 1 1 VALUE 1000.000 10009.000 10003.000 10008.000 10004.000 10000.000 10006.000 16.000 13.000 10002.000 LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT 1 GENERATE 325 0 2 ASSIGN 325 0 3 TEST 325 0 4 LEAVE 325 0 5 QUEUE 325 0 6 SEIZE 325 0 7 DEPART 325 0 8 ADVANCE 325 0 9 RELEASE 325 0 10 SAVEVALUE 325 0 11 TABULATE 325 0 12 TERMINATE 325 0 13 TERMINATE 0 0 14 GENERATE 105 0 15 ENTER 105 0 16 TERMINATE 105 0 17 GENERATE 10 0 18 TABULATE 10 0 0 0 0 0 0 0 0 0 0 0 0 0 STOCKOUT 0 0 0 STOCKAD 0 0 0 681 19 SAVEVALUE 10 0 20 TERMINATE 10 0 21 GENERATE 1 0 22 ENTER 1 0 23 TERMINATE 1 0 0 0 0 0 0 FACILITY MACHINE ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 325 0.354 0.087 1 0 0 0 0 0 MAX CONT.ENTRY ENTRY(0)AVE.CONT. AVE.TIME AVE.(-0)RETR PACKING 4 0 325 208 0.104 0.026 0.071 0 QUEUE STORAGE STOCK TABLE TRANSIT CAP. REM. MIN. MAX. 4000 2928 0 1378 MEAN 0.113 22 6.77 52 22.77 66 43.08 51 58.77 43 72.00 20 78.15 17 83.38 7 STD.DEV. 0.055 ENTRIES AVL. AVE.C. UTIL. RETRY DELAY 7300 1 1132.973 0.283 0 0 RANGE 0.045 RETRY FREQUENCY CUM.% 0 0.060 0.060 - 0.075 0.075 - 0.090 0.090 - 0.105 0.105 - 0.120 0.120 - 0.135 0.135 - 0.150 0.150 - 0.165 0.165 - 0.180 0.180 - 0.195 0.195 - 0.210 0.210 - 0.225 0.225 - 0.240 0.240 - 0.255 0.255 - 0.270 0.270 - 0.285 0.285 - 85.54 17 90.77 8 93.23 2 93.85 3 94.77 3 95.69 2 96.31 1 96.62 5 98.15 6 100.00 NUMBER 622.800 156.046 682 _ 0 1 10.00 1 20.00 1 30.00 4 70.00 2 90.00 1 100.00 SAVEVALUE 1 FEC XN VALUE 443 442 444 300.000 - 400.000 400.000 - 500.000 500.000 - 600.000 600.000 - 700.000 700.000 - 800.000 800.000 - 900.000 RETRY 0 PRI 0 0 0 BDT 80.090 80.343 88.000 VALUE 0 ASSEM CURRENT 443 442 444 0 0 0 683 NEXT 1 14 17 PARAMETER 684 Ave. , J ! 2 وه. 0.12 w:; 2 ه,b" ا%J 3; ةN ت ا7 د اw2 • .Queue Entity Packing W I 9: ا3; Cont. . Table Number 3; 7" 29 ,ز2 ا, J ا ت اR9ز2I • . ا% , V2 وTRANSIT ولH ا3; ت7 , :@ ت اJو0 اR9ز2I • 685 ا ا ا : ت * ا17 /BJ# w7 37"9 اM/O ا. رات7: ا,7 ا%H ! % ` اM: مI ت6 6 9 .g. Station Travelig text Loading text Scale Weighing text Queue Loader Queue text _' إ ر,6 O ك اI M ر'`! و " ا6 ! ا6 ! ر'_ واM I ,6 Mآ زن2 " ا،,:J د2 ± 1 قYI انG ! O ا,`' ! ار,6 ز ! ا،زن2I 3/ وزن ., X ! ةO ا,`'د ا ار2"I وU `غI رات و7: ا,7 ا,6 O ك اI ة7" رات7: ا,7 دة ! وا2"ه ب وا.زن وز ! ا2 ت اJ ! واوO ت اJ" ت او9ز2I :, اول اH ا3; .M ا, ول از- -1 Loading Time 5 10 15 Probability 0.3 0.5 0.2 .زن2 ا, ول از- -2 Weighing Time 12 16 Probability 0.7 0.3 . رات7: ا,7 686 دة إ2"ه ب وا. ا, ول از- -3 Probability 0.4 0.3 0.2 0.1 Travel Time 40 60 80 100 Rا0و Jت :Iس .? Jا 27ب , "; 9:Iآ ! Mار'` ,ا ! Oور'_ ا2زن و w2ز ! ا@ Nر ; 3آM 2 Cر. 6 -4آ 3ا Nم ا 9و 9ـ 5ر6ت .,6 M/ . -5ج ا Nم ] ا آ ة GPSSـ 100ر.,6 M/ ,6 -6آر ا`:ة ] 2ا آ ة . ARENA N6ت: -4ا Mا ! , 30 9 aأ ل ا` 10 ) .Mت :; M/ة( % 2 ( -5ا 10 Mر fن 1422هـ ا 2ا; ; 25ا 2001 9م. -6ا Oرآ ,ا RHOI , Hا 9G9Tد ا Oرآ! ! . 2 وا ا .;2 د .ن -ي 687 ا ا ا ث ا" ت2 ء و6@ ا%J ( 2 ق ا آ ةC) P 342 دة هـ1423/1422 ول0 اM ` 3? Uا@ ر ا ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول وSystem states مNت اT 6 ذآR , ا, N0 ا, را,:9C Mf;ب( أو'_ أ Activities مN ا,7O و أAttributes ? ت/ و '` ت اEntities ? ت/ا ` تO ا6e ارئ2C %J (3 !:9C RC :I (2 R ! Y' %J (1 Discrete-event Simulation Method , ` اث ا60آ ة ا ,:97 د2 : ب( ا ,[ ذآ اR :ا ال ا :, اGPSS Sا2J M ء [ ل7 إR زH9 أ( أح 1) GENERATE 2) ADVANCE3) ASSIGN 4) TERMINATE 5) TRANSFER 6) TEST ء7 إR GPSS ا آ ة,Y U M ] آI _ وآStorage وFacility ! ا`ق (ب ,[ أ : ا ال ا 5:00 6 و6 ' 9:00 ا`ة3; ة6 ء رة واO@ ا,[96 رات-eI , آMYOI ,- اW ; اذا آ,! " درا/ و, X رة,; V إ3; ,آO اS6 ' /`9 . ا :3 ه,آO ى ا," H ا ت اS6 ة- رة اS7 ا.g ذS7I Time between calls (Minutes) Probability 15 0.14 20 0.22 25 0.43 30 0.17 35 0.04 :3 ن( آ2 G اM'2I) , إآ لWJ وR9ز2Iو Service Time (Minutes) Probability 5 0.12 15 0.35 25 0.43 35 0.06 45 0.04 ه كW ; إذا آ5ارJ ذI@ ,آO اS6 ' I 3/ م29 100 ة,آO م اN 3 آ6 ., X رة,; V@ ,- 6 GPSS ا آ ة,Y ت( ام ARENA ,992 ا آ ة ا,Y ث( و ام 688 هـ1423/1422 ول0 اM ` 3? U ر اz ,-ذ2 , -إ (2 ق آ ةC) P 342 ا دة :ول0ال اA , -إ (أ R I R7J م ه كM/O; R ا,"C إ ا ] وN ون ا:R ! %J (5 :3? Uل ا ] ا2 U" HI %9 إ ج وw 9 I d ا,"7J R HI ءU إ,N ، ا@ جw ,"7J ل2' و,N : مNت اT 6 R7: ا: ? ت/ا (R H )ز ! ا, ز ! ا،ل2'2 ز ! ا: ? ت/'` ت ا (, ا,"7: رN@ ز ! اXAI ,"7J M ر ) آN@ ت اJ أو: مN ا,7Oأ : إ رات ورU %/ I ه تHI@ اR - 3; ;ت6 ورG 9 و:!:9C RC :I (6 إ رة ا ورYI ,N ،RC : ا ا,; 6 ل2' و,N : مNت اT 6 ا ;ت: ? ت/ا ل2'2 ز ! ا: ? ت/'` ت ا ( 3; 3 ا ;ت اXA9 ا. )وهRC :ة اN د ا ;ت ا: مN ا,7Oأ (ر2" اMJ ا@ رةU M`:I ا@ رة أوa; I ر إ2 7ا 3: ادث2 ا%J ا إ2 9 ادث او ^ه26 3; ! ا:`O ارئ2C %J (7 ا"ج ء ا"جU إ,N ،ل ا ب2' و,N : مNت اT 6 (8 ! ا: ? ت/ا ز ! ا"ج،ل2'2 ز ! ا: ? ت/'` ت ا (3 ر ب اN@ ز ! اXA9 ب M ر ا"ج ) آN اWJ و: مN ا,7Oأ , ط ز: مNت اT 6 YI ,:97 ا5. ه3; :, ` اث ا60 آ ة ا,:9C (ب , ر2 C g [ ل ذ.ث6 U; ث9 3 ( واDiscrete R7: ! G )أي ان ا, ` ل ا ;ت إ2' و.ن2ا2 , RI , ` , ?! أزG اM 9 إذ6 دم وا .d! أ:9C RC :I :3 [ال اA , -إ ( )أ (1) GENERATE A,B,C,D,E Future Events Chain 40!"(( ا) اث ا$; *+ j,B وTransaction ,! Create A - Mean inter generation time. B - Inter generation time half-range or Function Modifier. C - Start delay time. Time increment for the first Transaction. D - Creation limit. E - Priority level. Example: GENERATE 0.1 689 (2) ADVANCE A,B Future Events Chain 40!"(( ا) اث ا$; * Transaction ,! ^B A - The mean time increment. B - The time half-range or, if a function, the function modifier. Example: ADVANCE 101.6,50.3 (3) ASSIGN A,B,C Transaction Parameter ,!( اX, ل, A - Parameter number of the Active Transaction. B - Value. C - Function number. Example: ASSIGN 2000,150.6 (4) TERMINATE A ء8 اد اO0 وا,! *ا A - Termination Count decrement. Default is 0. Example: TERMINATE 1 (5) TRANSFER A,B,C,D ] ا(@ د0 اE ا0&ك او ا A - Transfer Block mode. B - Block number or location. C - Block number or location. D - Block number increment for ALL Mode. Examples: (a) Unconditional Mode TRANSFER ,New_Place (b) Fractional Mode TRANSFER .75,,New_Place (c) Both Mode 690 TRANSFER BOTH,First_Place,Second_Place (d) All Mode TRANSFER ALL,First_Place,Last_Place,2 (e) Pick Mode TRANSFER PICK,First_Place,Last_Place (f) Function Mode TRANSFER FN,Func1,5 (g) Parameter Mode TRANSFER P,Placemarker,1 (h) Subroutine Mode TRANSFER SBR,New_Place,Placemarker (i) Simultaneous Mode TRANSFER SIM,Nodelay_Place,Delay_Place (6) TEST O A,B,C ,!( و ل إ"ب اarithmetic condition *%"@& ا[&ط ا4!Gا O - Relational operator. Relationship of Operand A to Operand B for a successful test. A - Test value. B - Reference value. C - Destination Block number. Example: TEST G C1,70000 ()ب ,U اM[ ت وJو0 ! اWJ أي وw:; 6 واM " S2I (,UI) Facility RELEASE وSEIZE ! :م ا9 :[ ل GPSS BLOCKS SEIZE Facility GPSS BLOCKS RELEASE Facility GPSS BLOCKS 691 M[ وSTORAGE 0 ," & د9 و6 واM " ! [ اآS29 (نG ) Storage LEAVE وENTER ! :م ا9 ," 9 I " نG ا :[ ل GPSS COMMANDS SL STORAGE Capacity GPSS COMMANDS GPSS BLOCKS ENTER SL GPSS BLOCKS LEAVE SL GPSS BLOCKS :P [ال اA , -إ calls FUNCTION RN1,D5 0.14,15/0.36,20/0.79,25/0.96,30/1.0,35 sertime FUNCTION RN1,D5 0.12,5/0.47,15/0.9,25/0.96,35/1.0,45 callwait TABLE M1,10,10,20 * GENERATE FN$calls QUEUE cabq SEIZE cab DEPART cabq ADVANCE FN$sertime RELEASE cab TABULATE callwait TERMINATE 1 GPSS World Simulation Report - Untitled Model 1.1.1 Sunday, January 13, 2002 00:06:22 START TIME 0.000 END TIME 2455.000 NAME CAB CABQ CALLS CALLWAIT SERTIME LABEL FACILITY CAB BLOCKS 8 FACILITIES 1 STORAGES 0 VALUE 10006.000 10005.000 10000.000 10004.000 10002.000 LOC 1 2 3 4 5 6 7 8 ENTRIES 101 BLOCK TYPE GENERATE QUEUE SEIZE DEPART ADVANCE RELEASE TABULATE TERMINATE UTIL. 0.827 ENTRY COUNT CURRENT COUNT RETRY 101 0 0 101 0 0 101 1 0 100 0 0 100 0 0 100 0 0 100 0 0 100 0 0 AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 20.099 1 101 0 0 0 0 692 QUEUE CABQ MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME 3 1 101 60 0.261 6.337 TABLE CALLWAIT MEAN 26.650 STD.DEV. 13.410 RANGE _ 10.000 20.000 30.000 40.000 50.000 60.000 - 10.000 20.000 30.000 40.000 50.000 60.000 70.000 AVE.(-0) RETRY 15.610 0 RETRY FREQUENCY CUM.% 0 7 7.00 27 34.00 39 73.00 13 86.00 9 95.00 3 98.00 2 100.00 CEC XN 101 PRI 0 M1 2450.000 ASSEM 101 CURRENT 3 NEXT 4 PARAMETER VALUE FEC XN 102 PRI 0 BDT 2475.000 ASSEM 102 CURRENT 0 NEXT 1 PARAMETER VALUE ! أن زH رN@ول ا- ! . 2 , 3 وه% 82.7 3 ا رة ه,9 "; أن6 ا آ- 3 2 ? وهJ د26.65 w2 و,:J د70 6 M 9 ر رة2 7 ا3; رN@ا :3 اري ا/ ا رج ا3; aV2 2ه ARENA )ب( ام 693 ARENA Simulation Results amb - License #9400000 Summary for Replication 1 of 1 Project: Taxi Cab Problem Analyst: Replication ended at time Run execution date : 1/12/2001 Model revision date: 1/12/2001 : 100.0 TALLY VARIABLES Identifier Average Half Width Minimum Maximum Observations _______________________________________________________________________________ finish_Ta 25.750 (Insuf) 22.000 27.000 4 cab_R_Q Queue Time 1.0000 (Insuf) .00000 5.0000 5 694 DISCRETE-CHANGE VARIABLES Identifier Average Half Width Minimum Maximum Final Value _______________________________________________________________________________ # in cab_R_Q .05000 (Insuf) .00000 1.0000 .00000 cab_R Busy .93000 (Insuf) .00000 1.0000 1.0000 cab_R Available 1.0000 (Insuf) 1.0000 1.0000 1.0000 COUNTERS Identifier Count Limit _________________________________________ finish_C 4 Infinite Simulation run time: 0.00 minutes. Simulation run complete. %93 ا رة, "; و,:J د25.75 رN@ ز ! اw2 أنH 9:! ا رN از ن إ%U !9. ?! اG ا:`9T 6 رة اى,آO اS6 ' ج9 J :ار:ا .,92C SIMAN ,Y ] ا ; Model statements for module: Arrive 1 42$ CREATE, 1:DISC( 0.14,15,0.36,20,0.79,25,0.96,30,1.0,35 ); 3$ STATION, calls; 51$ TRACE, -1,"-Arrived to system at station calls\n":; 695 6$ ASSIGN: Picture=Default; 27$ DELAY: 0.; 56$ TRACE, -1,"-Transferred to station cab\n":; 29$ ROUTE: 2,cab; ; ; Model statements for module: Server 1 ; 0$ STATION, cab; 158$ TRACE, -1,"-Arrived to station cab\n":; 121$ DELAY: 0.; 165$ TRACE, -1,"-Waiting for resource cab_R\n":; 82$ QUEUE, cab_R_Q:MARK(QueueTime); 83$ SEIZE, 1: cab_R,1; 192$ BRANCH, 1: If,RTYP(cab_R).eq.2,193$,Yes: If,RTYP(cab_R).eq.1,95$,Yes; 193$ MOVE: cab_R,cab; 95$ TALLY: cab_R_Q Queue Time,INT(QueueTime),1; 202$ DELAY: 0.0; TRACE, -1,"-Delay for processing time DISC( 0.12,5,0.47,15,0.9,25,0.96,35,1.0,45 )\n":; 84$ DELAY: DISC( 0.12,5,0.47,15,0.9,25,0.96,35,1.0,45 ); 166$ TRACE, -1,"-Releasing resource\n":; 85$ RELEASE: cab_R,1; 149$ DELAY: 0.; 171$ TRACE, -1,"-Transferred to station finish\n":; 89$ ROUTE: 0.,finish; ; ; Model statements for module: Depart 1 ; 696 2$ STATION, finish; 233$ TRACE, -1,"-Arrived to station finish\n":; 203$ DELAY: 0.; 225$ COUNT: finish_C,1; 230$ TALLY: finish_Ta,Interval(QueueTime),1; 240$ TRACE, -1,"-Disposing entity\n":; 232$ DISPOSE; 697 %ا ا ! 6ا%6 ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﻛﻠﻴﺔ ﺍﻟﻌﻠﻮﻡ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ إ ر ا ل ا` Mا ` 1423/1422 3هـ دة C ) P 241ق ا آ ة ( 1 ا, 2 ! G أ= ! = U/2 -ا' /Kا : ا ال اول: 2Iز R9ز ! ! ا2'2ل ,:J !? Gإ دآ ن أ 6ا H 37"9 !Jول: Time Between Arrivals )(Minutes 1 2 3 4 Probability 0.23 0.37 0.28 0.12 )أ( و أز ! ,و'2ل "د 50ز . 2 )ب( آ2ن رج /Iاري qز ,ا 2ة ; 3ا`:ة ا .,: )ج( إم 1000 2 Excelأز ! ,و'2ل وآ2ن رج /Iاري . U ا ال ا: ت( qاد ا"2Oا? ,ا :, 0.488 0.226 0.221 0.043 0.055 0.743 0.081 0.685 0.364 0.012 0.372 0.543 0.483 0.050 0.628 0.966 0.750 0.697 0.764 0.040 0.404 0.549 0.203 0.990 0.155 0.079 0.789 0.462 0.795 0.190 إ ر Rآ ي أ ا` ,Vا :, H 0 : Ri ∼ U 0,1 H1 : Ri ≁ U 0,1 . α = 0.05 . ب( إم إ ر آ2-2 2روف – 2ف @ Kolmogorov-Smirnovر ا`; ,V إذا آ Wا0ر Jم ا"2Oا?, 0.136 0.513 0.844 0.681 0.154 0.239 0.888 0.090 0.631 0.245 0.394 0.531 0.715 0.276 0.880 2I Uز %N R9ا`ة ] . α = 0.05 . .[0,1ان D0.05,15 = 0.338 إم 3; Excelإ gI -آ أ !/ذ.g 698 %6 ! ا6 ا ا% هـ1423/1422 3` اM ` @ ر ا ل ا, ت-إ ( 1 ق ا آ ةC ) P 241 دة : ال اول/ =إ 7" اR9ز2 ! ا,9 " ول- ن2/ Time Between Arrivals (Minutes) 1 2 3 4 Probability 0.23 0.37 0.28 0.12 Cumulative Probability 0.23 0.60 0.88 1.00 Random Number 0.00 - 0.23 0.24 - 0.60 0.61 - 0.88 0.89 - 1.00 2 ز50 ل "د2'! و Customer Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 Random Number Time Between Arrivals (Minutes) 3 2 4 4 2 4 1 1 3 1 3 1 3 3 2 2 1 2 3 3 4 1 1 1 4 4 3 3 2 2 1 2 3 0.625855 0.556581 0.945541 0.952997 0.420310 0.936866 0.107296 0.114627 0.740750 0.187467 0.755018 0.107803 0.778554 0.866096 0.504978 0.272018 0.040550 0.545166 0.880144 0.653542 0.950950 0.007961 0.059577 0.212337 0.959134 0.958470 0.493049 0.714507 0.247049 0.463654 0.224657 0.279055 0.629967 699 , أز2I ()أ 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 0.846872 0.269160 0.047683 0.744348 0.251238 0.884811 0.946383 0.116568 0.591652 0.086417 0.007588 0.206254 0.114240 0.242383 0.221609 0.017977 0.281981 3 2 1 3 2 3 4 1 2 1 1 1 1 2 1 1 2 .,: ة ا:` ا3; ة2 ا, زq اري/I ! رج92/I ()ب Time Between Arrivals (Minutes) 1 2 3 4 Frequency Relative Frequency 17 13 13 7 0.34 0.26 0.26 0.14 3 اM/Oو& ا Frequency 15 10 5 0 1 2 3 4 Time Between Arrivals (Minutes) 700 . اري/I ! رج92/Iل و2'! و , أز1000 2 Excel )ح( إام Excel ! , `' 3; 3 اMأد :]? اM ; :3 [ال اA , -إ :,?ا2O"اد اq 0.488 0.226 0.221 0.043 0.055 0.743 0.081 0.685 0.364 0.012 0.372 0.543 0.483 0.050 0.628 0.966 0.750 0.697 0.764 0.040 0.404 0.549 0.203 0.990 0.155 0.079 0.789 0.462 0.795 0.190 :, ا,V`ف ا2 H 0 : Ri ∼ U 0,1 H1 : Ri ≁ U 0,1 آ يR ! إ ر ;ةM آ3; R:I 3 ا,?ا2O"اد ا0 د اMH و,9 ;ات و10 [ إ0,1] ا`ة%: Interval 0.00 - 0.10 0.11 - 0.20 Observed 7 2 Expected 3 3 701 Chi Sq. 5.33 0.33 0 0.33 0.33 0.33 0 1.33 3 0.33 11.33 3 2 4 2 3 5 0 2 3 3 3 3 3 3 3 3 0.21 - 0.30 0.31 - 0.40 0.41 - 0.50 0.51 - 0.60 0.61 - 0.70 0.71 - 0.80 0.81 - 0.90 0.91 - 1.00 , Jآ ي R Iا , 2ه 11.33 3و ر -ت 9 ,96 , Jآ ي R IاHو α = 0.05 ,ودر -ت 9 ,96ه 16.9 3وه 3أآ ! ا, : ا ., 2 ا:ار ;T :ا` ,Vا `.,9 ا Mام Excel 702 @ رKolmogorov-Smirnov ف2 – روف2-2 2ف م إ ر آ2 (ب ,?ا2O" م اJر0 اW ; إذا آ,V`ا 0.136 0.513 0.844 0.681 0.154 0.239 0.888 0.090 0.631 0.245 0.394 0.531 0.715 0.276 0.880 .[0,1] ا`ة%N R9ز2I U 9 I اد0 اSI Tأو 0.09 0.136 0.154 0.239 0.245 0.276 0.394 0.513 0.531 0.631 0.681 0.715 0.844 0.88 0.888 ت/ اS i D + = max − R(i ) 1≤ i ≤ N N i − 1 D − = max R( i ) − 1≤i ≤ N N 3 آ i 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 R(i) 0.09 0.136 0.154 0.239 0.245 0.276 0.394 0.513 0.531 0.631 0.681 0.715 0.844 0.88 0.888 i/N 0.066 0.133 0.199 0.266 0.333 0.399 0.466 0.533 0.599 0.666 0.733 0.799 0.866 0.933 0.999 (i-1)/N 0 0.066 0.133 0.199 0.266 0.333 0.399 0.466 0.533 0.599 0.666 0.733 0.799 0.866 0.933 [i/N]-R(i) -0.069 -0.379 -0.644 -0.414 +0.18 +0.16 -0.421 +0.44 -0.031 +0.42 +0.34 +0.27 +0.15 +0.65 +0.12 R(i)-[(i-1)/N] +0.136 +0.446 +0.711 +0.481 -0.1127 -0.0943 +0.488 -0.3767 +0.098 -0.355 -0.2727 -0.2023 -0.085 -0.5907 -0.0533 D + = 0.657 D − = 0.711 D = 0.711 D0.05,15 = 0.338 أنH اولH! ا .,9` ا,V` ; ; ا,وH ا, : أآ ! ا, 2 ا, : ان ا:ار:ا Excel امM ا 703 704 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﻛﻠﻴﺔ ﺍﻟﻌﻠﻮﻡ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ا@ ر ا M ` 3? Uا ` 1423/1422 3هـ دة 241 C ) Pق ا آة(1 ا, 3 ! G أ= ! = U/2 -ا' /Kا : ا ال اول: " Wا ت ا ,ـ 50ز 2 C 3; 2ر أ 6ا2ك.أز , ! ا2'2ل: IAT 6.0 11.9 2.0 1.5 0.4 14.3 0.0 2.9 0.2 5.0 0.1 1.6 5.1 2.6 11.6 9.2 7.4 3.2 3.2 3.5 2.4 2.7 6.4 10.0 8.7 3.8 15.5 0.1 1.6 0.0 3.8 4.0 2.8 2.5 3.3 1.4 4.8 16.5 0.3 9.6 3.1 4.1 0.2 1.5 7.1 8.5 6.1 4.8 10.8 5.5 وأز :, , ST 1.2 6.8 4.5 6.5 4.1 4.9 3.3 6.8 5.0 5.8 4.0 4.8 7.1 8.1 5.6 6.2 2.7 6.8 2.8 5.2 5.4 5.3 5.5 3.4 5.3 5.5 4.1 4.4 7.5 3.7 2.6 9.9 5.6 6.7 3.2 4.4 4.6 5.0 4.2 4.3 5.3 6.0 5.1 4.6 4.6 5.4 7.7 7.0 5.9 3.6 -1أو -دا ,ا2ز R9ا) 39Hا" ! M/ (3أز , -2أز , ! ا2'2ل وأز ,ا ., ! ا2'2ل وا ,ا " 7ة 6 ،آ9 3و 9ا Nم وأو , "; -ا دم و w2ز ! ا@ Nر ! ا.N ا ال ا: 705 ?! إG اM 9 .!? G ت7 اM'2I و.0 6 ت ;& دم وا7 ا,I م2:9 %"7 :, اول اH ا3; " ت9ز2 :C %U %Iل و2'! و , ازR9ز2I S6 %"7 ا :, ل وا2'2! ا IAT (Minutes) Probability 3 0.25 4 0.40 5 0.20 6 0.15 Service Time (Minutes) Probability 2 0.35 3 0.25 4 0.20 5 0.20 706 , أزR9ز2I اول- ة31 ة/ ن وآر ا2 ز100 , ءU إ6 مNا ا. ه3 آ6 Excel ام :, ت اV`وأ ا H 0 : Server Utilization = 0.75 H1 : Server Utilization ≠ 0.75 : ا ال ا , 6 إ,; [ آ, & داX 3?ا2O Y 2 x, 0 ≤ x ≤ 1 f ( x) = 0, otherwise .3?ا2O" اY ا ا. هة ! هO 50 و-1 . α = 0.05 . .K-S Test ام إ ر7ة ! ا2 هات اO أ ا-2 DN ,0.05 = 1.36 384 N نe ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﻛﻠﻴﺔ ﺍﻟﻌﻠﻮﻡ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ إ -ت دة 241 z ,ر ا M ` 3? Uا ` 1423/1422 3هـ C ) Pق ا آة(1 إ= /ال اول: -1 385 :3 ه, ا, ل وأز2'2! ا IAT −∞ < x ≤ 0 , ! أزM/ (3" )ا39H اR9ز2 ا,إذا دا CDF 0.00 0 < x ≤ 3.3 0.04 3.3 < x ≤ 6.6 0.48 6.6 < x ≤ 9.9 0.74 9.9 < x ≤ 13.2 0.86 13.2 < x ≤ 16.5 0.94 16.5 < x < ∞ 1.00 ST −∞ < x ≤ 1.2 CDF 0.00 1.2 < x ≤ 2.94 0.02 2.94 < x ≤ 4.68 0.08 4.68 < x ≤ 6.42 0.40 6.42 < x ≤ 8.16 0.78 8.16 < x ≤ 9.9 0.98 9.9 < x < ∞ 1.00 :3 ول اHن ا2/ ,9آ ة او :آ ة Customer Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 -2 ول- ن2/ IAT Arrival Time ST Service Begin Service Ends Wait? Wait Time 4.8 4.8 5.5 4.8 10.3 0 0.0 3.3 2.8 3.8 0.4 0.1 0.2 0.0 6.0 2.0 16.5 1.4 2.5 4.0 8.1 10.9 14.7 15.1 15.2 15.4 15.4 21.4 23.4 39.9 41.3 43.8 47.8 5.4 2.8 2.7 5.6 7.1 4.0 5.0 3.3 4.1 4.5 1.2 3.4 5.3 10.3 15.7 18.5 21.2 26.8 33.9 37.9 42.9 46.2 50.3 54.8 56.0 59.4 15.7 18.5 21.2 26.8 33.9 37.9 42.9 46.2 50.3 54.8 56.0 59.4 64.7 1 1 1 1 1 1 1 1 1 1 1 1 1 2.2 4.8 3.8 6.1 11.6 18.5 22.5 21.5 22.8 10.4 13.5 12.2 11.6 386 2.6 6.2 8.0 11.3 7.5 10.8 9.5 16.1 17.9 24.1 24.5 29.8 31.2 28.9 22.6 21.7 17.8 19.5 21.0 14.0 11.5 12.9 14.7 18.5 14.7 16.7 17.2 10.7 10.9 9.2 15.9 24.2 27.8 16.7 18.4 13.3 759.8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 49 69.9 76.7 82.9 91.0 95.8 101.6 108.4 113.3 119.8 126.6 134.3 138.9 144.0 149.3 153.5 158.1 161.3 166.9 169.5 177.0 181.1 186.4 193.4 198.8 203.4 209.4 213.7 218.7 223.1 229.8 239.7 243.4 247.8 253.3 256.9 262.8 5.2 6.8 6.2 8.1 4.8 5.8 6.8 4.9 6.5 6.8 7.7 4.6 5.1 5.3 4.2 4.6 3.2 5.6 2.6 7.5 4.1 5.3 7.0 5.4 4.6 6.0 4.3 5.0 4.4 6.7 9.9 3.7 4.4 5.5 3.6 5.9 258 64.7 69.9 76.7 82.9 91.0 95.8 101.6 108.4 113.3 119.8 126.6 134.3 138.9 144.0 149.3 153.5 158.1 161.3 166.9 169.5 177.0 181.1 186.4 193.4 198.8 203.4 209.4 213.7 218.7 223.1 229.8 239.7 243.4 247.8 253.3 256.9 ! اHول :H 258 ;" ,ا دم = 262.8 = 0.982 759.8 w2ز ! ا@ Nر ! إNوا = 49 = 15.51د,:J 387 62.1 63.7 68.7 71.6 83.5 85.0 92.1 92.3 95.4 95.7 102.1 104.5 107.7 115.1 126.7 131.8 140.3 141.8 145.9 155.5 165.5 168.2 171.7 174.9 184.1 186.7 192.2 203.0 207.8 213.9 213.9 215.5 215.6 231.1 234.9 243.6 14.3 1.6 5.0 2.9 11.9 1.5 7.1 0.2 3.1 0.3 6.4 2.4 3.2 7.4 11.6 5.1 8.5 1.5 4.1 9.6 10.0 2.7 3.5 3.2 9.2 2.6 5.5 10.8 4.8 6.1 0.0 1.6 0.1 15.5 3.8 8.7 15 16 17 18 19 20 21 22 23 24 25 26 27 28 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 Totals إ= /ال ا: ;9- , `' 3ة ! Excelأد Mا ت آ هaV2 2 ; UNا ,Hا :, 388 ,V`ف ا2 ا دم و, "` , J 31 ى2 9 (L) 0د ا2 "ا H 0 : Server Utilization = 0.75 H1 : Server Utilization ≠ 0.75 t0 = xUtil − 0.75 ,? sUtil 6@ اS و, "` وا@ اف ا " ريw2 ا-2 ,V` ر; اR7T ا.U و,وH ا, : ! اMJ أ, 2 ا,? 6@ ا, J أن6 .,9` ا 389 6Tأ f9ا , :ا@ , : , 6ا , 2ه 0.68288 3وه 3أآ ! . 0.05 390 : ال ا/ =إ , 6 إ,; [ آ, & داX 3?ا2O Y 2 x, 0 ≤ x ≤ 1 f ( x) = 0, otherwise 3 ااآR9ز2 ا, دا-2 F ( x) = P ( X ≤ x) = ∫ x −∞ f ( t ) dt x = ∫ 2t dt = x 2 , 0 ≤ x ≤ 1 −∞ أي 0, x<0 2 F ( x) = x , 0 ≤ x ≤ 1 1, x >1 ,J" ! ا3?ا2O" اY ا ا. هة ! هO 50 2 -1 X i = F −1 ( Ri ) أيRi ∼ U ( 0,1) P6 X i = Ri :]? ول- ن2/ R 0.714465 0.708959 0.267740 0.474856 0.005750 0.271049 0.736142 0.976983 0.269966 0.721422 0.174332 0.303994 0.530758 0.994646 0.648218 0.508599 0.841944 0.999339 0.160562 X 0.845260 0.841997 0.517436 0.689098 0.075830 0.520623 0.857987 0.988425 0.519583 0.849366 0.417530 0.551357 0.728531 0.997320 0.805120 0.713161 0.917575 0.999670 0.400701 391 0.615609 0.836656 0.197353 0.507724 0.989777 0.964941 0.583050 0.469857 0.470888 0.804164 0.637345 0.428227 0.964925 0.600677 0.646756 0.149989 0.619184 0.929395 0.629613 0.602700 0.880204 0.972109 0.588065 0.737051 0.772378 0.747966 0.321506 0.937846 0.619193 0.728816 0.322449 0.378975 0.699994 0.038948 0.257783 0.979658 0.931111 0.339948 0.220766 0.221735 0.646679 0.406209 0.183378 0.931081 0.360813 0.418293 0.022497 0.383389 0.863775 0.396413 0.363247 0.774759 0.944995 0.345821 0.543244 0.596568 0.559454 0.103366 0.879555 0.383400 0.531172 0.103973 -2ا Oهات ا 2ة ! ا 7ام إ ر α = 0.05 K-S Test آ :3 ;9- , `' 3ة ! Excelأد Mا :3 ;] 392 6أن D < D50,0.05أي ;Tا` ,Vا `.,9 393 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ #دة C) 241ق اآة ( 1 ا^60ر ا / W1ا 1424/1423هـ ا 3 ! Gت أ= ! = U/2 -ا' /Kا : ا ال اول: ; 3آ ب 27ع و -أن د ا 70ء ا 3; ,"7اـ , `' 50ا0و ه:3 3 0 0 0 3 1 1 4 2 2 0 3 1 2 0 1 1 1 1 0 0 1 1 0 1 1 1 0 1 1 0 2 1 1 2 2 1 2 1 1 4 0 0 0 3 0 1 3 2 1 )أ( أو -ا2ز R9ا) 39Hا" (3ت ا .,: )ب( .9آ ; 3آ Sا@ 6ء أن ا Yا"2Oا? " 3د ا 70ء ا ",27 , `' 3; ,"7 & 2Iز2 R9ا2ن .إ ه 5.ا` ,Vت ا ,:أ س أن . λ = 1 )ج( ام , `' 50 !9 EXCELأى ! ه.ا ا /ب. ا ال ا: إ ر "د ا@ رات 2/9ن ! 10أ ،,bآA Mال 4 ,إ -ت ) (Aو ) (Bو ) (Cو )(D وا6ة J ., ' w:; Uم S2 ^ S Cدة , -ا ,b0ر Aال M/O 2Oا?2/9 P 3ن إ ر0 5ي Aال & ` ا`'., ا/Dب: )أ( ;ض أن آA Mال & ,وا6ة ،وأن ا Hح 2/9ن أ س ا@ , -ا , 10 ! 5أJ .,bر ام ا آ ة او ,9إ 6ل Hح ه.ا ا20 S 7 /Iارا .أن ا@ -ت ا ,ه 3آ ; 3اHول ا :3 اAال ا@ , -ا , 1 2 3 4 5 6 7 8 9 10 B A A C B D C D B D )ب( ام EXCELأ ا`:ة )أ( /I 200ار. )ج( أ ;:ة )ب( إذا آ ن ا Hح أ س ا@ , -ا 10 ! 6 ,أ.,b )د( ه 5.ا`:ة إ ر 9G ,9دة :gIأو -ا , :ا 6@ ,9Nل Hح ه.ا ا.S 7 394 ﺑﺴﻢ ﺍﷲ ﺍﻟﺮﺣﻤﻦ ﺍﻟﺮﺣﻴﻢ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ #دة C) 241ق اآة ( 1 ا@ ر ا M ` 3? Uا[ 1423/1422 3هـ ا 3 ! Gت أ= ! = U/2 -ا' /Kا : ا ال اول: SCاOاء ا R9 !" ] 3 2ا2ز R9ا@ 3 6ا :3 4 0.10 2 0.20 3 0.12 1 0.25 Daily Demand Probability 0 0.33 `9ا Gون ! ه.ا ا ] آ ," Mا 9م ;ذا و -ا& ا ! MJاو 9وي 6و6ات SC %9 10و6ات .أي : : I ,Cرا Gون ا 2-2د و C .AITت ) ,f92"Iأي " : I و'2ل Gون .(9-ز ! ا:م ) Lead Timeوه 2ا ! Gا 27:ع ! !6و RVاS7 6و' R9 (&2ا2ز R9ا@ 3 6ا :3 3 0.2 1 0.3 2 0.5 )Lead Time (Days Probability ا ! اول ا20ع إذا آ ن ا Gون اا? 12 3و6ة و C -2ITت ; Rا Gون " ; آ9 3و 6 9أ .U Rا ا Nم 6 .د ,ا 90م ا6 3ث ; ,C : I 3; : Uو, ا62ات ا WC 3و : I %و w2د ا62ات ا O , 27اء ا. 2 ا ال ا: ز ! ا ة 2 Lifetimeات 3 ' :و 3; RVار 26ل ا0رض R9ا2ز R9ا :3 0.4e−0.4 x , x≥0 f ( x) = otherwise 0, ام MINITABأو EXCELو 1000أز 6 ,ة وأ S-ا :3 -4ه 2إ 6ل أن ا :ا G9T 3ال 2 5 " M "9ات؟ -5ه 2إ 6ل أن ا :ا 3 ! M "9 3و 2 6ات " إ&JC؟ ) I gH? :6 -6ا@ , -ه 5.ا`:ة إ ر.( 9 395 : ا ال ا xi 3?ا2O Y هاتO M[ 9 3 اري ا/ول اHا xi Observed Frequency 0 118 1 274 2 298 3 169 4 105 5 25 6 8 7 1 8 2 . α = 0.05 . 2 w2 ن2ا2 R9ز2I & 3?ا2O Y xi ان,? : ا,V`أ ا 396 ا ا ا " ,ا 2" gد %Jا@ 6ء و 2ث ا" ت دة C) P 241ق ا آ ة ( 1 ا@ ر ا M ` 3? Uا0ول 1424/1423هـ ا 3 ! Gت أ= ! = U/2 -ا' /Kا : ا ال اول: R7J " M I ,إ ,7:اe _Yز , ! و'2ل Uا2ز R9ا :3 Time Between Arrivals Probability 0 0.23 1 0.37 2 0.28 3 0.12 ت اYI _Yق أز U ,ا2ز R9ا وي ! 1و R - . 4ا0و Jت :Iس .? J أ( أ-ي آ ة 9و N ,9م 6ا@ Uء ! .R7J 10 _YIوJر w2 -1أز ,ا@ Nر ;2 C 3ر ا R H _Yا R7:و R7:ا 3أNت ;". , , "; -2ا _Yوه Mج إ _YI ,7:اى -3 .أ2C Jل 2 7ر. ب( ام EXCELأ-ى `:ة ا .,: آ ة Nم 6ا@ Uء ! J .,"7J 100 _YIر ا 27ب ; 1 3و 2و 3 ا ال ا: أ( ا 2Oا? ,ا0ر Jم ا ,ام إ ر آ2-2 2روف2 -ف ):( K-S Test 0.0465 0.3435 0.9203 0.0988 0.9011 0.0824 0.7549 0.6749 0.3506 0.5310 0.2400 0.0689 0.3827 0.7177 0.3676 0.5087 0.0930 0.9542 0.0366 0.1155 0.2112 ب( EXCELا 2Oا? ,ا0ر Jم ا ,:ام إ ر اHي M`0وأ Runs Up and .Runs Down Test :;r#إذا ; Vأن aه 2ا"د اH 3/ي ; ! ," 3ا0ر Jم ا"2Oا? ,ا ; ,::ن w2و!9 I 2N −1 16 N − 29 = , σ a2 J" 7"I aت 3 90 = %H6 N P6 µ aا"; .,ذا آ ; N > 20 Wن a 2/9ن 2I 9:I Uز. N ( µ a , σ a2 ) R9 397 %6 ! ا6 ا ا% ث ا" ت2 ء و 6@ ا%J م2" ا,آ د2" g ا," - هـ1424/1423 ول0 اM `إ ر أ ل ا ( 1 ق ا آ ةC ) P 241 دة 2' 2 #>ا :, ا,b0 اR - S-أ ?! إG اM 9 .!? G S7 اM'2I و.0 6 ت ;& دم وا7 ا,I م2:9 %"7 :, ل ا2'2! ا , ازR9ز2I S6 %"7 ا :ل2'2! ا IAT (Minutes) 1 2 3 4 , أزR9ز2I ول- Probability 0.25 0.40 0.20 0.15 :3 ر آN@ر ا2 C ل2C S6 , ! N R9 ا دم :4 ! MJر أ2 7ل ا2C إذا آ ن, ا, أزR9ز2I ول- Service Time (Minutes) 4 5 6 7 Probability 0.35 0.25 0.20 0.20 :4 وي9 ر أآ ! أو2 7ل ا2C إذا آ ن, ا, أزR9ز2I ولService Time (Minutes) 2 3 4 5 Probability 0.30 0.28 0.25 0.17 398 ا ال اول: 6آ9 3و 9ه.ا ا Nم 6إ Uء 20 ,ز 2ن .وأو , "; -ا دم وأ2C Jل 2 7ر و w2ز ! ا@ Nر. ا ال ا: أم Excel آ ة ا Nم 36إ Uء 200ز 2ن .أو 9 : -ا0داء Nم. 399 %ا ا ! 6ا%6 ء و 2ث ا" ت %Jا@6 آ ,ا"2م ," -ا 2" gد ا@ ر ا M ` 3? Uا[ 1422/1421 3هـ دة C ) P 241ق ا آ ة ( 1 ا>2' 3 #ت أ R - S-ا ,b0ا :, اAال ا0ول: 2Iز R9ز ! ! ا2'2ل ,:J !? Gإ دآ ن أ 6ا H 37"9 !Jول: Probability Time Between Arrivals )(Minutes 0.23 1 0.37 2 0.28 3 0.12 4 )أ( و أز ! ,و'2ل "د 50ز . 2 )ب( آ2ن رج /Iاري qز ,ا 2ة ; 3ا`:ة ا .,: )ج( أ 2-دة اq ;2ز ,ا 2ة ) ا Oهة R ( Oا0ز ,ا " 3; 5 7اHول 2 ( χ 3,0.05 )ا = 7.81 ) . α = 0.05 . .( E ,"J2 اAال ا[ :3 qر Jم ا ) :,إJأ ! ا ر ! 7ا (7 0.25 0.01 0.93 0.70 0.66 0.74 0.79 0.47 0.68 0.18 0.88 0.07 0.99 0.51 0.04 0.01 0.43 0.60 0.59 0.55 0.64 0.10 0.61 0.22 0.85 0.42 0.01 0.98 0.05 0.20 0.11 0.23 0.68 0.41 0.96 0.48 0.11 0.59 0.11 0.10 )أ( أم إ ر اHي 2; Runs Testق و W Iا @ w2ر ; إذا آ Wه 5.ا0ر Jم 2Oا?. ., b − ( 2n1n2 N ) − 1 2 ) 2n1n2 1 2 2n1n2 ( 2n1n2 − N = + ,σb = , Z0 12 2 N 2 )N ( N − 1 2n1n2 ( 2n1n2 − N ) N 2 ( N − 1) α = 0.05, z0.025 = 1.96 = µb 400 , داRI ,?ا2O اتY 8 ـ%J و,: ا,?ا2O" م اJر0ول ! ا0 ا7)ب( ام ا :, اR9ز2ا 0, 2 x , 2 F (x) = 2 1 − ( 2 − x ) , 2 1, x≤0 0 < x ≤1 1< x ≤ 2 x>2 :P [ال اAا اتY 8 ـ%J وAcceptance-Rejection Technique ;ل وا2: ا,:9C ام إم. ( e −0.2 = 0.8187 ) λ = 0.2 w2 Poisson Variates ن2ا2 R9ز2I RI ,?ا2O :3ارزم ه2ات ا27 .7 ا7 3 [ال اA ! ا,?ا2O" م اJر0ا . P = 1 وn = 0 RV :1 ة27ا . P × Rn +1 ـP و لRn+1 3?ا2O %J و ر:2 ة27ا و6ا2 n وزد, اn ; أرT وإN = n MJ إ.? P < e − λ W إذا آ:3 ة27ا . 2 ة27 401 %6 ! ا6 ا ا% ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ هـ1424/1423 ا/ W1ر ا60^ا (2 آة#) 342 ادة ت2' 3 #>ا : ا/K' = ! اU/2 -=أ :ا ال اول :3 ا ] اM M ` أح Space * * * Lost * * * STORAGE 3 Model Segment 1 GENERATE TRANSFER ENTER SEIZE LEAVE ADVANCE RELEASE TERMINATE (Exponential(1,0,500)) Both,,Lost Space Wash Space (Exponential(1,0,400)) Wash Model Segment 2 GENERATE 48000 TERMINATE 1 :ا ال ا :GPSS )ام$'_ :P ر ا ] ا2C . مNا ا2C ! ? ت6 إR HI -1 . مN %UX2/ , م وأزN ! و9. "د ا " ! ا,9ار/I اول- -2I -2 .Lost مN و9 % !9. "د ا " ! ا,9ار/I اول- -2I -3 .]I ا9: و; اRCر وأ27 ي ا ] ا- أ-4 402 %ا ا ! 6ا%6 ﻗﺴﻢ ﺍﻹﺣﺼﺎﺀ ﻭﺑﺤﻮﺙ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺟﺎﻣﻌﺔ ﺍﻟﻤﻠﻚ ﺳﻌﻮﺩ ا^60ر ا / W1ا 1424/1423هـ ادة #) 342آة (2ا>2' 3 #ت أ= U/2 -أ) ا' /Kا _')$ام : GPSS ا ال اول: M Iإ أ 6ا 2ا ! !2ا`! `I 3/غ 3; -29 . U2 6ا ء زور7J !J ) Sا`! إ دا Mو رج ا0ر'` (,ا2ع ا0ول ! ا`! 'Yة ا %Hو Iج إ زورق 7Jوا U 6إ و ! ا'_ وا2ع ا[ 3آة ا %Hو Iج إ آ! M اGور7: !Jه إ و ! ا'_ S .إف %H6ا`! ;`I Uغ 3; U2 6أر'`, ` ,و; 3أز S6 ,` ,اHول ا :3 2ع ا`, آة 'Yة أز ! ,ا2'2ل)د(,:J 390 ± 60 130 ± 30 ز ! ا )_' Sد(,:J 45 ± 12 30 ± 7 3 6 د أر'` ,ا` 9ا ,6 ز ! ا`(, )9 18 ± 4 12 ± 2 ز ! ا ! Sا'_)د(,:J 35 ± 10 20 ± 5 ا` S IT ,إ دا Mا ء إ Tإذا آ ن ه ك ر'_ ح . U H Sآ أن ا`! ! ا %Hا S IT /إ Tإذا آ ن آ ! Mزور 3Jا. U ,6 7: 6آ N M 3م ا ء ة ا2ع وا 6وأو 9 : R - -ا0داء Nم. ا ال ا: 2/9 Y' , : Mن ! 3رات ! أر;_ ا R? fو Sوا M 9 .6ا !? Gإ ا e Mز ! ,و'2ل 2ز ,ا ., X 90 w2و'2ل ا2 Gن ! , .e9 آ2/I , 2ن ! , 20و; , 6 3م و2-د ; ,ن ا2 Gن Y9در ا Mأو ; N9 Jاغ 6 ,ل ,H9 J %X 0.55إ رأو أآ[ 2ق S6اHول ا :3 ا ر إ 6ل د2ل ا ر ز ! ا2ق ; 3ا ر د ا62ات ا 2eذة ; 3ا ر , X 120 ± 60 0.75 1 3 ±1 , X 150 ± 30 0.55 2 4 ±1 , X 120 ± 45 0.82 3 5 ±1 ا@ Uء ! ا2ق &H9ا2 Gن ,7:ا Sو2 C 3; N9ر S6أو ,92ا2'2ل. ,7:ا -29 Sرف & " ا R? fا ` ,fوا 9 J 3ر Uا2 Gن د ! 2 ± 1ا62ات 6ل . 0.25ز ! ا M/ ,ز 2ن "9د ا62ات ا99 3 ا? Uوه2X 3 2ان M/و6ة " .إ Uء د; Rا ب 9ك ا2 Gن ا ,و Y9در. 6آ 3ه.ا ا Nم ة ا2ع وا29 P6 6م ا" 8 Mت وأو w2 -د ا !? Gا!9. ^ درو ا Mون 2Iق "م ;2Iل- .ول ز ! ا 2/ث Nم !? Gا ،!J2 ه , "; 3ال وا Sه 2د ال ا M[ 0ا.ي SH9ان S6 ' 5;29ا M :`9T 6أي ز 2ن؟ 403 ا ا ا د2" g ا," ث ا" ت2 ء و6@ ا%J ( 2 ق ا آ ةC) P 342 دة هـ1424/1423 ول0 اM ` 3? Uا@ ر ا ت3 ! Gا : ا/K' = ! اU/2 -=أ :ا ال اول (w:; 3 )إ ر:, اCOMMANDS وا0 اM أ( أح 1- Seats STORAGE 10 2- TimeInSys TABLE M1,5,10,20 3- Delay VARIABLE RN1@10+50 4- InterAT FUNCTION RN1,D7 0,0/.05,1/.18,3/.34,4/.56,6/.85,7/1.0,8 (w:; 3 )إ ر:, اBLOCKS Sا2: اM ب( أح 1- GENERATE Exponential(1,0,3)) 2- ADVANCE P1 3- TABULATE TimeInSys 4- TEST GE X$Seats,P$Delay 5- SAVEVALUE Seats-,P$Delay :ا ال ا (w:; 3 )إ ر:, اSا2: , / اSا2:أ( أذآ ا 1- GENERATE 2- QUEUE 3- RELEASE 4- LEAVE 5- ADVANCE 6- TRANSFER .aV2 اR TRANSFER S : اMODES ار2C! ! أ9ر2C ب( أذآ 404 : ا ا ا# ) واU/2 -=أ : ا ال ا :3 اR9ز2 اU ل2'! و , زe _Y ا,7: إM I ," R7J Time Between Arrivals Probability 0 0.23 1 0.37 2 0.28 3 0.12 . 0.1 وإ اف " ري0.5 w2 3"C R9ز2I U , ق أزYI _Y ت ا .? J س:I تJو0 اR رJ و.,"7J 100 _YI ! ءU@ ا6 مN ى آ ة- أEXCEL أ( ام ."; تN أ3 اR7: وR7: اR H _Yر ا2 C 3; رN@ ا, أزw2 -1 ._ اىYI ,7: ج إM_ وهY ا, , "; -2 .ر2 7 ل2C J أ-3 . 3 و2 و1 3; ب آ27 ا- وأو,: ة ا:` ا3; ى ا آ ة آ- أGPSS ب( ام :! ا ال اا .g. w7 37"9 اM/O ا. رات7: ا,7 ا%H ! % ` اM: مI ت6 6 9 Station Travelig text Loading text Scale Weighing Queue Loader Queue text text ،زن2I 3/ إ ر'_ وزن,6 O ك اI M ر'`! و " ا6 ! ا6 ! ر'_ واM I ,6 Mآ رات7: ا,7 ا,6 O ك اI زن2 " ا،,:J د2 ± 1 قYI انG ! O ا,`' ! ار,6ز ! ا ه ب.زن وز ! ا2 ت اJ ! واوO ت اJ" ت او9ز2I ., X ! ةO ا,`'د ا ار2"I وU `غIو :, اول اH ا3; ة7" رات7: ا,7 دة ! وا2"وا .M ا, ول از- -1 Loading Time 5 Probability 0.3 405 10 15 0.5 0.2 .زن2 ا, ول از- -2 Weighing Time 12 16 Probability 0.7 0.3 . رات7: ا,7 Travel Time 40 60 80 100 دة إ2"ه ب وا. ا, ول از- -3 Probability 0.4 0.3 0.2 0.1 .? J س:I تJو0 اR رJ و.,6 M/ ,6 ر100 @آ لGPSS م ] ا آ ةNج ا. .زن2 ! ور'_ اO ا,`' ! ارM آ, "; -1 .ر2 C M آ3; رN@ ز ! اw2 -2 406 4ر: 9 I 9 (1ا@ا ,HIا [ HI ,29G`I ,: 3; a 3/ى ا 2ا :3 "9ض ا ,XXا 2اب `2- Uا? Gأ 6ه 5.ا2Hا? , J Gوا،, J U !9T ! S79ا إ ر أ 6ه 5.ا2 0اب و " إ رة و MJأن a`9ا ب "; ,اG? Hة 2:9م :م ا a` ,:أ 6أ2 0اب اTى G? - U` UN9 3/ة ^ ذات e9 ،, Jل :م إذا آ ن YI 99رأ &9وإال إ ر 5أ0ول وذ gر ا ب ا ] ا ; ا hا.ي .:I اAال ه :2ه SH9 Mا YIرأ &9وإ ر ا ب اh؟ ا آ ة أ S-اAال ا آ ة ا ر29ه ت ا :, أ( `ض أن & a :ا" 500 Sة ،و`ض أ& دا? 9ر ا ب ر 1 %Jوأ& Y9Tإ ر a; " 5أ 6ا2 Tاب ا ; .,:ذا Wأن اG? Hة ا2/I J , :ن _ أي ب ! ا2 0اب ` ا@ 6ل ا ,9ا" ! %/; ،,ا ات a 9ا اG? Hة ا, :؟ ب( `ض أن ه.ا ا 500 S" & aة اى 3; ،ه 5.ا ة 9ر دا? ا ب ر 3; 1 %Jاا Y9 %X ,9إ ا ب ا O " hه 5ا ب ا `2ح ا.ي 2 9ي G? -ة ^ ; ., Jذا Wأن اG? Hة ا2/I J , :ن _ أي ب ! ا2 0اب ` ا@ 6ل ا,9 ا" ! %/; ،,ا ات a 9ا اG? Hة ا, :؟ ج( إذا آ: W ذا آ M"` Wإذا YI g SCإ رك ا0ول؟ (2ا S7اUOي ( 2د ! M9ا ت Oآ R9 W -3 3 ,ا2ز R9ا3"7 350 w2وإ اف " ري OI .75ي W -3 3ه 5.ا ت وU"I 4500ر 9ل 8625ر 9ل _/I .اOآ 375 ,ر 9ل ,C RV2و 4ر 9ل آM 3; MN9 S 6ا ,9 U !9Gآ RfI 6 .U MاOآ" ,C ,د S 6 1000 :9ا Gون ; ,9 U 3ا .S 6 100 ! MJ0 UOإ;اض ان ا 7ت ا: IT 3 ; 3أي :`I U aآ ت ; ,آ أن ا 7ت ا ,9 U 3; ,2V2أ 6اM I U0 ; 3ا ,9ا UOا .3 أ( ام ا آ ة Jر أر ح اOآ ! ,ا :د !. ب( أ;ض أن اOآ ,7: 9 I 9I ,ا Reorder point S7و آ ,اOrder quantity S7 ا [ 9 Iا 100 M/و6ة ز 9دة ; ,7: 3ا2 S7ف : 2 2:9ص آ ,ا: S7ار 407 .100أي Iآ ,7: ! ,ا S7وآ ,ا2 S7ف 37"Iأ w2أر ح ! ا :د !؟ ,A 9 (3ا 2q 3اق ا آ 9 ,9Gول ا: ! Aار ا Mا.ي ] ! آM ! %Jأ Jم ا Hل ا J : .2004 ,م ا T" 9: 9ت ا 2ا Yى وا" N ا .%J M/ M ,/آ أ& e :"9ن "Tت ا 2ا ! R:I 3ا ! :ا Yى وا" ` U Nا@ 6ل ; 3ا وث9:I .ات ا 3; , 9اHول ا :3 "ل ا 2 د 9 2003 Mل اY'0 ا%N0 ا%: ا0دوات ا,? U/ 6342213 2% 10% Gت ا ا? 1203231 - 4% 5% 4367342 - 2% 6% 3543532 - 1% 8% 4342132 4% 15% أ,9.6 Gت ا,V 9 ا" ب ام ا آ ة 9: %Jا Mا 3/ا.ي " ]9 Jم ا :دم .2004آر ا آ ة 500 ة وأو -ا :3 أ( آ2ن ;ة 2 w2 95% ,:Xى ا Mا " RJ2م .2004 ب( 2 S6ذ g-ه 3ا`ص ; 3أن 2/9ن ا Mا 2004 , 3; 3/أآ[ ! 5%ز 9دة ! ,ا" م ا ؟ ; (4ق ا? " ,; fت 29 -AI ,;^ 100 &9 ا`ق 100ر 9ل ,;Yآ 400ر 9ل _/I .,;Yإدارة ر ،_NI) ,2 _9روا , ' ،SIا29 M/ (dم &; -eI ا ! &2J %I GH6 M/ .,;Yا`ق ه ك إ 6ل 5%أن ا2fف ! .2 9إذا أ .ا`ق 2H6زات أآ[ ! د اYف ا^ Oة ;ن & 92"Iا _fا :دم A GHآ وا.ي ^ ,;^ H9Tة 750ر 9ل6 .د د ا 2Hزات ا !/ 9 3ان U:9ا`ق w2 %N"9ر & ا .3 2أم /I 500ار 408 آ ة 2 M/ى .5.eI GH6 P I (5أ 6ا T2ت ا زل HIي ! Yا ل UI ! .ا :I ,:ر أن ! _ ! UC 9ا ب ! %U 80% M/O9ا ء و ! 20%ا -ل .آ ا:I Uر أن ! 70%ا ء ا ! U? 7 ! :9 UC 9 3Iا ل و ! 40% w:; !/ا -ل ا2"`9 U2C 9 !9.ن ذ .gأ UI ! f9ا :I ,:ر أن ا ا.ي &7"9ا ء R9 2Iز 20 w2 3"C R9ر 9ل وإ اف " ري 3ر 9ل ذ - gل R9ا2I f9زR9 10 w2 3"Cر 9ل وإ اف " ري 2ر 9ل) .إذا Wأن ا 10 ! 37YI ,2إ ` 29 TG 15ا@ 6ل( ;:ر w2د) Uا 3;) (3 2ز 9رة "د G 200ل(. a ! " ! ," ,: 3; (6ا 2ن " " أن %9إ ر ا ! ,2 H 79 !:ح & ة أ2/I ,bن آ ! U Mأر Rإ -ت ,وا6ة ; , ' Uذا أ -ب ا اAال ا 7وح A M:9 &; , ' , -ال ا 3وه./ا M 9 6 إ Aال ا 2ن; .ض أن ا@ , -ا[ [A M/ ,ال ه 3ا@ , -ا ,وأن ا 9ر أ 6ا@ -ت ا0ر "2O ,:97 ,ا? ` ,ا@ 6ل وإذا آ ن ه ك A 16ا6 T a 9ا 2ن أ( أو , -ا 500 ! ! !:ا2 9 !9.ن ا 2ن. ب( إذا آ Wا@ , -ا A ! YI ,ال 2O ,:97 hا?, 2/I Pن أي ! ا@ -ت ا0ر " ,و ` ا@ 6ل أو , -ا 500 ! ! !:ا2 9 !9.ن ا 2ن. ج( 6آ a ! " ,: 3ا 2ن " آ OIهه ا`29Gن وأو , -ا ! !: ! 500ا2 9 !9.ن ا 2ن. (7إ ر "د ا@ رات 2/9ن ! 10أ ،,bآA Mال 4 ,إ -ت ) (Aو ) (Bو ) (Cو ) (Dوا6ة J ., ' w:; Uم S2 ^ S Cدة , -ا ,:97 ,b0ا :, أو; ,G , 3 9 (Tذا Uو H &-أ ر ا@ (A) ! -و ) (Bوإ Tأ ر ) (Cو ).(D 3 9 ( Xا" ,ة اي 9 3/ر وا6ة ! ا@; ! -ذا Uو H &-أ ر ا@& - ) (Aأو ) (Cوإ Tا ر ) (Bأو ) .(Dأ Nا M/Oا :3 409 )H (A )H (A & B )T (B )H (C )T (C & D )T (D )أ( ;ض أن آA Mال & ,وا6ة ،وأن ا Hح 2/9ن أ س ا@ , -ا 10 ! 5أJ .,bر ام ا أن ا@ -ت ا اAال ا@ , -ا , , آ ة إ 6ل Hح ه.ا ا/I 200 S 7ارا. ,ه 3آ ; 3اHول ا :3 1 2 3 4 5 6 7 8 9 10 B A A C B D C D B D )ب( أ ;:ة )أ( إذا آ ن ا Hح أ س ا@ , -ا 10 ! 6 ,أ.,b ا ال ا _')$ام :GPSS ا ال اا !: M Iإ أ 6ا 2ا ! !2ا`! `I 3/غ 3; -29 . U2 6ا ء زور7J !J ) Sا`! إ دا Mو رج ا0ر'` (,ا2ع ا0ول ! ا`! 'Yة ا %Hو Iج إ زورق 7Jوا U 6إ و ! ا'_ وا2ع ا[ 3آة ا %Hو Iج إ آ! M اGور7: !Jه إ و ! ا'_ S .إف %H6ا`! ;`I Uغ 3; U2 6أر'`, ` ,و; 3أز S6 ,` ,اHول ا :3 2ع ا`, 'Yة آة 130 ± 30 390 ± 60 ز ! ا )_' Sد(,:J 30 ± 7 45 ± 12 د أر'` ,ا` 9ا ,6 6 3 أز , ! ا2'2ل)د(,:J 410 ز ! ا`(, )9 12 ± 2 18 ± 4 ز ! ا ! Sا'_)د(,:J 20 ± 5 35 ± 10 ا` S IT ,إ دا Mا ء إ Tإذا آ ن ه ك ر'_ ح . U H Sآ أن ا`! ! ا %Hا S IT /إ Tإذا آ ن آ ! Mزور 3Jا. U ,6 7: 6آ N M 3م ا ء ة ا2ع وا 6وأو 9 : R - -ا0داء Nم. 411 ا ال ا _')$ام :GPSS ا ال ا:"#$ 2/9 Y' , : Mن ! 3رات ! أر;_ ا R? fو ا e Mز , ! و'2ل 2ز ,ا Sوا M 9 .6ا !? Gإ ., X 90 w2و'2ل ا2 Gن ! , .e9 آ2/I , 2ن ! , 20و; , 6 3م و2-د ; ,ن ا2 Gن Y9در ا Mأو ; N9 Jاغ 6 ,ل ,H9 J %X 0.55إ رأو أآ[ 2ق S6اHول ا :3 ا ر إ 6ل د2ل ا ر ز ! ا2ق ; 3ا ر د ا62ات ا 2eذة ; 3ا ر 1 0.75 , X 120 ± 60 3 ±1 2 0.55 , X 150 ± 30 4 ±1 3 0.82 , X 120 ± 45 5 ±1 ا@ Uء ! ا2ق &H9ا2 Gن ,7:ا ,7:ا Sو2 C 3; N9ر S6أو ,92ا2'2ل. -29 Sرف & " ا R? fا ` ,fوا 9 J 3ر Uا2 Gن د ! 2 ± 1ا62ات 6ل . 0.25ز ! ا M/ ,ز 2ن "9د ا62ات ا99 3 ا? Uوه2X 3 2ان M/و6ة " .إ Uء د; Rا ب 9ك ا2 Gن ا ,و Y9در. 6آ 3ه.ا ا Nم ة ا2ع وا29 P6 6م ا" 8 Mت وأو w2 -د ا !? Gا!9. ^ درو ا Mون 2Iق "م ;2Iل- .ول ز ! ا 2/ث Nم !? Gا ،!J2 ه , "; 3ال وا Sه 2د ال ا M[ 0ا.ي SH9ان S6 ' 5;29ا M :`9T 6أي ز 2ن؟ 412 ا ال ا _')$ام :GPSS ا ال ا دس: ;3 R Mا `ق ا S7ا R9 !" 3 2ا2ز N (10, 4 ) R9و6ة .آ : ا Gون ! ه.ا ا ! 2ى 30و6ة ;ن ' S6ا R ,C Rf9 Mا 2رد "د 100و6ة وا M I 3إ ا ; 3; Mة ز 6 ! ,و 10أ 9م 2ز ,و .,9أي ,C G HITون آ ;.:`I U 3 أو2I -ز R9ا Yات ا"2Oا? :,ا " ت ا , 2ا `2:دة و د ا62ات ; 3ا Gون ا.3 2 413 ا ال ا _')$ام :GPSS ا ال ا !: , %"7ا & M "9 ,"9د ! و& 2 Cر وا Nz 6ر ،ز ! ! ا2'2ل !? G & 2Iز . 2.5 ± 1.5 R9أ 6ا د ! 9أ" 6وف ! MJا !? Gوه 2أآ[ ة و, ; 3ا ! ,ز & ا ،/ Hا2 Gن ا.ي M 9و H9آ ! Mأ 6و ; /ر^! 9ر أ ., 6ز ! ,ا2 Gن 2I & 60ز 3.5 ± 1.5 R9و. 4.5 ± 1.5 / 6آ 3ا Nم 6إ Uء 1000 ,ز 2ن وأو , "; -آ ! Mأ 6و /ود ا !? Gا!9. 2 %U W Iا ,7آ ! Mأ 6و /وأو2I -ز2C R9ل ا2 7ر. أ= U/2 -ا ال ا _')$ام : GPSS ا ال اول: 2/9ن ف ! ' 5ا;! a`9 ،ا ف أ 2ا & ا 6 ' 9:00 ,و Y9ا 5:00 , ا ،و ( , 3U9 6 M " 9 !/ز 2ن و' MJ Mأو 5:00ا .أز , ! ا2'2ل 2I U !? Gز R9ا 1 w2 3د ,:Jوأز ,ا 2I U !? G ,ز R9ا3 4.5 w2د.,:J آ' Mاف & 2 Cر ص & 9 .ول أي ز 2ن و'2I Mا ا@ ق 2 C Jeر و; 6 3ل Iوي أ2Cال ا27ا 9ا2 Gن 2 7ر ; 3أ Jا ر .أي ز 2ن ; ,9 U 3أي 2 Cر 9ك 2 Cر 5و2 7 9ر ا 6 3; J0ل آ2ن ه ك 2 Cر أ2 C ! Jر 5و 2/9ن ه ك 2 Cر !9و !9أ2 C ! Jر 9 5ا2 Gن 2 7ر ا 3; J0أ J ا ر ،وإذا آ ن ه.ا ا2 7ر 9أ ا2 Gن 2; ,را. Iص إدارة ا ف إر Vء ا !? Gو 3; /`Iز 9دة 'اف أو أآ[ و 9I !/ا :م را U %I ,ه.ا ا:ار%J . آ ة Nم ا إ 3; Vة ، 29 30هgI '2I 3؟ 414 ف 6و; , 6 3إ 1 ,; Vأو ' 2اف أ= U/2 -ا ال ا _')$ام : GPSS ا ال ا: 2 H 5 & Rت ! اThت ،ا ,2 Hا0و T( 3 Uت وا ,2 Hا[ ,( 2 U , وا[ [T( 4 U ,ت واا "T( 3 U ,ت وا ,( 1 U ,وا6ة و R -اThت ه3; U` 3 ا ,2 Hا2ا6ة M I .ا _? 2ا اد U" Iإ ا ا3 e Rز , ! و'2ل 2I UزR9 ., 0.25 w2ا _? 2ا2ا'2/I ,ن ! 3أ2اع ،ا ! _? 2ا2ع ا0ول 2/Iن ! 30%ا _? 2و ! ا2ع ا[ 2/I 3ن ! 50%ا _? 2و ! ا2ع ا[ 2/I Pن ! 20%ا ._? 2ا ! _? 2ا2ع ا0ول Iج إ U 4م @ Hزه و ! ا2ع ا[ 3إ U 3م @ Hزه و ! ا2ع ا[ Pإ U 5م @ Hزه وآ SH9 , U Mأن ,2 H %I " ! ,اThت و !" SIآ ; 3اHول ا :3 2ع ا,`2 ,2 Hا ! ) SI !? /ا ر( 1 3, 1, 2, 5 2 4, 1, 3 3 2, 5, 1, 4, 3 أز ,ا ,2 H S6 , U M/ ,اThت 2I Uز "9ت و S6 ,9اHول ا :3 2ع ا,`2 أز ,ا U ,م ! ) ,ا ر( 1 ) ( 0.50 ± 0.10 ) , ( 0.60 ± 0.05 ) , ( 0.85 ± 0.15 ) , ( 0.50 ± 0.20 2 )(1.10 ± 0.20 ) , ( 0.80 ± 0.15) , ( 0.75 ± 0.25 3 ) (1.20 ± 0.15 ) , ( 0.25 ± 0.05 ) , ( 0.70 ± 0.15 ) , ( 0.90 ± 0.20 ) , (1.00 ± 0.10 ا _? 2ا2ا' NI ,2 H M/ ,دوره ; , 6 3إ YOل ا ,hا2: 3م " U M وا ,`2 ,f;0ا M I 3أو.T 6آ 29 365 3 Rإ ر أن ا2م 2/9ن ! 8ت وJر w2أز ,اe ; 3ا27ا وJر 2C w2ل و;" ,آ2 C Mر ; 3آ.,2 H M 415 أ= U/2 -ا ال ا _')$ام : GPSS ا ال ا : M Iا`! إ ء eز , ! و'2ل 2I Uز R9ا . 29 1.25 w2 3ا ء 2/9ن ! ر'`! ) 9`I ,( U M/و( وا6ة .ا`! ا M I 3و HIا0ر'`NI ,2YO , ;2 C 3ر وا S6 6أو ,92و' . U2ز ! 2I & ,` 9`Iز R9وي ! 0.5و 1.5 , 6 3; . 29و2-د ` ,وا6ة ; 3ا ء ;ن (Tت ا` 9آ "9 Uن U 9 ز ! UY9`Iإ ا _ .و2-د `! ; 3ا ء ;ن (Tت ا` M "I 9آ Mوا6ة ` 6 3; .,ل Mا ,` !hوو'2ل `; , X ,ن أ 6اThت 2; U R7:Iرا وIأ ا" Mا` ,ا 3و' Wوا ! Gا 9` 3:ا` ,ا0و ._ f9 أ-ي آ ة Nم ا ء ة 29 90وJر أ MJو أ w2ز ! 2/ث ا`! ; 3ا Nم وآJ g.ر ;" ,ا0ر'` ,و(Tت ا`.9 416 ا ال ا _')$ام :GPSS ا ال اا !: M Iإ أ 6ا 2ا ! !2ا`! `I 3/غ 3; -29 . U2 6ا ء زور7J !J ) Sا`! إ دا Mو رج ا0ر'` (,ا2ع ا0ول ! ا`! 'Yة ا %Hو Iج إ زورق 7Jوا U 6إ و ! ا'_ وا2ع ا[ 3آة ا %Hو Iج إ آ! M اGور7: !Jه إ و ! ا'_ S .إف %H6ا`! ;`I Uغ 3; U2 6أر'`, ` ,و; 3أز S6 ,` ,اHول ا :3 2ع ا`, 'Yة آة 130 ± 30 390 ± 60 ز ! ا )_' Sد(,:J 30 ± 7 45 ± 12 د أر'` ,ا` 9ا ,6 6 3 ز ! ا`(, )9 12 ± 2 18 ± 4 ز ! ا ! Sا'_)د(,:J 20 ± 5 35 ± 10 أز , ! ا2'2ل)د(,:J ا` S IT ,إ دا Mا ء إ Tإذا آ ن ه ك ر'_ ح . U H Sآ أن ا`! ! ا %Hا S IT /إ Tإذا آ ن آ ! Mزور 3Jا. U ,6 7: 6آ N M 3م ا ء ة ا2ع وا 6وأو 9 : R - -ا0داء Nم. 417 ا ال ا _')$ام :GPSS ا ال ا:"#$ 2/9 Y' , : Mن ! 3رات ! أر;_ ا R? fو ا e Mز , ! و'2ل 2ز ,ا Sوا M 9 .6ا !? Gإ ., X 90 w2و'2ل ا2 Gن ! , .e9 آ2/I , 2ن ! , 20و; , 6 3م و2-د ; ,ن ا2 Gن Y9در ا Mأو ; N9 Jاغ 6 ,ل ,H9 J %X 0.55إ رأو أآ[ 2ق S6اHول ا :3 ا ر إ 6ل د2ل ا ر ز ! ا2ق ; 3ا ر د ا62ات ا 2eذة ; 3ا ر 1 0.75 , X 120 ± 60 3 ±1 2 0.55 , X 150 ± 30 4 ±1 3 0.82 , X 120 ± 45 5 ±1 ا@ Uء ! ا2ق &H9ا2 Gن ,7:ا ,7:ا Sو2 C 3; N9ر S6أو ,92ا2'2ل. -29 Sرف & " ا R? fا ` ,fوا 9 J 3ر Uا2 Gن د ! 2 ± 1ا62ات 6ل . 0.25ز ! ا M/ ,ز 2ن "9د ا62ات ا99 3 ا? Uوه2X 3 2ان M/و6ة " .إ Uء د; Rا ب 9ك ا2 Gن ا ,و Y9در. 6آ 3ه.ا ا Nم ة ا2ع وا29 P6 6م ا" 8 Mت وأو w2 -د ا !? Gا!9. ^ درو ا Mون 2Iق "م ;2Iل- .ول ز ! ا 2/ث Nم !? Gا ،!J2 ه , "; 3ال وا S ه 2د ال ا M[ 0ا.ي SH9ان S6 ' 5;29ا M :`9T 6أي ز 2ن؟ 418 ا ال ا _')$ام :GPSS ا ال ا دس: ;3 R Mا `ق ا S7ا R9 !" 3 2ا2ز N (10, 4 ) R9و6ة .آ : ا Gون ! ه.ا ا ! 2ى 30و6ة ;ن ' S6ا R ,C Rf9 Mا 2رد "د 100و6ة وا M I 3إ ا ; 3; Mة ز 6 ! ,و 10أ 9م 2ز ,و .,9أي ,C G HITون آ ;.:`I U 3 أو2I -ز R9ا Yات ا"2Oا? :,ا " ت ا , 2ا `2:دة و د ا62ات ; 3ا Gون ا.3 2 419 ا ال ا _')$ام :GPSS ا ال ا !: , %"7ا & M "9 ,"9د ! و& 2 Cر وا Nz 6ر ،ز ! ! ا2'2ل !? G & 2Iز . 2.5 ± 1.5 R9أ 6ا د ! 9أ" 6وف ! MJا !? Gوه 2أآ[ ة و, ; 3ا ! ,ز & ا ،/ Hا2 Gن ا.ي M 9و H9آ ! Mأ 6و ; /ر^! 9ر أ ., 6ز ! ,ا2 Gن 2I & 60ز 3.5 ± 1.5 R9و. 4.5 ± 1.5 / 6آ 3ا Nم 6إ Uء 1000 ,ز 2ن وأو , "; -آ ! Mأ 6و /ود ا !? Gا!9. 2 %U W Iا ,7آ ! Mأ 6و /وأو2I -ز2C R9ل ا2 7ر. 420 :R-ا ا تT 6@ء وا 6ر أ2 أ. هي و د% إ اه د2 6@( دئ ا1 . د، ! ي6 ا- ن. د:_eI د2" g ا," - : – ا, ا 3? 3 ا. هي و د% إ اه د2 6@ اM ق اC ( أ ت2 . د، ! ي6 ا- ن. د:_eI د2" g ا," - : – ا3V را%ا إ اه 3? 6@ اAق اC (3 ! ي6 ا- ن. د:_eI http://www.abarry.ws/books/or221book1.pdf RJ2 ا3; W@ ا: ا 4) Discrete-Event System Simulation, Second Ed. By: Jerry Banks, John S. Carson, II and Barry L. Nelson. Published by: Prentice Hall, 1996 5) Simulation Modelling and Analysis, Second Ed. By: Avrill M. Law and W. David Kelton. Published by: McGraw-Hill, 1991 6) Simulation with Arena. By: W. David Kelton, Randall P. Sadowski and Deborah A. Sadowski. Published by: McGraw-Hill,1998 7) Applied Management Science, Modelling, Spreadsheet Analysis, and Communication for Decision Making, Second Ed. By: John A. Lawrence, Jr. and Barry A. Pasternack. Published by: Wiley 2002. 8) GPSS World Reference Manual. Student Version. Published by: Minuteman Software. 421