I am working on an efficient frontier problem for my financial theory class. The idea is to select weights that minimize a portfolio's variance subject to 2 constraints: the first constraint is that the weighted average of mean of the assets equals a target mean. The second is that the sum of the weights are one. More formally, we can write the problem as:
$$\text{min}\left(w_{1}^{2}\sigma_{1}^{2}+w_{2}^{2}\sigma_{2}^{2}+2w_{1}w_{2}\right)$$
subject to $$ w_{1}+w_{2}=1 $$ and $$ w_{1}\mu_{1}+w_{2}\mu_{2}=d $$ where $\sigma^{2}$represents the variane of either asset, and the $\mu$ denote the mean of either asset. Here, $d$ is our target mean. It seems to me that this system is singular- the two constraints themselves guarantee a solution for $w_{1}$ and $w_{2}$ that obviates the need for a minimzation problem. In other words, these are two equations and two unknowns and the minimization is redundant. What am I missing here?