Saturday, November 23, 2024
Google search engine
HomeData Modelling & AIReliability Design Problem in Dynamic Programming

Reliability Design Problem in Dynamic Programming

The reliability design problem is the designing of a system composed of several devices connected in series or parallel. Reliability means the probability to get the success of the device.

Let’s say, we have to set up a system consisting of D1, D2, D3, …………, and Dn devices, each device has some costs C1, C2, C3, …….., Cn. Each device has a reliability of 0.9 then the entire system has reliability which is equal to the product of the reliabilities of all devices i.e., πri = (0.9)4.  

Serial Combination of one copy of each device

It means that 35% of the system has a chance to fail, due to the failure of any one device. the problem is that we want to construct a system whose reliability is maximum. How it can be done so? we can think that we can take more than one copy of each device so that if one device fails we can use the copy of that device, which means we can connect the devices parallel.

When the same type of 3 devices is connected parallelly in stage 1 having a reliability 0.9 each then:

Reliability of device1, r1= 0.9

The probability that device does not work well = 1 –  r1 = 1 – 0.9 = 0.1 

The probability that all three copies failed = ( 1-r1 )3 = (0.1)3 = 0.001

The Probability that all three copies work properly = 1 – (1- r1)3 = 1- 0.001 = 0.999

We can see that the system with multiple copies of the same device parallel may increase the reliability of the system. 

Multiple copies of the same device type are connected in parallel through the use of a switching circuit

Given a cost C and we have to set up a system by buying the devices and we need to find number of copies of each device under the cost such that reliability of a system is maximized.

We have to design a three-stage system with device types D1, D2, and D3. The costs are $30, $15, and $20 respectively. The cost of the system is to be no more than $105. The reliability of each device type is 0.9, 0.8, and 0.5 respectively.

     Pi          Ci      ri
    P1                            30                               0.9                 
    P2         15       0.8
    P3         20       0.5

Explanation:

Given that we have total cost C = 105, 

sum of all Ci = 30 + 15 + 20 = 65, the remaining amount we can use to buy a copy of each device in such a way that the reliability of the system, may increase.

Remaining amount = C – sum of Ci = 105 – 65 = 40

Now, let us calculate how many copies of each device we can buy with $40, If consume all $40 in device1 then we can buy 40/30 = 1 and 1 copy we have already so overall 2 copies of device1. Now In general, we can have the formula to calculate the upper bond of each device:

Ui    floor( C – ∑Ci  / Ci ) + 1    (1 is added because we have one copy of each device before)

C1=30,  C2=15,  C3=20,   C=105
r1=0.9,  r2=0.8,  r3=0.5
u1 = floor ((105-(30+15+20))+1 = 2 
u2 = 3
u3 = 3

A tuple is just an ordered pair containing reliability and total cost up to a choice of mi’s that has been made. we can make pair in of Reliability and Cost of each stage like copySdevice

S0 = {(1,0)} 

Device 1:

Each Si from Si-1 by trying out all possible values for ri and combining the resulting tuples together.

  • let us consider P1 :
    • 1S1 = {(0.9, 30)}  where 0.9 is the reliability of stage1 with a copy of one device and 30 is the cost of P1.
  • Now, two copies of device1 so, we can take one more copy as:
    • 2S1 = { (0.99, 60) }  where 0.99 is the reliability of stage one with two copies of device, we can see that it will come as: 1 – ( 1 – r1 )2 = 1 – (1 – 0.9)2 = 1 – 0.01 = 0.99 .
  • After combining both conditions of Stage1 i.e., with copy one and copy of 2 devices respectively. 

S  = { ( 0.9, 30 ), ( 0.99, 60 ) }

Device 2:

S2 will contain all reliability and cost pairs that we will get by taking all possible values for the stage2 in conjunction with possibilities calculated in S1.

First of all we will check the reliability at stage2 when we have 1, 2, and 3 as a copy of device. let us assume that Ei is the reliability of the particular stage with n number of devices, so for S2 we first calculate: 

  • E2 (with copy 1) = 1 – ( 1 – r2 ) = 1 – ( 1 – 0.8 ) = 0.8
  • E2 (with copy 2) = 1 – (1 – r2 ) = 1 – (1 – 0.8 )2 = 0.96
  • E2 (with copy 3) = 1 – (1 – r2 )3 = 1 – ( 1 – 0.8 )3 = 0.992

If we use 1 copy of P1 and 1 copy of P2 reliability will be 0.9*0.8 and the cost will be 30+15

One Copy of Device two , 1S2 = { (0.8, 15) } Conjunction with S1 (0.9, 30) =  { (0.72,45) }

Similarly, we can calculate other pairs as S2  = ( 0.72, 45 ), ( 0.792, 75), ( 0.864, 60), ( 0.98,90 ) }  

We get ordered pair (0.98,90) in S2 when we take 2 copies of Device1and 2 copies of Device2 However, with the remaining cost of 15 (105 – 90), we cannot use device Device3 (we need a minimum of 1 copy of every device in any stage), therefore ( 0.792, 75) should be discarded and other ordered pairs like it. We get S2 = { ( 0.72, 45 ), ( 0.864, 60 ), ( 0.98,90 ) }. There are other possible ordered pairs too, but all of them exceed cost limitations.

Up to this point we got ordered pairs:

S1 = { ( 0.9, 30), ( 0.99, 60 ) }
S2 = { ( 0.72, 45 ), ( 0.864, 60 ), ( 0.98,90 )}

Device 3:

First of all we will check the reliability at stage3 when we have 1, 2, and 3 as a copy of device. Ei is the reliability of the particular stage with n number of devices, so for S3 we first calculate: 

  • E3 (with copy 1) = 1 – ( 1 – r3 )1  = 1 – ( 1 – 0.5 ) = 0.5
  • E3 (with copy 2) = 1 – (1 – r3 )2  = 1 – (1 – 0.5 )2 = 0.75
  • E3 (with copy 3) = 1 – (1 – r3 )3 = 1 – ( 1 – 0.5 )3 = 0.875

Now, possible ordered pairs of device three are as- S3 = { ( 0.36, 65), ( 0.396, 95), ( 0.432, 80), ( 0.54, 85), ( 0.648, 100 ), ( 0.63, 105 ) }

(0.648,100) is the solution pair, 0.648 is the maximum reliability we can get under the cost constraint of 105.

Feeling lost in the world of random DSA topics, wasting time without progress? It’s time for a change! Join our DSA course, where we’ll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!

RELATED ARTICLES

Most Popular

Recent Comments