Closed renatoloureiro closed 2 years ago
Would you mind give me a hint on why this is happening or if it's truly a bug somewhere unknown to you
This is due to the definition of a sum-of-squares decision variable in Gram matrix form:
s(x) = z(x)' Q z(x)
where z
is the vector of monomials as provided, in your case, z = monomials(x, 1:2)
.
The following is occurring: Given a specific s-polynomial with a given degree, in this case 2
The output in one of the steps gives me an s-polynomial of degree 4 and due to this in one of my demos it's corrupting the next bisection because of size mismatch. (it's actually my guess on why it's not working) Even in the simple demo it occurs for the s2 polynomial, this is the output