Dear Prof. Löfberg,
I am trying to define a polynomial optimization problem in YALMIP (using sparsePOP/SeDuMi).
My first question is a clarification on how to define a multivariate polynomial. For example, I have my vector variable
n=50;
x=sdpvar(n,1);
Now, I want to define constraints which are function of x(1)^3, x(2)^3 and so on. This I define by defining p=x.^3. A sample constraint would be p'Qp where Q is square matrix. I am not sure if this is the right way to proceed speacially if I want to maintain the sparse nature of the problem (Q in this case). Lot of examples on the website deal with only univariate polynomials. I see that there is a polynomial function but not sure how it to use it in this case here.
And my second question was in way sparsePOP is interfaced with YALMIP. If one has a sparse objective e.g., defined as a summation involving only a few terms of x, how does one define it in YALMIP? It looks to me that the callsparsepop.m does not take this into account.
Thank you.