[0.75 0.25]
\[\frac{1}{2}x^\top P x + q^\top x\]
subject to equality constraints \(Ax=b\)
and inequality constraints \(Gx \le h\)
for given \(P, q, A, b, G\), and \(h\).
minimize \(x_1^2 + x_2^2 - 2x_1 - x_2\) subject to \(x_1 \ge 0\), \(x_2 \ge 0\) and \(x_1+x_2=1\).
\[P = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}\] \[G =\begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix}\] \[A = \begin{pmatrix} 1 & 1 \end{pmatrix}\]
\[ q = \begin{pmatrix} - 2 \\ - 1 \end{pmatrix}\] \[h= \begin{pmatrix} 0 \\ 0 \end{pmatrix}\] \[b = \begin{pmatrix} 1 \end{pmatrix}\]
[0.75 0.25]
minimize \((1/2)w^\top C w\) subject to
\[r_f + (\bar{r}-r_f1_n)^\top w = \bar{r}_{\text{targ}}\]
\(P=C\)
\(q=0\)
\(G=0\)
\(h=0\)
\(A = (\bar{r}-r_f1_n)^\top\)
\(b=(\bar{r}_{\text{targ}} - r_f)\)
\(P=\text{raver} \times C\)
\(q=-(\bar{r}-r_f1_n)\)
\(G=0\)
\(h=0\)
\(A = 0\)
\(b=0\)