Suppose $S = \pmatrix{1&1\\ 1&0\\ 0&1}$, $W$ is a $3\times3$ covariance matrix, which could be regarded as fixed.
I need to find a $2\times 3$ matrix $Q$ that minimizes $$ \operatorname{trace}\left[(SQ)W(SQ)^T\right] $$ subject to $SQS=S$.
Please help me to solve this issue!!!...
Thanks
I have devided my answer in two parts. First I introduce the formulation. Second, I consider the optimization.
1) Formulation: For simplicity let me rewrite your problem in vector form and formulate it as a quadratic programming problem of the form $$ \min_q q^T R q ~~~~~~{\rm s.t.}~~~~~~ Aq = s. $$
The following definitions are necessary to forumulate the constraints. For convencience, we consider $S^TQ^TS^T=S^T$ instead of $SQS=S$.
$s={\rm vec}(S^T)$.
$A = S \otimes S^T$ where $\otimes$ is the Kronecker product. According to http://en.wikipedia.org/wiki/Kronecker_product we can then rewrite $S^TQ^TS^T=S^T$ equivalently as $Aq=s$.
Let us now rewrite the target function:
2) Optimization: Having the optimization problem in vector, it is straight forward to solve it, see http://en.wikipedia.org/wiki/Quadratic_programming. Note that, even though $A$ is 6x6 and $s$ also has length 6 there are still degrees of freedom left for the optimization as $A$ does not have full rank (I checked this with Matlab).
One possible algorithm to solve the optimization problem is explained here: Let $q_0 $ be a particular solution to the equation system such that $Aq_0 = s$ and let $q_1$ element of the null space of $A$ such that $A q_1 = 0$. Let $B $ contain a basis for the null space (B can be found by using SVD for example) such that $q_1$ can be expressed as $q_1 = B x$, where $x$ is an arbitrary vector such that $ABx = 0$. Then the quadratic programming problem can be formulated in respect to the free variable $x$ as
$$ \min_{q_1} (q_1 + q_0)^T R( q_1 +q_0) = \min_{x} (Bx + q_0)^T R( Bx+q_0)= \min_x x^T B^T R B x + 2 x^T B^T R q_0 + const. $$ Note that $q_0$ is fix here!
The solution $x^\star$ to this problem is given by $x^\star= (B^T R B)^{-1} B^T R q_0$.
With $x^\star$ you find $q_1$, together with $q_0$ you find the matrix $Q$.