Professional Documents
Culture Documents
<< Graphics`Legend`
(* Stabilirea generatorului *)
Nc = 5; Ns = 3;
g = ZeroMatrix[Nc]
{{0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}}
{g[[1, 1]] = - λ1 - λ2, g[[1, 2]] = λ2, g[[1, 3]] = λ1, g[[2, 5]] = λ1, g[[2, 1]] = μ2,
g[[2, 2]] = - λ1 - μ2, g[[3, 3]] = - μ1 - λ2, g[[3, 1]] = μ1, g[[3, 4]] = λ2,
g[[3, 3]] = - λ2 - μ1, g[[4, 3]] = μ2, g[[4, 4]] = - μ2, g[[5, 2]] = μ1, g[[5, 5]] = - μ1}
(* Stabilirea partitiilor *)
MatrixForm[G11]
MatrixForm[G12]
MatrixForm[G21]
MatrixForm[G22]
P0 = IdentityMatrix[Nc]
{{1, 0, 0, 0, 0}, {0, 1, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 1, 0}, {0, 0, 0, 0, 1}}
MatrixForm[P0]
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
α = TakeRows[P0, 1]
{{1, 0, 0, 0, 0}}
α1 = TakeColumns[α, Ns]
{{1, 0, 0}}
2 06012015.nb
α2 = TakeColumns[α, Nc - Ns]
{{1, 0}}
Un = ZeroMatrix[Nc, 1]
{{0}, {0}, {0}, {0}, {0}}
Um = TakeRows[Un, Ns]
{{1}, {1}, {1}}
P = α.Inverse[G1]
{{0.819672, 0.0819672, 0.0819672, 0.00819672, 0.00819672}}
P1 = TakeColumns[P, Ns]
{{0.819672, 0.0819672, 0.0819672}}
(* Calcul indicatori *)
(* Mentenabilitatea *)
06012015.nb 3
0.98
0.96
0.94
0.92
⁃ Graphics ⁃
(* Disponibilitatea *)
(* Disponibilitatea stationara *)
20 40 60 80 100
0.9975
0.995
0.9925
0.99
0.9875
0.985
⁃ Graphics ⁃
4 06012015.nb
MTTF = - α1.Inverse[G11].Um
{{650.}}
MTTR = - α2.Inverse[G22].Unm
{{10.}}
(* Intensitatea de defectare *)
IA[t_] = - α1.G11.MatrixExp[G11 * t].Um / (α1.MatrixExp[G11 * t].Um);
(* Intensitatea de reparare *)