RBDO: SLA——problem: the matrix dimensions must be consistent

Dear Professor,

The following problem “The matrix dimensions must be consistent” occurs when I use SLA algorithm in RBDO. I don’t know what is wrong, can you help me to look at it?

thank you


Dear @Mr121Tony

With the information provided, there is little I can do except ask you to verify that the matrices you are passing to UQLab have the correct shape. The error indicates that this is not the case.
Please provide a minimal, reproducible example if you need more help.

Best regards
Styfen

Gear.zip (1.7 KB)
This is the code of SLA. Please help me with this problem.