Problem Statement
I've been trying to solve the following optimization problem
$$ \begin{array}{rl} \min \limits_{\boldsymbol{w}} & \boldsymbol{w}^\top\boldsymbol{C}\boldsymbol{w} \\ \mbox{s.t.} & \sum_{j=1}^K w_j = 1\\ \end{array} $$ Where $\boldsymbol{w}\in \mathbb{R}^K$ and $\boldsymbol{C}\in\mathbb{R}^{K\times K}$ and $\boldsymbol{C}$ is symmetric, that is $\boldsymbol{C} = \boldsymbol{C}^\top$.
My Tentative Solution
Introduce lagrange multiplier $\lambda\in\mathbb{R}$ and construct the Lagrangian using the vector $\boldsymbol{1}=(1, \ldots, 1)^\top \in\mathbb{R}^K$ $$ \mathcal{L}(\boldsymbol{w}, \lambda) = \boldsymbol{w}^\top\boldsymbol{C}\boldsymbol{w} - \lambda(\boldsymbol{1}^\top \boldsymbol{w} - 1) $$ Then take the derivative with respect to $\boldsymbol{w}$
$$ \nabla_{\boldsymbol{w}} \mathcal{L}(\boldsymbol{w}, \lambda) = 2\boldsymbol{C}\boldsymbol{w} - \lambda\boldsymbol{1} $$ However I am not sure how to solve this now..
Let $v_1,\dots,v_n$ be a basis for ${\bf R}^n$ consisting of eigenvectors for $C$ (note – I've changed the dimension from $K$ to $n$). Let $\lambda_1,\dots,\lambda_n$ be the corresponding eigenvalues. We may assume $\lambda_1\le\cdots\le\lambda_n$.
Any $w$ in ${\bf R}^n$ can be written as $w=a_1v_1+\cdots+a_nv_n$ for some reals $a_1,\dots,a_n$. Then $w^tCw=\lambda_1a_1^2+\cdots+\lambda_na_n^2\ge\lambda_1(a_1^2+\cdots+a_n^2)$ so for a fixed value of $\|w\|$, $w^tCw$ is minimized by taking $w$ to be the appropriate multiple of $v_1$.
I now see this isn't quite what was asked for, since the problem is to fix $\sum w_i$ and not $\sum w_i^2$, but it does in any event give the general form of $w^tCw$ which should be important in any approach to the problem.