Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear Documentation on Creating SOS Polynomials #360

Open
mohammedehab2002 opened this issue Jun 17, 2024 · 1 comment
Open

Unclear Documentation on Creating SOS Polynomials #360

mohammedehab2002 opened this issue Jun 17, 2024 · 1 comment

Comments

@mohammedehab2002
Copy link

The documentation says creating SOS polynomials is the same as creating free polynomials but replacing Poly(basis) with SOSPoly(basis), but that doesn't seem to be true. The constraint seems to create a GramMatrix rather than a polynomial, and while the documentation claims a polynomial p is set to x'Qx, I can't find how to access that polynomial.
I tried manually creating the polynomial as x'Qx, but in my case, I need x to be a Chebyshev basis. I tried using the MultivariateBases package for that, but I get an error saying ChebyshevBasisFirstKind doesn't support adjoint.

@blegat
Copy link
Member

blegat commented Jun 18, 2024

The GramMatrix is a polynomial in the form s = b' * Q * b where b is some polynomial basis. If you want to convert it to a polynomial, you can do polynomial(s). About Chebyshev basis, the support is being improved in #355 but it's till a work in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants