oxfordcontrol / SOSTOOLS

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

Unrecognized function or variable 'convertf' #4

Closed typesAreSpaces closed 2 years ago

typesAreSpaces commented 2 years ago

Executing [Q, Z] = findsos(p, options) triggered the error message indicated in the title of this issue. I think this is something trivial but looking at the code, there is only one call to convertf at sossolve.m:360 in

[A,b,c,K] = convertf(At,b,c,K);

Is convertf part of a package I didn't include? I'm using a fresh installation of Matlab R2021b with the Symbolic Math package as indicated in the documentation. Maybe the newer version doesn't include this function.

Also, from comments in the code, it seems the above converts free variables to LP vars. Is there a way to solve this without convertf?

Thank you very much for your time and help!

typesAreSpaces commented 2 years ago

I was using csdp and I didn't set up my PATH variable correctly. I included the bin directory of csdp instead of the directory including Matlab functionality.