# Meta-model based reliability

**URL:** <https://uqworld.org/t/meta-model-based-reliability/973>\
**Category:** Community Q&A and How To\
**Tags:** pck, metamodeling, reliability\
**Created:** [December 17, 2020, 10:52am UTC](https://uqworld.org/t/meta-model-based-reliability/973 "2020-12-17T10:52:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [December 17, 2020, 11:42am UTC](https://uqworld.org/t/meta-model-based-reliability/973/2 "2020-12-17T11:42:25Z")

</div>

Hi @Ziead_Metwally,

there’s a recent similar question in UQWorld about it:

> [@How to calculate the reliability of a structure in uqlink](https://uqworld.org/t/how-to-calculate-the-reliability-of-a-structure-in-uqlink/970/4):
>
> Yes, it actually depends on how you define your UQLink parser. In my example above, I assume the output is N\times2 matrix, but it is also common to define the parser with multiple output arguments (i.e., function [Y1,Y2] = myParser(...)). If that’s the case, indeed you simply replace the relevant lines with [~,Y2] = uq\_evalModel(myFEM,X) (as you did, but simply get the second output of interest, assuming it is the tensile stress).

Basically you need to create another MODEL that defines the limit state function with the help of a wrapper function. The question is regarding a UQLink MODEL but it should also work with any UQLab MODEL (including, PCK).

I hope this helps, and let me know if you have any questions!

---

_[View the full topic](https://uqworld.org/t/meta-model-based-reliability/973)._
