DirkPitt
unread,May 21, 2013, 7:34:39 AM5/21/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to yal...@googlegroups.com
Hello, i have some huge problem understanding how to solve the following problem in SOS - yalmip (i read the wiki). Basically i have to insert in the problem some other polynomials variable, but i can't figure out how.
This is the problem i have to solve
V is a polynomial function V(x,u), umax is a bound over u. ( dim[x]=n, dim[u]=m ). P is given.
min tr(Q)
V,s1,s2,s3
s.t. V is sos(n+m)
s_i is sos(n+m) , i=1,2,3
- ( (1-V)*s1 + (umax - u'u)*s2+ (1-V)*(umax-u'*u)*s10 + [x' u'] P [x;u]-1) is sos(n+m)
Q should be the Gram matrix in V=z' Q z
I did something like this (without optimization):
x=sdpvar(n,1);
u=sdpvar(m,1);
umax %given
%define V, s_i
p=-((1-V)*s1 + (umax-u'*u)*s2 + (1-V)*(umax-u'*u)*s3 + [x' u']*P*[x;u]-1);
v=[sos(V), sos(s1), sos(s2), sos(s3), sos(p)];
[sol,v,Sol]=solvesos(v);
but i can't define the polynomial variable V and s_i with the function 'polynomial' (when i tried such as V=polynomial([x;u],n+m) i receive an error) . Can you suggest me how to do it?
Thanks in advance!