Escolar Documentos
Profissional Documentos
Cultura Documentos
4,
October
14
Response of Material Delays to Steps, Ramps, and Cycles (pp. 425
& 426)
Subquestion 1 & 2:
In all cases assume that prior to time zero the delay is in equilibrium with the outflow and
inflow both equal to 100 units/day.
Because of this statement you can determine that the initial value of the stock equals 500
units (100 units/day * 5 days average delay time).
inflow
Material in
Transit
outflow
step input
average delay time
ramp input
exponential growth
<Time>
oscillation
Step-input:
STEP(100,0)
Ramp-input:
IF THEN ELSE (Time >=0, 5*Time, 0)
Exponential growth:
IF THEN ELSE (Time>=0, -100+100*(1.05)^Time, 0)
Oscillation:
IF THEN ELSE (Time>=0, 100*sin(Time/(10/(2*3.14159))), 0)
Note that: 3.14159 =
To simulate the Step-input, use the following equation for the inflow:
Inflow = 100+step input+0*ramp input+0*exponential growth+0*oscillation
Outflow = Material in Transit/average delay time
inflow
400
units/Day
300
200
100
0
-5
-3
-1
inflow : normal
inflow : step
inflow : ramp
9 11 13 15
Time (Day)
17 19
21
23
25
17 19
21
23
25
inflow : exponential
inflow : oscillation
outflow
400
units/Day
300
200
100
0
-5
-3
outflow : normal
outflow : step
outflow : ramp
-1
9 11 13 15
Time (Day)
outflow : exponential
outflow : oscillation
Subquestion 3:
Third-order delay:
Material in
Transit 1
inflow
outflow 1
Material in
Transit 2
outflow 2
Material in
Transit 3
outflow 3
step input
average delay time
ramp input
exponential growth
<Time>
oscillation
Outflows of third-order delays (assuming that average delay time is 5 days for each of the
three outflows):
outflow 3
200
170
140
110
80
-5
-3
-1
9 11 13 15
Time (Day)
17 19
21
23
25
Pipeline delay:
Material in
Transit
inflow
outflow
step input
average delay time
ramp input
exponential growth
<Time>
oscillation
outflow
400
units/Day
300
200
100
0
-5
-3
-1
9 11 13 15
Time (Day)
17 19
21
23
25
mailing
Letters in
Transit
delivery
mailing = 100
Letters in Transit(0) = 0
delivery = DELAY3(mailing, average delay time)
average delay time = 5
Change average delay time into:
a) A longer delay: 5 + STEP(5, 5)
b) A shorter delay: 5 STEP (2.5, 5)
delivery
200
150
100
50
0
-5
-3
-1
9 11 13 15
Time (Day)
17 19
21
23
25
17 19
21
23
25
Letters in Transit
600
300
0
-300
-600
-5
-3
-1
9 11 13
Time (Day)
15
Subquestion 2:
If the actual order rate (O) is equal to the expected order rate (), then the error (see Figure
11-10) is zero. Zero divided by the adjustment time is still zero. So, when the adjustment time
suddenly decreases, nothing happens.
Exercise 1 of handout
Assume that initially 30 employees have a contract and 10 future employees are in training.
The average contract duration C is 5 years and the training period takes 1 year. Suppose the
desired number changes from 30 to 40.
a) Determine the number of employees P(t) in the cases A=1 year and A=10
years.
The situation is described by the following model:
P
F2
F1
F3
C
dt
A
B
dP O(t ) P(t )
=
dt
B
C
(2)
After a certain number of transformations of (2) we can substitute it into the equation (1) and
obtain the following second order differential equation for P(t ) :
d 2P
1 1 dP 1 1 1
1G
+( + )
+ ( + ) P(t ) =
2
C B dt B C A
B A
dt
(3)
Equation (3) can be solved by finding a general solution to the homogeneous differential
equation and partial solution for inhomogeneous one derived from (3).
1. The homogeneous differential equation is:
d P
1 1 dP 1 1 1
+( + )
+ ( + ) P(t ) = 0
2
C B dt B C A
dt
2
(4)
Substituting P(t ) = e at and multiplying the right-hand side of equation (4) by ABC , we will
receive:
( ABCa 2 + A( B + C )a + ( A + C ))e at = 0
The solutions for (5) are:
a1, 2 =
A( B + C ) A 2 ( B C ) 2 4 ABC 2
2 ABC
(5)
(6)
For the positive discriminant in (6), the solution of equation (4) has the following form:
(7)
P(t ) = D1e a1t + D2 e a2t
where: D1 and D2 are arbitrary constants.
If the discriminant in equations (6) has a negative value, then the system experiences an
oscillation. For this case, the following function provides the solution to (4):
(8)
(B + C)
k=
2 BC
A 2 ( B C ) 2 + 4 ABC 2
w=
2 ABC
(9)
In order to determine the constants D1 and D2 or C1 and C2 we need to explode the initial
conditions for t = 0 , which leads to:
For the positive discriminant:
P(0) = D1 + D2 + C 0
dP
dt
(11)
= D1 a1 + D2 a 2
t =0
P(0) = C1 + C 0 = C1 +
dP
dt
G
1+ A
C
(12)
= C 2 w + C1k
t =0
Through substitution in equations (11) and (12) we will find the following expressions for D1
and D2 or C1 and C2 :
For the positive discriminant:
1 dP
D1 =
a 2 P(0) + a 2 C0
a1 a 2 dt t =0
D2 =
1 dP
a2 a1 dt
t =0
a1 P(0) + a1 C0
C2 =
1 dP
w dt
t =0
(13)
C1 k
(14)
Now, we are ready to solve this exercise numerically for A=1 and 10 years.
For A=1 year:
From (6): a1, 2 =
6 84
,
10
i.e. an oscillation is undergone by the system. Then, to find P(t ) we need to refer to equation
(8), where:
84
= 0.92
10
To determine C1 and C2 , we calculate C 0 using equation (10):
40
C0 =
= 33.33
1+ 1
5
Given the values of P(0) , C 0 , w and k , the parameters C1 and C2 from (14) will be
determined as follows:
k = 0.6
w=
C1 = 30 33.33 = 3.33
1 dP
C2 =
2
0.92 dt t =0
From equation (2) we can find the value of the derivative of P(t ) at the initial moment t = 0 :
dP
10 30
=
=4
dt t =0 1 5
Hence, we will calculate: C2 = 2.17.
Substituting the obtained parameters into equation (8) and summing up the solutions of (8)
and (10), we will determine the solution for P(t ) :
Graph for P
40
30
20
0
P : Current
8
12
Time (Year)
16
empl/Year
6 6
,
10
20
40
= 13.33
1 + 10
5
D1 =
D2 =
dP
1
0.36 + 0.84 dt
dP
1
0.84 + 0.36 dt
t =0
t =0
The initial values of P(t ) and its derivative are the same as for A=1 year, i.e. P(0) = 30 and
dP
= 4.
dt t =0
Hence, we will calculate D1 and D2 as:
D1 = 37.51
D2 = 20.84
Thus, joining the solutions for equations (7) and (10), the solution for P(t ) will be the
following:
P(t ) = 13.33 + 37.51e 0.36t 20.84e 0.84t .
Graph for P
40
20
0
0
8
12
Time (Year)
P : Current
16
empl/Year
20
If the discriminant in equations (6) is negative, then the system experiences an oscillation.
For this case, A should satisfy the following inequality:
A 2 ( B C ) 2 4 ABC 2 < 0
Since A < 0 is unrealistic, the only possible solution is:
4 BC 2
A<
(B C) 2
A < 6.25
C k + C 2 w
1
t * = arctg 1
+
w
C1 w C 2 k
C1 2 + C2 2 kt *
*
*
Since the overshoot shows the difference between Pmax and P() , the maximal overshoot is
equal to:
C 2 + C2 2 kt *
e sin(wt * )
Overshoot = w 1
C1k + C2 w
Setting the overshoot to 1 and using equations (9), (10) and (14) yield a non-linear equation
for A. This equation can be solved numerically by Mathematica for Windows 5.1, resulting in
A=0.840691 years.
dP P(t )
O(t ) = B
+
C
dt
Next, we need to substitute the values of P(t ) and its derivative, obtained for A=1 year in
exercise 1.a and 1.c. The final expression O (t ) is:
Graph for O
10
6
0
O : Current
Figure 1-4. Number of trainees in time.
8
12
Time (Year)
16
20