description:[epsilon,X,base,sohs,g,SDP_data,L] = NCmin(f,params) computes the maximal epsilon such that the polynomial f-epsilon is a sum of hermitian squares. arguments:f is an NCpoly representing the polynomial. With params.precision we can set the smallest value that is considered to be nonzero in numerical calculations; if the command is called without it, we assume the precision set with the command NCsetPrecision or the value set in NCparam.m. params.messages is used to optionally turn on (1) and off (0) verbose output; default value is 1 (on). params.solver sets the solver to be used for SDP and overrides the value set in the global option file NCparam.m. (currently SeDuMi, SDPA-M or SDPT3 are supported) params.eps sets the desired accuracy iy you are using SeDuMi as SDP solver. Setting params.eps=0 lets SeDuMi run as long as it can make progress. params.V is a column of monomials to be used as a basis in the SOHS decomposition of the polynomial f-epsilon. It is optional; if the command is called without it, it is constructed automatically. params.justSDP_data == 1 means that the program ends when the SDP_data is prepared and nothing else is computed. It is optional; the default value is 0. params.decomposition == 0 means that no SOHS decomposition will actually be computed. It is optional; the default value is 1. output:epsilon is the maximal number such that f-epsilon is a sum of hermitian squares X is the Gram matrix solution of the corresponding SDP returned by the solver base is a vector of monomials appearing in the SOHS decomposition of the polynomial f-epsilon sohs is the SOHS decomposition of the polynomial f-epsilon g is the NCpoly representing SOHS decomposition of the polynomial f-epsilon SDP_data is a structure holding all the data used in SDP solver L is the operator representing the dual optimization problem (L ... the dual feasible SDP matrix) possible usage:NCmin(f), NCmin(f,params) example:>> f=2*x+2*x^2+x*y+2*y+y*x+y^2; >> [epsilon,X,base,sohs,g]=NCmin(f) epsilon = -1.0000 X = 1.0000 1.0000 1.0000 1.0000 2.0000 1.0000 1.0000 1.0000 1.0000 base = '' 'x' 'y' sohs = 1+x+y x 1.225e-005*y g = 1+2*x+2*x^2+x*y+2*y+y*x+1*y^2 >> params.precision=1e-4; >> [epsilon,X,base,sohs,g]=NCmin(f,params) epsilon = -1.0000 X = 1.0000 1.0000 1.0000 1.0000 2.0000 1.0000 1.0000 1.0000 1.0000 base = '' 'x' 'y' sohs = 1+x+y x g = 1+2*x+2*x^2+x*y+2*y+y*x+1*y^2 |

Documentation >