iFR-ACSO / casos

CaΣoS is a nonlinear optimization-oriented sum-of-squares toolbox based on the symbolic framework of CasADi.
GNU General Public License v3.0
4 stars 0 forks source link

Dimension error in main branch if several linear decision variables are used #56

Closed JOlucak closed 5 months ago

JOlucak commented 5 months ago

In case one defines several linear decision variables, a dimension error occurs in Sossdoproblme/buildproblem. The corresponding decision variable is a row vector, but the others are column vectors. Hence, an error is thrown due to mismatching dimensions.

JOlucak commented 5 months ago

Added a quick fix to the main in buildproblem. Probably we have to fix poly2basis() instead.

tcunis commented 5 months ago

This has been caused by legacy code in SX/poly2basis (to reproduce the behavior of the same function in sosopt). PR #58 resolves the issue.