Spare part modelling An introduction Jrn Vatn 1

  • Slides: 32
Download presentation
Spare part modelling – An introduction Jørn Vatn 1

Spare part modelling – An introduction Jørn Vatn 1

Motivation n For single component optimization models (wrt ) indicates that there might be

Motivation n For single component optimization models (wrt ) indicates that there might be beneficial to keep a spare in order to reduce the MDT, and hence the cost of a failure n If we only have one component, we can compare the situation with, and without a spare, and find the best solution n In case of many components, there will be a “competition” on achieving the spare in case of simultaneous failures n Thus, we may consider to have more than one spare in stock n What will be the optimal number of spares to keep 2

Content n Situation 1 n A situation with only one maintenance base, where failed

Content n Situation 1 n A situation with only one maintenance base, where failed components achieve a spare from the stock if available n The failed component is repaired in a workshop, there are infinite number of repair men n Situation 2 n Components can not be repaired any longer, and at a critical stock size, n, we order m new spares n There is a lead time before spares arrive n Lead time is gamma distributed n What we do not cover n More than one maintenance base n Several local, and one central stock n Many other aspects 3

Model assumptions, situation 1 n n n n Constant rate of failure (total for

Model assumptions, situation 1 n n n n Constant rate of failure (total for many components) = Number of spares = s An inventory (stock) holds available spares Failed spares are repaired in the workshop Number of spares in the workshop = X Repair rate for each failed component = Infinite number of repair men 4

Modelling n 5

Modelling n 5

Modelling, cont n 6

Modelling, cont n 6

Visual basic Function Prep. Model 1(lambda As Single, mu As Single, _ s. Max

Visual basic Function Prep. Model 1(lambda As Single, mu As Single, _ s. Max As Integer, p() As Single, _ R() As Single, EBO() As Single) Dim lm As Single lm = lambda / mu p(0) = Exp(-lm) R(0) = 1 - p(0) EBO(0) = lm For s = 0 To s. Max - 1 p(s + 1) = lm * p(s) / (s + 1) R(s + 1) = R(s) - p(s + 1) EBO(s + 1) = EBO(s) - R(s) Next s End Function 7

Simple cost model n 8

Simple cost model n 8

Visual basic Function Optimize. Model 1() Dim p(0 To 10) As Single Dim R(0

Visual basic Function Optimize. Model 1() Dim p(0 To 10) As Single Dim R(0 To 10) As Single Dim EBO(0 To 10) As Single Dim Cu As Single Dim Cs As Single Dim s As Integer Cu = 10000 Cs = 1 Prep. Model 1 0. 01, 0. 1, 10, p, R, EBO For s = 0 To 10 Debug. Print s, Cs * s + Cu * EBO(s) Next s End Function 9

Example result s 0 1 2 3 4 5 6 7 8 9 Cost

Example result s 0 1 2 3 4 5 6 7 8 9 Cost 9999 49. 37424 3. 585931 3. 039493 4. 001117 5. 000443 6. 000523 7. 000615 8. 000708 9. 0008 10 10. 00089 10

Markov modelling n Since failures and repairs are exponentially distributed an alternative modelling approach

Markov modelling n Since failures and repairs are exponentially distributed an alternative modelling approach will be to use Markov n We may implement different strategies, e. g. , an finite number of repair men n We may also introduce semi-Markov models to treat nonexponential repair times, or use virtual states in a phase type modelling approach n Drawbacks n It is hard to treat an infinite number of back orders n We need manually to specify the transition matrix n For huge systems, time and storage capacity is a limitation 11

Markov diagram 12

Markov diagram 12

Solutions n n Transition matrix State vector Steady state solution Visiting frequencies 13

Solutions n n Transition matrix State vector Steady state solution Visiting frequencies 13

Transition matrix n The indexing generally starts on 0, and moves to r, e.

Transition matrix n The indexing generally starts on 0, and moves to r, e. g. , there are r +1 system states (we need special indexing) n Each cell in the matrix has two indexes, where the first (row index) represent the ”from” state, whereas the second (column index) represent the “to” state. n The cells represent transition rates from one state to another n aij is thus the transition rate from state i to state j n The diagonal elements shall fulfil the condition that all cells in a row adds up to zero 14

State probabilities n Let Pi(t) represent the probability that the system is in state

State probabilities n Let Pi(t) represent the probability that the system is in state i at time t n Now introduce vector notation, i. e. n P(t) = [P 0(t), P 1(t), …, Pr(t)] n From the definition of the matrix diagram it might be shown that the Markov state equations are given by: P(t) A = d P(t)/d t n These equations may be used to establish both the steady state probabilities, and the time dependent solution 15

The steady state solution n In the long run when the system has stabilized

The steady state solution n In the long run when the system has stabilized we must have that d P(t)/d t = 0, hence n PA = 0 n This system of equations is over-determined, hence we may delete one column, and replace it with the fact that P 0+ P 1+…+Pr = 1 n Hence, we have 16

The steady state solution P A 1 = b where and b = [0,

The steady state solution P A 1 = b where and b = [0, 0, …, 0, 1] 17

Transition matrix To -3 From -2 From -1 From 0 From 1 From s

Transition matrix To -3 From -2 From -1 From 0 From 1 From s =Lambda 0 0 To -2 =(s+3)*Mu =Lambda 0 0 0 To -1 0 =(s+2)*Mu =Lambda 0 0 18 To 0 0 0 =(s+1)*Mu =Lambda 0 To 1 0 0 0 =(s+0)*Mu =Lambda To s 0 0 =(s-1)*Mu

Solution our example n Steady state solution is obtained by P A 1 =

Solution our example n Steady state solution is obtained by P A 1 = b n Fraction of time with spare part shortage = 1 is found by: n U 1 = P-1 n Fraction of time with spare part shortage = 2 is found by: n U 2 = P-2 n etc. n Total unavailability n U = U 1 + 2 U 2 + 3 U 3 19

Results Steady state pr. P-3 7. 589 E-08 P-2 3. 771 E-06 P-1 1.

Results Steady state pr. P-3 7. 589 E-08 P-2 3. 771 E-06 P-1 1. 508 E-04 P 0 4. 524 E-03 P 1 9. 048 E-02 P 2 9. 048 E-01 EBO= Cost= BO Contr 3 2. 27665 E-07 2 7. 54159 E-06 1 0. 000150808 0 0 0 0. 000158578 3. 585775317 20

Assume only 1 repair man 21

Assume only 1 repair man 21

Structure of transition matrix n n n Define “infinity”, e. g. , “- =

Structure of transition matrix n n n Define “infinity”, e. g. , “- = -3” (as high as feasible) The transition matrix starts with row index “- ” There altogether + 1 + s rows The elements below the diagonal is always If infinite number of repair men, the elements above the diagonal starts with repair rate ( + s) and decreases with for each cell downwards the diagonal n Each row sums up to 0 in order to find the diagonal elements To -3 From -2 =Lambda From -1 0 From 0 0 From 1 0 From s 0 To -2 =(s+3)*Mu =Lambda 0 0 0 To -1 0 =(s+2)*Mu =Lambda 0 22 0 To 0 0 0 =(s+1)*Mu =Lambda 0 To 1 0 0 0 =(s+0)*Mu =Lambda To s 0 0 =(s-1)*Mu

Model assumptions, situation 2 n Constant rate of failure = n Mean lead time

Model assumptions, situation 2 n Constant rate of failure = n Mean lead time when ordering new spares = MLT n Lead times are Gamma (Erlang) distributed with parameters = 4, and = / MLT n Note that = 4 may be changed to account for general value of SD(LT) = ½ / n Ordering totally m new spares when stock level equals n 23

Phase type distribution and semi-Markov n A continuous-time stochastic process is called a semi.

Phase type distribution and semi-Markov n A continuous-time stochastic process is called a semi. Markov process if the embedded jump chain is a Markov chain, and where the holding times (time between jumps) are random variables with any distribution, whose distribution function may depend on the two states between which the move is made n Semi-Markov processes are hard to work with n A phase-type distribution is a probability distribution that results from a system of one or more inter-related Poisson processes occurring in sequence, or phases. The distribution can be represented by a random variable describing the time until absorption of a Markov process with one absorbing state. Example Erlang distribution 24

Diagram for stock 25

Diagram for stock 25

Markov diagram, step 1 (failures) 26

Markov diagram, step 1 (failures) 26

Markov diagram, step 2 (“repair”) 27

Markov diagram, step 2 (“repair”) 27

Markov diagram, step 2 (“repair”) 28

Markov diagram, step 2 (“repair”) 28

Markov diagram, step 3 (still failing…) 29

Markov diagram, step 3 (still failing…) 29

Markov diagram, step 4 (complete model) 30

Markov diagram, step 4 (complete model) 30

Solution for our example n Steady state solution is obtained by P A 1

Solution for our example n Steady state solution is obtained by P A 1 = b n Fraction of time with spare part shortage = 1 is found by: n U 1 = P-1 + P-12 + P-13 n Fraction of time with spare part shortage = 2 is found by: n U 2 = P-2 + P-21 + P-22 + P-23 n etc. n Total unavailability formula in Excel: n U = U 1 + 2 U 2 + 3 U 3 n Frequency of running out of spares equals n F = (P-0 + P-01 + P-02 + P-03) 31

What is ? n Assume that we have a huge number (N) of components

What is ? n Assume that we have a huge number (N) of components with Weibull distributed life times n Consider the situation where t < n In this period there is no PM, i. e. , we may assume a corrective strategy n The total rate of failures as a function of t is N w(t) where w(t) = W(t)/ t is the renewal rate n Initially N w(t) should form the basis for the total failure rate, n After some time we set = N [1/ + E( )] 32