GepocUS / Spcies

Suite of Predictive Controllers for Industrial Embedded Systems. A Matlab toolbox for automatic code generation of solvers for MPC controllers.
Apache License 2.0
14 stars 2 forks source link

Compilation time error if `consCell` is empty #30

Closed pablokrupa closed 11 months ago

pablokrupa commented 1 year ago

If consCell is empty, because there are no constant variables to declare, then the generated solver does not compile because the flag associated with the variables has not been eliminated. The solution is to detect this behavior and delete the flag if the cell is empty.

The same should apply for the other variable cells.

pablokrupa commented 11 months ago

Solved as of 2fd764fc48d9b358d709321ed9a2b6b995ac4991.