oxfordcontrol / SOSTOOLS

A free MATLAB toolbox for formulating and solving sums of squares (SOS) optimization programs
54 stars 15 forks source link

Fix concatenation when first two entries are not dpvar objects. #13

Closed pwintz closed 1 year ago

pwintz commented 1 year ago

Before this fix, the following code causes an error because the concatenation functions will only translate one entry or the other into a dpvar, but not both:

dpvar p
f = [1; 1; mydpvar];
dpvar p
f = [1; 1; mydpvar];
djagt commented 1 year ago

Thanks for providing this bugfix, that helps a lot! Let me know if you encounter any other issues.