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

**URL:** <https://uqworld.org/t/rbdo-sla-problem-the-matrix-dimensions-must-be-consistent/1825>\
**Category:** Community Q&A and How To\
**Tags:** rbdo\
**Created:** [March 11, 2023, 10:17am UTC](https://uqworld.org/t/rbdo-sla-problem-the-matrix-dimensions-must-be-consistent/1825 "2023-03-11T10:17:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr121Tony](https://uqworld.org/user_avatar/uqworld.org/mr121tony/32/1070_2.png) [@Mr121Tony](https://uqworld.org/u/Mr121Tony)\
**Post date:** [March 11, 2023, 10:17am UTC](https://uqworld.org/t/rbdo-sla-problem-the-matrix-dimensions-must-be-consistent/1825/1 "2023-03-11T10:17:30Z")

</div>

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

 ![4](https://uqworld.org/uploads/default/original/2X/6/668d7b23de60cb0dbb0fe7633680e2e279e48013.png)  
 ![2](https://uqworld.org/uploads/default/original/2X/d/d156c88fd5c89d84d1633f9df089d2b424d51ce1.png)

 ![3](https://uqworld.org/uploads/default/original/2X/d/d9c8c900da4ba1f285a99baf2861abd3dc27cb98.png)

---

<div class="post-metadata">

**Author:** ![styfen.schaer](https://uqworld.org/user_avatar/uqworld.org/styfen.schaer/32/849_2.png) [@styfen.schaer](https://uqworld.org/u/styfen.schaer)\
**Post date:** [March 13, 2023, 7:57am UTC](https://uqworld.org/t/rbdo-sla-problem-the-matrix-dimensions-must-be-consistent/1825/2 "2023-03-13T07:57:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mr121Tony](https://uqworld.org/user_avatar/uqworld.org/mr121tony/32/1070_2.png) [@Mr121Tony](https://uqworld.org/u/Mr121Tony)\
**Post date:** [March 13, 2023, 8:31am UTC](https://uqworld.org/t/rbdo-sla-problem-the-matrix-dimensions-must-be-consistent/1825/3 "2023-03-13T08:31:43Z")

</div>

[Gear.zip](https://uqworld.org/uploads/short-url/nQ6Uexz5zYNLz7R8CTb2yqP93Yj.zip) (1.7 KB)  
This is the code of SLA. Please help me with this problem.
