diff --git a/docs/Tutorial/tutorial_iii.rst b/docs/Tutorial/tutorial_iii.rst index 45a6a9d7..829719fa 100644 --- a/docs/Tutorial/tutorial_iii.rst +++ b/docs/Tutorial/tutorial_iii.rst @@ -8,7 +8,7 @@ Imagine a manufacturing plant that produces stools: + Every 4 seconds a seat arrives on a conveyor-belt. + The belt contains three workstations. -+ At the each workstation a leg is connected. ++ At each workstation a leg is connected. + Connecting a leg takes a random amount of time between 3 seconds and 5 seconds. + Between workstations (and before the first workstation) the conveyor-belt is only long enough to hold 3 stools. + If the belt before the first workstation is full then new stools fall to the floor and break. @@ -17,7 +17,7 @@ Imagine a manufacturing plant that produces stools: Each broken stool costs the factory 10p in wasted wood. We wish to know how many stools will fall to the floor and break per hour of operation, and thus the average cost per hour. First let's define the Network. -A restricted network such as this is represented by nearly the same Network object as an unrestricted network, but we now include the keyword :code:`Queue_capacities`:: +A restricted network such as this is represented by nearly the same Network object as an unrestricted network, but we now include the keyword :code:`queue_capacities`:: >>> import ciw >>> N = ciw.create_network( @@ -38,7 +38,7 @@ The time taken to attach a leg to the stool (service time) is sampled using the This samples values equally likely between an upper and lower limit. Note the time units here are in seconds. -If we simulate this, we have access to information about the blockages, for example the amount of time a stool was spent blocked at each node. +If we simulate this, we have access to information about the blockages, for example the amount of time a stool spent blocked at each node. To illustrate, let's simulate for 20 minutes:: >>> ciw.seed(1) @@ -50,9 +50,9 @@ To illustrate, let's simulate for 20 minutes:: >>> max(blockages) 1.402303... -Here we see that in 20 minutes the maximum time a stool was blocked at a workstation for was 1.4 seconds. +Here we see that in 20 minutes the maximum time a stool was blocked at a workstation was 1.4 seconds. -The stools that fell of the conveyor-belt are also recorded, these are rejected customers, and so we can look at the data records of type :code:`"rejection"`.:: +The stools that fell off the conveyor-belt are also recorded. These are rejected customers, and so we can look at the data records of type :code:`"rejection"`:: >>> rejected_stools = [r for r in recs if r.record_type=="rejection"] >>> [r.arrival_date for r in rejected_stools] @@ -83,12 +83,12 @@ A cool-down will be unnecessary as we are recording rejections, which happen at >>> sum(broken_stools) / len(broken_stools) 7.25 -On average the system gets 7.25 broken stools per hour; costing and average of 72.5p per hour of operation. +On average the system gets 7.25 broken stools per hour, costing an average of 72.5p per hour of operation. A new stool assembly system, costing £2500, can reduce the variance in the leg assembly time, such that it takes between 3.5 and 4.5 seconds to attach a leg. -How many hours of operation will the manufacturing plant need to run for so that the new system has saved the plant as much money as it costed? +How many hours of operation will the manufacturing plant need to run for so that the new system has saved the plant as much money as it cost? -First, under the new system how many broken stools per hour do we expect?:: +First, under the new system how many broken stools per hour do we expect? :: >>> N = ciw.create_network( ... arrival_distributions=[ciw.dists.Deterministic(value=4.0),