Dear UQLab Community
I have a mfile-based model with this if statement that needs to be true so I can evaluate a performance function according to different metamodel previously established.
It is my understanding that the mfile is vectorized, improving the performance of the code by several orders of magnitude, since it allows the evaluation of N different realizations in a single call.
Nevertheless, I notice that the if statement that I am using the mfile is never true, but it should be for some runs. When the mfile was not vectorized I could confirm this.
Is this something that can be done? If so, please let me know what I am missing.
Please find enclosed a short example of the code in the file I am using.
mfilebased_model.m (308 Bytes)
Furthermore, I should say that I am using subset simulation as the reliability analysis method.
I thank you in advance for your time and support