Error in Multi-Objective RBDO with UQLab

Dear UQWorld Community,

I am facing an error saying “Undefined function or variable ‘myInput’” when I run my Multi-objective reliability-based design optimization
uq_Ex08_BermBreakwater_constraint.m (1.1 KB)
uq_Ex08_BermBreakwater_cost.m (1.1 KB)
uq_Ex08_BermBreakwater_objectives.m (472 Bytes)
uq_Ex08_BermBreakwater.m (7.2 KB)
uq_Ex08_BermBreakwater_carbon.m (1.2 KB)
uq_Ex08_BermBreakwater_robustness.m (694 Bytes)
(MORBDO) code. I have created my input object myInput using uq_createInput before using it in my model setup. However, the code does not recognize myInput later and shows this error.

I think the problem may be related to variable scope or how I pass myInput as a parameter to my model functions. I would appreciate any advice or suggestions on how to fix this issue or the proper way to use input objects within UQLab models.

Thanks in advance for your help!

Best regards,
Pouya