Professional Documents
Culture Documents
Introduction To Markov Modelling
Introduction To Markov Modelling
Understanding Symbols, basic modelling rules and mathematical bases for Reliable Analysis.
• Repair
• Sequence
• Priority
• Reconfiguration
State Transition
𝜆 ∆𝑡
Op F
1 − 𝜆 ∆𝑡 1
Notes:
Op D F
1 − 𝜆 ∆𝑡 0 1
Normal State Shadow State Absorbing State
of System’s 𝐹 1 (𝑡 ) 𝐹 1 (𝑡 ) 𝐹 1 (𝑡 ) 𝐹 1 (𝑡 )
Operation OP D1 D2 D3 F
𝑏1 𝑛 𝑏51
𝑏11
𝑏5 𝑛
System’s
Observations
O1 O2 O3 O4 O5 On
Cai, B., Liu, Y., Liu, Z., Tian, X., Li, H., &
Ren, C. (2012). Reliability analysis of
subsea blowout preventer control systems
subjected to multiple error shocks. Journal
of Loss Prevention in the Process
Industries, 25(6), 1044-1054.
Estimation
𝐹𝑎𝑖𝑙𝑢𝑟𝑒 𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑖𝑡𝑦 ≈ 𝜆 ∆ 𝑡
Initial Probability
( )
¿ 𝑃 𝑂𝑝 ( 0 ) = 𝑃 ( 0 ) = 1
¿ 𝑃𝐹 ( 0) 0 ( )
Transition Matrix
[ ][ ][
¿ 𝑃 𝑂𝑝 ( 𝑡 + ∆ 𝑡 ) = ¿ 1− 𝜆 ∆ 𝑡 0 . ¿ 𝑃 𝑂𝑃 ( 𝑡 )
¿ 𝑃 𝐹 (𝑡+∆ 𝑡) ¿ 𝜆∆𝑡 1 ¿ 𝑃 𝐹 (𝑡 ) ]
𝑃 ( ∆ 𝑡 ) = 𝐴 . 𝑃 ( 0)
Koorosh Aslansefat - University of Hull 13
Markov Calculation
Initial Probability
( )
¿ 𝑃 𝑂𝑝 ( 0 ) = 𝑃 ( 0 ) = 1
¿ 𝑃𝐹 ( 0) 0 ( )
Transition Matrix
[ ][ ][
¿ 𝑃 𝑂𝑝 ( 𝑡 + ∆ 𝑡 ) = ¿ 1− 𝜆 ∆ 𝑡 0 . ¿ 𝑃 𝑂𝑃 ( 𝑡 )
¿ 𝑃 𝐹 (𝑡+∆ 𝑡) ¿ 𝜆∆𝑡 1 ¿ 𝑃 𝐹 (𝑡 ) ]
𝑃 ( ∆ 𝑡 ) = 𝐴 . 𝑃 ( 0)
Koorosh Aslansefat - University of Hull 14
Markov Calculation
𝑃 ( ∆ 𝑡 ) = 𝐴 . 𝑃 ( 0)
𝑃 ( 2 ∆ 𝑡 ) = 𝐴. 𝑃 ( ∆ 𝑡 ) = 𝐴. ( 𝐴 . 𝑃 ( 0 ) )= 𝐴 𝑃 ( 0 )
2
3
𝑃 ( 3 ∆ 𝑡 )= 𝐴 . 𝑃 ( 0 )
¿⋮
𝑛
¿ 𝑃 (𝑛 ∆ 𝑡)= 𝐴 . 𝑃 (0 )
Koorosh Aslansefat - University of Hull 15
Markov Calculation
Transition Matrix
{
𝑃 𝑂𝑝 ( 𝑡 + ∆ 𝑡 ) − 𝑃 𝑂𝑝 ( 𝑡 )
¿ =− 𝜆 𝑃 𝑂𝑝 ( 𝑡 )
∆𝑡
¿
𝑃 𝐹 (𝑡+∆ 𝑡) − 𝑃 𝐹 (𝑡)
¿ = 𝜆 𝑃 𝑂𝑝 ( 𝑡 )
∆𝑡
[ ˙ 𝑂𝑝 ( 𝑡 )
¿𝑃
¿𝑃˙ 𝐹 (𝑡) ] [
= ¿− 𝜆0 .
¿ 𝜆0 ][
¿ 𝑃 𝑂𝑝 ( 𝑡 )
¿ 𝑃𝐹 (𝑡 ) ] 𝑀=
𝝏𝑨
𝝏∆𝒕
−𝑀 ∗𝑡
𝑃 ( 𝑡 )= 𝑒 . 𝑃 ( 0)
Koorosh Aslansefat - University of Hull 16
Markov Calculation
t = sym.Symbol('t')
− 0 .0001 ∗𝑡
L = 0.0001
𝐹𝑎𝑖𝑙𝑢𝑟𝑒 𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑖𝑡𝑦 =1− 𝑒
P0 = sym.Matrix([[1],[0]])
M = sym.Matrix([[-L, 0],
[ L, 0]])
𝐹𝑎𝑖𝑙𝑢𝑟𝑒𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑖𝑡𝑦 (1000)=0.0951625819640404
P = sym.exp(M*t)*P0
P_Fail = P[-1]
time = 1000
P_Fail_Numerical = P_Fail.evalf(subs={t: time})
print(P_Fail)
print(P_Fail_Numerical)
print(1 - P_Fail_Numerical)
𝑅𝑒𝑙𝑖𝑎𝑏𝑖𝑙𝑖𝑡𝑦 (1000 )=0.904837418035960
https://colab.research.google.com/drive/13XlRX4jlDRG8aepu61TmE_NcyJ1iKbVO?usp=sharing
Reliability = []
https://colab.research.google.com/drive/13XlRX4jlDRG8aepu61TmE_NcyJ1iKbVO?usp=sharing
Availability = []
https://colab.research.google.com/drive/1l036JE2tNx3z89iDCLlnlqCDRsP2mfTo?usp=sharing
𝜆 ∆𝑡 𝜇∆𝑡 ´ ∆𝑡
𝜆 𝜇∆𝑡 ¨ ∆𝑡
𝜆
Op F Op F Op F
1 − 𝜆 ∆𝑡 ´ ∆𝑡
1−𝜆 1 − 𝜆¨ ∆𝑡 1
Safety = []
https://colab.research.google.com/drive/1zmpgqKYylWoAJADIUwQHfYXDNs0S0ga5?usp=sharing
Notes:
• In more complex systems we might have online repair in both reliability and safety models.
However, offline repair is considered only for availability models.
• For Safety models we could have more than two types of failure.