Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing parameters of some RP leads to wrong reference probability #68

Open
mbaudin47 opened this issue Jan 21, 2021 · 1 comment
Open

Comments

@mbaudin47
Copy link
Collaborator

mbaudin47 commented Jan 21, 2021

For example in:
https://github.com/mbaudin47/otbenchmark/blob/52bb104bfa91a7403481e6dc53225be36eecd872/otbenchmark/ReliabilityProblem14.py#L15
the parameters of the distribution or the threshold can be changed. However, this does not update the reference probability. Hence, a user which changes the parameters will have the surprise of getting apparently wrong results.

The situation is correctly implemented in:
https://github.com/mbaudin47/otbenchmark/blob/52bb104bfa91a7403481e6dc53225be36eecd872/otbenchmark/AxialStressedBeamReliability.py#L54

There are several options to implement this.

  • Generate an exception if parameters are not left to default. I do not know how to implement this.
  • Add a comment in the doc of each problem, to state whether the parameters changes update the reference probability.
  • Removing the possibility to change the parameters if the reference probability is not updated according to changes in the parameters. This would restrict the scope of the module, which might seem to restrictive for some users.
@mbaudin47
Copy link
Collaborator Author

Using the maths methods from PR#87 should allow to compute the pf_ref value of some problems depend on the input of the user. This, however, requires to take into account for the threshold, which is not done yet in the scripts. This would involve problems RP14, RP22, RP35, RP75 and FourBranch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant