Worst Case Analysis Toolset

Worst Case Analysis Toolset - Messages

#1 Posted: 1/17/2018 6:37:34 PM
Arie

Arie

93 likes in 285 posts.

Group: User

This is something I've developed along the way to help me perform various Worst Case Analyses in my job. I primarily use this for different types of circuit analysis, but it may prove useful to someone else.

I have this setup as a snippet and put it at the top of each of my worksheets. I've devised my own system for creating functions and defining variables that allows me to automatically perform these types of analyses fairly quickly within SMath.

I have another set of snippets which I'll upload later that automatically compute some of the 3sigma tolerances for resistors and capacitors based on initial tolerance, temperature, and life.

WC_Analysis.sm (86 KiB) downloaded 163 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 users liked this post
Andrey Ivashov 1/17/2018 11:50:00 PM, Davide Carpi 3/24/2018 10:06:00 AM
#2 Posted: 3/23/2018 4:50:26 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Realized I had an error in the RSS calculation. I forgot to take the final square root.

Here's a fixed version.
WC_Analysis.sm (88 KiB) downloaded 175 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 users liked this post
Andrey Ivashov 3/24/2018 7:36:00 AM, Davide Carpi 3/24/2018 10:06:00 AM
#3 Posted: 1/6/2022 6:56:18 AM
babElec

babElec

1 likes in 5 posts.

Group: User

Wrote

Realized I had an error in the RSS calculation. I forgot to take the final square root.

Here's a fixed version.
WC_Analysis.sm (88 KiB) downloaded 175 time(s).



Hello,
Thank you for your job.
I'm trying to use your toolset, and I have a strange result for the RSS because it's higher than the EVA.

EVA :
EVA

Rss :
RSS
WC_Analysis_FO058.sm (105 KiB) downloaded 37 time(s).

Did I make a mistake? Or it is a bug on the RSS function?

Another question :
On the "Defining Function", could it work if I had an "if statement" like :
If (P28V-VD) > Vz
0mA
Else
{P28V-VD-VZ}/R_LIM-I_CAP/B (actual define function)

Thank you, Emilien
#4 Posted: 1/6/2022 10:28:18 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Hi Emilien

RSS is a statistical analysis performed on Normal distributions. The RSS function I have written assumes that the the inputs are normal and that the μ of the normal function is the middle value in each input vector. This is generally how I define my inputs.

Then it determines the sigma based on the min/max values of the input. I have assumed in my RSS calc that the nominal value of the input may not fall directly in between the min/max. So I compute the sigma from nominal to max and nominal to min and take the maximum of that result when performing the RSS. This can result in solutions such as you are seeing.

I do this intentionally because an RSS analysis does not make sense when the input aren't normal. I could take the min/max of each input, calculate μ from that and then determine sigma, but if I define my inputs such that the middle value is truly the nominal or μ value, then the analysis will provide min/max results that may fall in between the worst case min/max, but aren't statistically accurate.

That being said, the only input in your function that is really lopsided is the P28V input. What you could do for the RSS is redfine the P28V input so that it's centered around middle value of 16 and 31.5 as shown below. Notice the nominal value has changed, but for RSS we really only care about the min/max. You still have to ask yourself if this is a meaningful result, however.

redfineP28.png

Another potential, and perhaps more meaningful alternative, is to fix the input voltage and perform the RSS analysis at each operating point of concern. Note that the minimum value calculated for P28V.MIN is still beyond the worst case value. So you also have to take that with a grain of salt.

fixedP28.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#5 Posted: 1/7/2022 7:26:28 AM
babElec

babElec

1 likes in 5 posts.

Group: User

Wrote

Hi Emilien

RSS is a statistical analysis performed on Normal distributions. The RSS function I have written assumes that the the inputs are normal and that the μ of the normal function is the middle value in each input vector. This is generally how I define my inputs.
[...]



Thank you very much for your answer.
I understand the point, but before to see your message, I changed a little bit the RSS function.

I took the "diff_sign#" function from WC.DIFFEVA and I used it the sum the TOL.RSS positive and negative coefficient.


I changed my variable in order to have WCA_MIN equal to the nominal value, so not centered inputs at all.


EVA :


RSS :


I think it's not so stupid for not centered input vector ?


My another question :

Do you know why an if statement doesn't work like this one?
WC_Analysis_FO058.sm (149 KiB) downloaded 43 time(s).

Thank you, Emilien.
#6 Posted: 5/4/2023 11:28:01 AM
cesarescudero

cesarescudero

0 likes in 3 posts.

Group: User

Hi,

I am not sure how your code works because I am still getting familiar with Smath, I got an error on the Monte Carlo function
the last line= WC.MC(f(_1),I):WC.MC(f(_1),I#,1000), the error is "input string was not in the correct format" I assume is either a typo or something change on Smath that is not expecting the same format.

Also, do you have more examples with more complicated circuits that you can share? Transistor circuits, temperature changes.

Thank you.
#7 Posted: 6/21/2023 3:55:27 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Sorry for the late reply.. There was an error in my definition of WC.MC(f(_1),I). It's fixed in the attached. To be honest, I don't use the Monte Carlo function much as Smath doesn't handle large number of calculations that well. For example just 100k iterations takes ~2.5 minutes on my machine. It's not ideal.

WC_Analysis.sm (93 KiB) downloaded 630 time(s).

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#8 Posted: 6/21/2023 5:22:18 PM
cesarescudero

cesarescudero

0 likes in 3 posts.

Group: User

Wrote

Sorry for the late reply.. There was an error in my definition of WC.MC(f(_1),I). It's fixed in the attached. To be honest, I don't use the Monte Carlo function much as Smath doesn't handle large number of calculations that well. For example just 100k iterations takes ~2.5 minutes on my machine. It's not ideal.

WC_Analysis.sm (93 KiB) downloaded 630 time(s).



Thanks!!!
#9 Posted: 6/22/2023 11:02:14 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Also, do you have more examples with more complicated circuits that you can share? Transistor circuits, temperature changes.


The sole laboratory that collects Global Warming data ... HadCRU.
Global Warming reached the peak 2010 [~ 0.8 °C]
From the stable reference period 1951 ... 1960
Since 2010, Global Warming has decreased ~ 0.75 °C.
Can you explain what you mean temperature changes ?
Cheers ... Jean.
#10 Posted: 6/22/2023 11:21:23 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Weibull failure Analysis. I have few more ...

Stat Treasury_8 Weibull FailureAnalysis.sm (25 KiB) downloaded 38 time(s).

#11 Posted: 6/23/2023 10:04:18 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Weibull infectious evolution
is typical of Medic data [Mathsoft Collaboratory]
Many other PDF can be considered as applicable.
WWeibull is like Bible ...
Cheers ... Jean.

Stat Treasury_8 Weibull [log vraisemblance] Copy.sm (89 KiB) downloaded 38 time(s).
  • New Posts New Posts
  • No New Posts No New Posts