Debian Codegraph @

docs/examples/LISTOFMODELS.txt

raw
1 ==========================================
2 |simpylogo| LIST OF MODELS using SimPy
3 ==========================================
4
5 :Authors: - Tony Vignaux <[email protected]>,
6 - Klaus Muller <[email protected]>
7 :SimPy version: 2.0
8 :Web-site: http://simpy.sourceforge.net/
9 :Python-Version: 2.3 or later (not 3.0)
10
11 These models are examples of SimPy use written by several authors and
12 usually developed for other purposes, such as teaching and
13 consulting. They are in a variety of styles. Some have been converted
14 to the new script structure accepted by the SimPy users. These are
15 listed first.
16
17 Most models are given in two versions, one with the procedural SimPy API
18 and the other (identified by an "_OO" appended to the program name) with
19 the Object Oriented API introduced in SimPy 2.0.
20
21 Command Line input and output
22 ------------------------------
23
24 new program structure
25 +++++++++++++++++++++++++
26
27 MMC.py, MMC_OO.py
28 M/M/c (multiple server queue model. This demonstrates both the
29 multiple capacity Resource class and the observe method of the
30 Monitor class. Random arrivals, exponential
31 service-times. (TV)
32
33 bcc.py, bcc_OO.py
34 Determine the probability of rejection of random arrivals to a
35 2-server system with different service-time distributions. No
36 queues allowed, blocked customers are rejected
37 (BCC). Distributions are Erlang, exponential, and
38 hyperexponential. The theoretical probability is also
39 calculated. (TV)
40
41 callCenter.py, callCenter_OO.py
42 A call center with agents with different skills. The model
43 returns the frequency distribution of client waiting times,
44 the percentage of reneging clients, and the load on the
45 agents. This model demonstrates the use of yield get with a
46 filter function. (KGM)
47
48 cellphone.py, cellphone_OO.py
49 A cellphone cell with blocking (that is BCC discipline). The
50 program simulates the operation for 10 observation periods and
51 measures the mean and variance of the total time blockedr and
52 the number of times blocking occur in each hour. An
53 observational gap occurs between the observation periods to
54 make each one's measurement independent. (TV)
55
56 centralserver.py, centralserver_OO.py
57 A primitive central-server model with a single CPU and a
58 single disk. A fixed number of users send "tasks" to the
59 system which are processed and sent back to the user who then
60 thinks for a time before sending a task back. Service times
61 are exponential. This system can be solved analytically.
62 Trace statements have been removed. (TV)
63
64 jacksonnetwork.py, jacksonnetwork_OO.py
65 A Jackson network with 3 nodes, exponential service times and
66 probability switching. The simulation measures the delay for
67 jobs moving through the system. (TV)
68
69
70
71
72 Miscellaneous Models
73 +++++++++++++++++++++
74
75 bank08renege.py, bank08renege_OO.py (partial conversion)
76 Use of reneging (compound ``yield request``) based on ``bank08.py``
77 of the tutorial TheBank. Customers leave if they lose patience
78 with waiting.
79
80 Carwash.py, Carwash_OO.py
81 Using a Store object for implementing master/slave cooperation
82 between processes. Scenario is a carwash installation with
83 multiple machines. Two model implementations are shown, one
84 with the carwash as master in the cooperation, and the other
85 with the car as master.
86
87 CellularAutomata.py
88 A two-dimensional cellular automaton. Does the game of
89 Life. (KGM)
90
91
92 demoSimPyEvents.py
93 Demo of the event signalling constructs introduced in SimPy
94 1.5. Three small simulations are included: Pavlov's drooling
95 dogs, an activity simulation where a job is completed after a
96 number of parallel activities, and the simulation of a
97 US-style 4-way stop intersection.
98
99
100 shortestPath_SimPy.py, shortestPath_SimPy_OO.py
101 A fun example of using SimPy for non-queuing work. It
102 simulates a searcher through a graph, seeking the shortest
103 path. (KGM)
104
105 Machineshop.py, Machineshop_OO.py
106 An example of the use of the ``interrupt()`` method. It
107 simulates a workshop with ``n`` machines which break down and one
108 or more repairmen which have to repair them. (KGM)
109
110
111 Market.py, Market_OO.py
112 A supermarket checkout with multiple counters and extended
113 Monitor objects. Written and analysed by David Mertz in an
114 article for developerWorks (). (MM)
115
116 Movie_renege.py, Movie_renege_OO.py
117
118 Use of reneging (compound ``yield request``) constructs for
119 reneging at occurrence of an event. Scenario is a movie ticket
120 counter with a limited number of tickets for three movies.
121
122 needResources.py, needResources_OO.py
123 Demo of ``waitUntil`` capability introduced in SimPy 1.5. It
124 simulates three workers each requiring a set of tools to do
125 their jobs. Tools are shared, scarce resources for which they
126 compete.
127
128 SimPy_worker_extend.py, SimPy_worker_extend_OO.py
129 Factory making widgets with queues for machines. (MM)
130
131
132
133 WidgetPacking.py, WidgetPacking_OO.py
134 Using buffers for producer/consumer scenarios. Scenario is a
135 group of widget producing machines and a widget packer,
136 synchronized via a buffer. Two models are shown: the first
137 uses a Level for buffering non-distinguishable items
138 (widgets), and the second a Store for distinguishable items
139 (widgets of different weight).
140
141 GUI Input
142 -----------
143
144 GUIdemo.py, GUIdemo_OO.py
145 A firework show.
146
147 bank11GUI.py, bank11GUI_OO.py
148 A modification of the bank11 simulation with GUI input.
149
150 SimGUIStep.py
151 A modification of the bank11 simulation with the ability to
152 step between events
153
154 Plot
155 ----------------
156
157 bakery.py, bakery_OO.py
158 A bakery with three ovens to answer the following questions:
159 a) What is the mean waiting time for retail and restaurant
160 buyers? b) What is their maximum waiting time? c) What
161 percentage of customer has to wait longer than 15 minutes?
162 This graphs the number of baguettes over time using
163 SimPy.SimPlot. (KGM)
164
165
166 bank11Plot.py
167 A modification of the bank11 simulation with graphical
168 output. It plots service and waiting times
169
170 Debugging
171 --------------
172
173 SimpleDebugger.py, SimpleDebugger_OO.py
174 A program which demonstrates how one can step through a
175 SimPy model interactively, event by event. Can be imported
176 into any model.
177
178
179
180 :Created: 2002-December
181 :Date: $Date$
182 :Revision: $Revision$
183
184
185 .. |simpylogo| image:: ../SimPyDocs/_images/sm_SimPy_Logo.png
186
187
188 ..
189 Local Variables:
190 mode: rst
191 indent-tabs-mode: nil
192 sentence-end-double-space: t
193 fill-column: 70
194 End: