Problem SOStools, Matlab 2010b, SeDuMi
Afficher commentaires plus anciens
I have problem with Matlab 2010b, especially with SeDuMi 1.3 and SOStools package.
I want to use "findsos" but I have problem with error "??? Error using ==> sprintf Function is not defined for sparse inputs." and more.
CODE:
>> syms x y; >> P=x^2+2*x*y-6*x^2*y+y^2-6*x*y^2+9*x^2*y^2+2*x^3*y^2+2*x^2*y^3-6*x^3*y^3+x^4*y^4
P =
x^4*y^4 - 6*x^3*y^3 + 2*x^3*y^2 + 2*x^2*y^3 + 9*x^2*y^2 - 6*x^2*y + x^2 - 6*x*y^2 + 2*x*y + y^2
>> [Q,Z] = findsos(P,'rational') Size: 64 22
SeDuMi 1.3 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003. Alg = 2: xz-corrector, Adaptive Step-Differentiation, theta = 0.250, beta = 0.500 eqs m = 22, order n = 9, dim = 65, blocks = 2 nnz(A) = 36 + 0, nnz(ADA) = 484, nnz(L) = 253 it : b*y gap delta rate t/tP* t/tD* feas cg cg prec 0 : 2.18E+000 0.000 1 : 1.81E-002 4.83E-001 0.000 0.2217 0.9000 0.9000 0.97 1 1 9.0E-001 2 : -3.38E-002 9.35E-002 0.000 0.1938 0.9000 0.9000 1.02 1 1 1.2E+000 3 : -2.73E-003 1.72E-002 0.000 0.1838 0.9000 0.9000 1.02 1 1 1.0E+000 4 : 3.79E-003 3.40E-003 0.000 0.1978 0.9000 0.9000 0.88 1 1 6.8E-003 5 : 2.57E-003 6.78E-004 0.000 0.1995 0.9000 0.9000 0.67 1 1 1.7E-003 6 : 3.82E-005 2.77E-005 0.000 0.0409 0.9900 0.9900 0.95 1 1 6.9E-005 7 : -3.87E-006 1.70E-006 0.454 0.0612 0.9900 0.9900 1.17 1 1 4.6E-003 8 : 1.87E-007 1.03E-007 0.343 0.0606 0.5646 0.9900 1.44 2 2 9.5E-007 9 : -9.27E-008 3.16E-008 0.000 0.3074 0.7468 0.9000 1.65 5 6 6.4E-005 10 : -1.31E-008 6.59E-009 0.000 0.2084 0.8743 0.9000 1.76 8 7 5.9E-006 11 : -1.72E-009 1.09E-009 0.099 0.1652 0.9000 0.9024 1.45 17 22 6.2E-007
Run into numerical problems.
iter seconds digits c*x b*y 11 0.7 9.7 0.0000000000e+000 -1.7227688561e-009
Ax-b = 3.7e-008, [Ay-c]_+ = 1.6E-010, x= 1.2e+001, y= 8.9e-001
Detailed timing (sec)
Pre IPM Post
9.210E-001 1.669E+000 1.400E-001
Max-norms: ||b||=9, ||c|| = 0,
Cholesky |add|=0, |skip| = 4, ||L.L|| = 9.0631.
Residual norm: 3.6736e-008
iter: 11
feasratio: 1.4495
pinf: 0
dinf: 0
numerr: 0
timing: [0.9210 1.6690 0.1400]
wallsec: 2.7300
cpusec: 1.0452
??? Error using ==> sprintf Function is not defined for sparse inputs.
Error in ==> int2str at 32 s = sprintf(['%', formatConversion], x);
Error in ==> mysympower at 44 charexpr = [charexpr,char(vartable(i)),'^',int2str(Z(j,i)),'*'];
Error in ==> findsos at 137 Z = mysympower(vars,prog.extravar.Z{1});
Please, how can I solve this problem? I think I've tried everything...
Réponses (0)
Catégories
En savoir plus sur Sparse Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!