Download CYSDEM User's Manual - MacSphere
Transcript
~ • CYSDEM ( USER'Sf1ANUAL ,.j '" " BY MOHAMED N,AGUIB A PRO.n:CT . SUBMITTED TO THE SCHOOL OF GRADUATE STUDIES IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR THE DEGREE MAST)'R OF SCIENCE / McMASTER UNIVERSITY MAY 1975 \{., ©. MOHAMED NAGUIB " 1976 .. ' ... ... , " • . , ..1/ . . ( . / " • , CYSDEM " user's manual , I . / I , MASTER OF SCIENCE (COmputation) ,'. ,, TITLE f AUTHOR : Mohamed Naguib SUPERVISOR :'Professor NUMBER OF PAGES: , McMASTER UNIVERSITY Hamilton, Ontario CYSDEM User's Manual • B.Sc. AeronauticalfEngg• Cairo University, Cairo, Egypt. D.J.~enworthy 362, xv. " , I , , • The National Cash Register Company. ' j - i1 \' ABSTRACT - FORT~ . ·CYSDEM' is a new based simulation language. It is used to simulate business informlltion systems. The 'm.ain. feature ,of CYSDEH is that it concentrates' Ol\...delays / and distortions,~o which information in actual systems is - - subjected to.Therefore,CYSDEM allows a more realist~ representation' of the movement of data WithinfinfOrmati,,on systeni•. , , CYSDEM is base,d on a schematic repres'entation,of the~ormatio~ system under consideration, called the I ~RSTRUCTURE. The CYBERSTRU~URE is constructed by the j( , {~er. It helps the user in identifying relevant information. q lan~uage ,requires Any new computer careful veri- fication and complete documentation. This report contains J an introduction to simulation apd a user's guide. p'artial ,. verification of CYSDEM was performed using q, productionJ .;/ ' distribution system from Forre~ter's -Industrial Dynamics-. , The example is explained and the results are included in this report,; 'x . " • iii >, ',' ,"...... , ) ~ .' I would like to thank Professor D.J~~worthy . for his valuable supervis!on and his comroonts regarding A the contents of . this report. . __.,. .·":1, . "'- I would';'particularly like to t;,hank Professor \ R.J.Welko,of Tho HcNastor School of Elusinoss,who deve.,. llopod Tho CYBERSTRUcrURE framo\~otk and progranullod the CYSDEM simula~or. ~ Without Profossor Wolko's .comments and help,thisreport would nover have been-completed• .. I thank ~frs. J .Salamy. for her. excellent typing of this thesis. ./ \ , '. :. 1v '--'-. __ ._--~ _- _------------_._ .. - .. ..Coo._.... , TAPLE OF CONT~NTS -l'aqo 91N'TER 1, I IN'l\RQDI.!C'l'WN- 1-1 The Information , ~ .Syut~m 1 .." J 1-2 Tho _simul~tion Appro~ch . 1-3 Introduction To C~SDKN , -- ....... -'\1-4 Characteri~ticti 3 ofSil\\ul.:\ti91\ t' N9delu "'~'- I ' \, '1 ~ ,"-. . ' ~-4-1 COntinuouo ~,~ Oiac~te Simul<\tora 10 i-4-2 /' \ Clo~ Time 1. 10 . "1-4-3 'Vpdnting Tho Clock Tillla 1" • l-S,Nnin Foatur€lu of C~SOEN 14 2-1 Introduction 2-1-1 An-~wrop1c 2-l-1-1 Tho Firut Appronh , 2-1-1-2 Tho Second appro.:\ch .( 2-2 The Elel\\tmts of 'rho C\'l'l'R:'\TRUC'l'tlRl:: \ /- 2-2-1 Dat.:\ 2-2-1-1 roriodic p.:\tn Fileu • 2-2-1-2 Tranodotion Ddt"".' 40 2-2-2-1, Tho Activity -' ) 2-2-2-1-1 Method of 'l'ri990 rin9 40 2-2-2-1-2 Dur.:\tion of .:\n Activity 2-2-2-1-3 Nothoa of Otlucription43-- v 43 ~-~-j -" ' Tllta ~'\t:l. Lil\kll' . J-l-l 'l'h~ Il\t~l'val l\c~l'l' 'l'i\ll~ 50 J-l';~ Tha Il\torval 'rilllG 51 t 3-1--3 Tho oat:l. , Stru~~tul:'\.' "I.' Data li'ilol'l . I.'oriodic J-:.l 1nl.'or\l\ntiol\ l):l.t" Links 53 3-~-1 ~triQval rr~\1 I.~ri~xtic Oat" li'ilQlI <:' J-~-~ Storn90 "I.' rorilxtic Ontn li'ilol'l Int@rvaln 'J-~-3 'rho 1S1':ror Nl) clH~n-ia\II ~toctiC\1\ nnd CorroctiL'\l\ ;, 56 r 3-~-4 Rol(iti va l-~~l\C~' of R.:ltriovnl- 57 61 3-3 'l'r:l.IHlllction L'ldtn .~ gll\l'T1SR 4 I §rl'jCI.n.Cl\'1\It~ ®n INI'l\lM.Uii\'l'ION slIlmrs 4-1' Intl'Ol\uctiol\ • 4-~ ..;, . Tho, 4-:1-1 S~cific{\ti~\. Shoota Sot Stnti9ticn~'~butiOI\1ISot 4-:1-1-1 UlIC1' oiotribuHol\, Spoci- ( fiQdti~\ ShcQ~: , 1"- ., .•.• , ." ,o;;z '., 4-~-1-4 Dilltributi~\' Parro~tors spooi ficati~\ ,Shaot 71 " 4-:1-:1 Informati~\ uatn Li!l\ks Spocifiolltion Shoot 73 4-:1-3 rariodio Dnta Filo Spocificdticn Shoat, 79 vi " 67· . r"g\l • 4-~c~4 'h'&\lu\cti()l\ l,,,tl\ 1.il\\(I\' Sp.aci fi ~i\t 101\ :>hee t. ..... , 'h-i\I\\\l\ctiQI\ l).~dl\g SP(\CifiC(\tif~ ~lteet . " ll~ "J , Q" .L ActivityS~Gcirication " Shget' 4-~ Th(\ 1l\itialilli\ti\)!\ Sh.aelll s(\t 9t\ y . v , '. 4-~-1 ~.iI\lUlator " ~,! 4-j:-~ l'eri~ic 3. tiOI\ \ .. ... 4-3-~ 1l\itil\lilli\tiol\ D(\t<\ o..'\t<\ 96 ~'U{lS 1l\ith1h- 0<\t i\ 'rral\tll\ctiol\ V"luel\ 1l\itia1illatiol\. 4-~-4 lSV"ent 'l'nble Il\ith1hntit.>I\ Oati\ 5-1 1l\tl"OdUC~ 5-~ lO~ lOll Illl /. C\)\\lltl:uctiol\ of 'rite natn l1@ck. I 5-3 'rho Syatmw'l\ Chart of 'l'ho S illlu In ti()l\ P l."OCG tll\ 5-4 The Utlo).' SUi:>plied I.'l"Ogrnl\\ I'-Iodu1es ~ """'-J 5-4-1 lSxp1i\inntiol\ of 11'he COMtotJN Variables 5-.-~ stqrnge &\U ~etrievn1 of Onta Fro.l\ Ontn Sots 5-4-3 Tho Va1hlntiol\ I.'rogrnll\ (CYS1U"rr5-4-4 Tho SinlU1ntiol\ ~lodu1oll 114 119 1:14 1~7 129 5.. 4-4-1 Co\\struction of 'rho Sub"; routino USlSR , 130 5-4-4-3. Construction of 'rho Subroutil\osl"~ 'rho Lil\k. PrOCllSSOtl 130 5-4-4-3 Cc)\\otructiOl\ of 'l'ho Nnin: program (CYSIN) 132 vH / -, ! i I ! I \ I I , ,,L ! Page 5-"-5 The Sort ~un " output l'roqran\ (C.STA'l') S-"-6 The S-6 l't""Poo\'\li Sequenc>:! And NOt>:!8 On Iluildi"l\g 139 'l'he Hodel 9I1MTIS~ (i ICI.\9\)UCrIQN-IHS'l'RIIllJ'l'I\')'~ I S.STI>H 6-1 ,{l\tl\.1ductiol\ . 141 6-~'l'h(\ C'IlI>RSTRUCTU~ of The ~etail Sector 6-2;'1 The Qwironnlent:al D.aily Dem.anu Activitj' 143 6-2-~ 'rhe RGt.ail \)al\\,\l\d smoothing Activity 144 6-~-3 The lJaily ShipP\\\ol\ts To The Cus tOnlO rs ' 146 o , 6-2-4' Tho RGt.ail \'l>:!ekly Purchases ,Activity , 156 6-4 Tho CYl!l>RS'l'Rl:lCrURI> of The Fucto1.Y S>:!ct:or 156 Th>:! Spocificatiol\ Shoats - 6";6 Cqdinlj 'l'ha Activitios '\ 6-6-1 Th>:! lSl\virol\nlental Oaily' Domand Activity , -' " """i 160 166 166 6-6-2 Th>:! Retail Demand Smoo~\L\1j Activity 169 6-6-3 The Retail Shipping Activity 169 6-6-4 The RGtail Weekly PurchasGs li'rom The Oistributors " 172 ~~-7 System Initiali;ation . 6-8 The Thrua Main Progran\ll , 150 6-3 Th>:! crIll>RS'rnUCTURI> of 'rho Distributor Sector rS ._~ 14'3 viii 176 } 186 3.62 \ • LIST OF !i'IGURES Page The Relative Location of Some Simulation Languages w.r.t Orientation and Generali~ . 4 \ " Activity on The Time Scale 7 Fig. 1.2 1m Fig. 1.3 A Diagram of The Sales Office 8 Fig. 1.4 Discrete Events on The Time Scale 11 Fig. 1'. Sa 1m Events List in The Form of A Matrix 13 Fig. 1.5b 1m Events List in The Form of A'Linear List. 13 , Fig. 2.1 A Diagram of The Shop 17 Fig. 2.2 The Hourly Demand 20 Fig. 2.3 Symbol of The Periodic Data File 22 Fig. 2.4 The Environmental Activity-The First Approach 23 C~rve Fig. 2.5 CYBERSTRUCTURE of The Shop-The First Approach "Fig. 2.6 27 The Environmental Activity-The Second Approach 29 Fig. 2.7 Filling of The Orders Approach 30 Fig. 2.8 CYBERSTRUCTURE c;>f The, Shop- The Second Approach 33 Fig. 2.9 Layout of A Periodic Data File on The Time Scale 35 Fig. 2.10 Symbol of A -The Second . T~ansaction Data Set 39 '--" 'X Page /. Fig. 2.11 Activity Triggering Bethod 41 Fig. 2.12 A Normal 43 Fig~ The Ware-house,Without A Link Process 44 Fig. 2.14 The Ware-house,With A Link Process 45 . Fig. 2.15 Summary of The Elements 49 Fig. 3.1 ,Layout of A Periodic Data File. Showing ~he Interval'Bounds 51 .Fig. 3.2 Layout Of-A Periodic Data File,Showing The Push-Down Operation 52 2.13 CUrve CYhERSTRUcrU~f. , . 53 Structure of Periodic Data Files Fig. 3.3 ~ata Fig. 3.4 Flowchart of Simple ·Retrieval for Data Links 59 Fig. 3.5 Flowchart of Macro Retr~rval for Data ,Links 59 ·Fig. 3.6 Flowchart of Simple Storage for Data Links 60 Fig. 3.7 Flowchart of Macro storage for Data Links 60 Fig. 3.8 Data Structure of Transaction 'Data Sets 4 61 \ Fig. 3.9 Layout of The Transaction String Matrix 63 Fig •. 3.l0 Flowchart of Simple Retrieval for Transaction Links 65 Fig. 3.ll Flowchart of Macro Retrieval for Transaction Links 65 Fig. 3.l2 . Flowchart of Simple Storage for Transaction Links ..... Fig. 3.1.3 Flowchart of Macro Storage for Transaction Links 66 User ~{~tributionspec. FO~ , 68 Fig. 4'l "'; J. : xi 66 , L/ Page The Stochastic Component of The Link Lag 70 " Fig. 4.3 Qistribution Parameter Spec. Form 72 Fig. 4.4 Information Data Irink.' Sp~c"." Form .. , .,-,- 75 Fig. 4.'5 Layout of The Level File Fig. 4.5b Periodic Data File Parameters Spec. Form 80 Fi'i. Layout of A Complete Periodic Data File" 82 Fig. 4 ..2 4.6 "' "?,~ o· ." 'is Fig. 4.6a 'An Activity,Triggered By The Detection of A Negative Balance Condition on A peri9dic Data File Transaction Fig. 4.8 An ~ternally Triggered Activity , Fig'j:~ 4.9 ..... _- L~nK Fig. 4.7 processing Spec. FO~ Transaction Event String Spec. Form 85 87 88 0 90 , Fig. 4.10 Activity processing Specification Form 95 Fig. 4.11 Simulator Initializatiqn Data 98 Fig. 4.12 Periodic Data File ~nitialization Form (Single Entry File) 103 4.13 Periodic Data File Initialization Form (Double Entry File) 104 ; Fig. 4.14 Initial State of A Periodic Data File, 106 (Fig. Fig. 4.15 An . Externally Trig~er~d Ac~vity 108 Transaction Values Initialization Form 109 Fig. 4.17 Event File Initialization Form III Fig. 5.1 Construction of The Data Deck 115 Fig. 5.2 System Chart of The Simulation Process 116 'Fig. 4.16 o xii ,.~ I ", . Page Fig. 5.3 Construction of CYSRPT Fig. 5.4 Construction of USER Fig. 5.5 Construction of ,The Subroutines for The Link Processes . 132 Fig. 5.6 Construction of CYSIM 134 Fig. 5.7 Card Presentation Sequence of The Simulation Modules 134 Fig. 5.8 Format of The Disc File Rec6rd 136 129 ~ 131 :c . Fig. 6.1 Diagramo£ The System production-Distribu~ 142 \ Fig. 6.2 The Environmental Daily Demand Activit) 145 Fig. 6.:3 The Retail Demand Smoothing Activity 145 Fig. 6.4 The Relation Between The Ability ,to Fill Orders and"The Inventory 148 Fig. 6.5 The Relation Between The Average Delay in Filling Th= Orders and The Inventory 148 Fig. 6.6 The Relation Between The Average Delay in Filling The Orders and The Ratio of The Desired and Actual Inventories , 148 Fig. 6.7 The Retail Sector 151 Fig. 6.8 The Complete Retail Sector 155 Fig. 6.9 The Complete Distributor Sector 157 Fig. 6.10 The Complete Factory Sector 159 Fig. 6.11 Information Data Links Specification Fig. 6.12 Specification of The Retail Weekly Demand File .; 162 164 x111 " • Fig. 7.1 Output of CYSRPT 209 Fig. 7.2 OUtput of CYSIM 257 Fig. 7.3 OUtput of CYSTAT ~58 .xiv •