+ Reply to Thread
Results 1 to 7 of 7

Reliability Calculation for N-Modular Redundant Systems

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    Singapore, Singapore
    MS-Off Ver
    2007
    Posts
    6

    Reliability Calculation for N-Modular Redundant Systems

    Hi All,

    I need some help with the following formula for Excel Macros. I need to calculate a problem with the following equation and I am having trouble inputting the formula correctly into Excel. Please see attached pic.

    I need to have variables for "M", "N", "i" and "Rm(t)", which I can retrieve from a separate Excel sheet.

    Thanks in advance!

    presentation.pdf.jpg
    Last edited by meffin13; 05-25-2015 at 03:33 AM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,835

    Re: Reliability Calculation for N-Modular Redundant Systems

    I usually find that I must first understand the math before I can program Excel/VBA to perform the calculation, and I find myself having trouble understanding your formula and example.

    1) As given, the formula has R on both sides of the equation. Is this indicative of a recursive type function? If the R on the right hand side is the same R as the left hand side, the notation is a little different. How does the notation for R on the right hand side relate to the notation on the left hand side?

    2) Other than "I am having trouble", can you explain in more detail what you are stuck on? To this end, a copy of some of your failed attempts might be instructive. Are you having trouble with the internal For..Next loop? If this is supposed to be a recursive function, is it the recursion that is causing you trouble?

    3) Do you have a more detailed worked example? A lot of programming is being able to "translate" a sequence of operations into the desired programming language, which means that we need to understand, in sufficient detail, the steps being taken.

    We may be better able to help you if you address these questions.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-07-2014
    Location
    Singapore, Singapore
    MS-Off Ver
    2007
    Posts
    6

    Re: Reliability Calculation for N-Modular Redundant Systems

    Quote Originally Posted by MrShorty View Post
    I usually find that I must first understand the math before I can program Excel/VBA to perform the calculation, and I find myself having trouble understanding your formula and example.

    1) As given, the formula has R on both sides of the equation. The R(t) actually represents the Reliability (R(t)<1.0)Is this indicative of a recursive type function? Yes, it is a summation from "N" to "M" (eg. M = 5; N = 3)If the R on the right hand side is the same R as the left hand side, the notation is a little different. How does the notation for R on the right hand side relate to the notation on the left hand side? If R(t) = 0.95, all the R(t) will be 0.95 throughout the equation

    2) Other than "I am having trouble", can you explain in more detail what you are stuck on? My bad, the details are that I do not know what is the "Summation" function in Excel, and how to I set the limits of the summation. Also, is there a "!" factorial function in Excel?To this end, a copy of some of your failed attempts might be instructive. Are you having trouble with the internal For..Next loop? Yes, if "Summation" needs to be done in a loop. If this is supposed to be a recursive function, is it the recursion that is causing you trouble?

    3) Do you have a more detailed worked example? For that existing example, "M" = 5, "N" = 3, "i" = 5 - 3 = 2, R(t) = 0.95, and the rest is arithmetic A lot of programming is being able to "translate" a sequence of operations into the desired programming language, which means that we need to understand, in sufficient detail, the steps being taken.

    We may be better able to help you if you address these questions.
    Hi MrShorty, please see above for my response to your queries, I hope it can clarify.
    Cheers!

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,835

    Re: Reliability Calculation for N-Modular Redundant Systems

    A few thoughts.

    I think you misunderstood what I meant by recursive. If I am understanding now, this is not a recursive function, because the R(t) on the right side is Not the same as the R(t) that the function is defining. This function will require a loop, but it is not really recursive.

    Another clarification, You ask for the "summation" and "factorial" functions in Excel, but this is in the VBA forum. Are you intending to solve this using Excel's spreadsheet functions, or in VBA? Either "programming language" (because I view a spreadsheet as a different kind of programming language) is capable of solving the problem, one just needs to decide which programming language to use.

    In a spreadsheet, I would start by designating cells for M, N, and R(t) where I can enter those values. Then a column for i, and additional columns for the individual addends in the summation. Finally, the "summation" part becomes a simple =SUM() function.

    This might look something like:
    Please Login or Register  to view this content.
    Note how I used absolute and relative references to make copying easy and efficient. Also, contrary to almost every trend I see in suggestions made in almost every spreadsheet forum, note that I broke the function up into several small, simple parts that fit easily into a single cell. One could certainly combine these into fewer cells, but I often find -- especially when I am first starting a project, that I prefer to break the calculations up into smaller pieces so each cell is easy to code and debug.

    If you intend to use VBA to do this, the "summation" function in VBA is usually a loop (I would probably use a For..Next loop for this one). VBA does not have a built in Factorial functiion, so you would need to either code your own factorial function, or use Excel's FACT() function via the "worksheet function" object.

    Does that help?

  5. #5
    Registered User
    Join Date
    10-07-2014
    Location
    Singapore, Singapore
    MS-Off Ver
    2007
    Posts
    6

    Re: Reliability Calculation for N-Modular Redundant Systems

    Ah.. OK.. I get it now. Can it be in a macro format? That was what I meant. Sorry for not being clear enough. Thanks!

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,835

    Re: Reliability Calculation for N-Modular Redundant Systems

    As I indicated, yes, it can be done in VBA or any other programming language you want to use (VBA is usually convenient because it is built into Office, but it is certainly not the only choice).

    In just about any of these programming languages, a For..Next loop for a summation like this will look like (pseudocode using similar notation to the spreadsheet example):
    Please Login or Register  to view this content.
    In essence, it is the same thing I did in the spreadsheet example.

    Are there specific parts of this that you don't understand and need help with?

  7. #7
    Registered User
    Join Date
    10-07-2014
    Location
    Singapore, Singapore
    MS-Off Ver
    2007
    Posts
    6

    Re: Reliability Calculation for N-Modular Redundant Systems

    Thanks! I shall try it out. Much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add Quantity of Redundant Rows, then Delete Redundant Rows
    By alexwgordon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2012, 12:12 AM
  2. Plotting Reliability Charts
    By futamura in forum Excel General
    Replies: 10
    Last Post: 05-20-2011, 02:09 PM
  3. Function Reliability???????
    By lsmft in forum Excel General
    Replies: 5
    Last Post: 02-11-2006, 10:11 AM
  4. modular arithmetic
    By sirsoto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2005, 03:05 AM
  5. reliability of macro results
    By KHashmi316 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2005, 06:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1