s = sosPoly (SDPR)
s = sosPoly (mon,Q)
s = sosPoly (R,polys,coeffs)
This method creates an object of type SOSPoly. Very often this is applied to an object of type SDPResult, the result of a semidefinite programming computation.
|
|
|
One can also input a Gram matrix $Q$ and a vector of monomials $mon$.
|
|
|
Alternatively, a sum-of-squares polynomial can be created from a list of generators and weights.
|
The object sosPoly is a method function.