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

Dear @pouya_zrbipour,

In your file uq_Ex08_BermBreakwater.m you use myInput before this variable is defined. You have to create myInput before its first use on line 22.

Best regards,
Styfen