Hi,

I am trying to use adaptive weights and hence need to use some symbolic variables and parameters in creating the weight matrix. I created the `W`

matrix as a casadi variable of size `3x3`

.

Unfortunately I am getting an error while running the script.

```
Error using ocp_create
ocp_create: error setting cost_W, wrong dimension, got 1 x 1, need 3 x 3
```

I have checked everything and the dimension of the `W`

matrix is correctly `3x3`

of type `SX`

. If I use a simple constant `W`

matrix of type `double`

then there is no issue.

Could it be an error with the conditions checking within `acados`

or I should recheck my code?

Best regards,

Smit