You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dictionary of class change matrices for each node.
79
-
For more details see :ref:`dynamic-classes`.
79
+
For more details see :ref:`changeclass-afterservice`.
80
80
81
81
An example for a two node network with two classes of customer::
82
82
@@ -91,6 +91,22 @@ An example for a two node network with two classes of customer::
91
91
92
92
93
93
94
+
class_change_time_distributions
95
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96
+
97
+
*Optional*
98
+
99
+
A dictionary of distributions representing the time it takes to change from one class into another while waiting. For more details see :ref:`changeclass-whilequeueing`.
100
+
101
+
An example of a two class network where customers of class 0 change to customers of class 1 according to an exponential distribution::
A dictionary of lists representing the destination a customer goes to when they renege, or abandon the queue, while waiting. For more details see :ref:`reneging-customers`.
175
+
176
+
An example of a one node, two class network where customers of class 0 renege to node 2, and customers of class 1 renege and leave the system::
177
+
178
+
reneging_destinations = {
179
+
'Class 0': [2],
180
+
'Class 1': [-1]
181
+
}
182
+
183
+
184
+
185
+
reneging_time_distributions
186
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
187
+
188
+
*Optional*
189
+
190
+
A dictionary of distributions representing the time it takes for a customer to renege, or abandon the queue, while waiting. For more details see :ref:`reneging-customers`.
191
+
192
+
An example of a one node, two class network where customers of class 0 renege after a 5 time units, and customers of class 1 do not renege::
193
+
194
+
reneging_time_distributions = {
195
+
'Class 0': [ciw.dists.Deterministic(value=5)],
196
+
'Class 1': [None]
197
+
}
198
+
139
199
140
200
routing
141
201
~~~~~~~
@@ -144,31 +204,59 @@ routing
144
204
145
205
*Optional for 1 node*
146
206
147
-
Describes how each customer class routes around the system.
148
-
This may be a routing matrix for each customer class, or a list routing function for process-based simulations, see :ref:`process-based`.
207
+
Describes how each customer class routes around the system.
208
+
This may be a routing matrix for each customer class, or a routing object, see :ref:`routing-objects`.
149
209
150
-
This is a dictionary, with keys as customer classes, and values are lists of lists (matrices) containing the routing probabilities.
151
-
If only one class of customer is required it is sufficient to simply enter single routing matrix (a list of lists).
210
+
This is a dictionary, with keys as customer classes, and values are routing objects (or lists of of lists, matrices, containing the routing probabilities).
211
+
If only one class of customer is required it is sufficient to simply enter single routing object or matrix.
152
212
153
-
An example is shown::
213
+
An example of using a routing object::
214
+
215
+
routing = ciw.routing.NetworkRouting(
216
+
routers=[
217
+
ciw.routing.Direct(to=2),
218
+
ciw.routing.Leave()
219
+
]
220
+
)
221
+
222
+
And an example of using transition matrices is shown::
154
223
155
224
routing={'Class 0': [[0.1, 0.3],
156
225
[0.0, 0.8]],
157
226
'Class 1': [[0.0, 1.0],
158
227
[0.0, 0.0]]}
159
228
160
-
An example where only one class of customer is required::
161
229
162
-
routing=[[0.5, 0.3],
163
-
[0.2, 0.6]]
230
+
server_priority_functions
231
+
~~~~~~~~~~~~~~~~~~~~~~~~~
232
+
233
+
*Optional*
164
234
165
-
If using only one node, the default value is::
235
+
A function for each node that decides how to choose between multiple servers in the same node.
0 commit comments