I want to check the positivtity of two polynomials subjected to compact set constraint.
I get feasible solution with the 4th order polynomials. But when I increase the order of polynomlais to 5, I get an error it says,''
{ Error using svd
Input to SVD must not contain NaN or Inf.
Error in extractsolution>numranks (line 108)
[U{i},S{i},V{i}] = svd(moment{i});
Error in extractsolution (line 23)
[U,S,V,ranks] = numranks(moment);
Error in solvemoment (line 142)
x_extract = extractsolution(momentsstructure,options);
Error in solvesdp (line 233)
[diagnostic,x,momentdata] = solvemoment(F,h,options,options.moment.order);
Error in solvesos (line 137)
sol = solvesdp(F,obj,options);
Error in DSOS_11July_1 (line 171)
solvesos(F,[],ops,var);
}