This is an extremely well studied problem. You can go back to Markowitz' original 1952 paper, if you want, it's moderately readable. You can also look in any financial economics text. For that matter, here's a reasonable overview in Wikipedia:
http://en.wikipedia.org/wiki/Modern_portfolio_theory
There's an excellent treatment of portfolio theory in Capinski and Zastawniak's "Mathematics for Finance" p.107-117. They derive a closed form solution for the minimum variance portfolio subject to linear constraints which can be useful for straightforward optimizations.
If the closed form solution is too cumbersome or your constraints are more complex, you can use William Sharpe's gradient optimization method:
http://www.stanford.edu/~wfsharpe/mia/mia.htm
http://www.stanford.edu/~wfsharpe/mia/opt/mia_opt1.htm
This online text is written for practitioners. Sharpe provides sample code and walks you through the entire process.
More recent academic work focuses on statistical flaws of mean-variance optimization, the error sensitivity of the covariance matrix, and how to construct well-conditioned estimators. If nothing else, it is absolutely critical that you have a good grasp of the statistical sensitivity of the method and use robust data. For example, the number of historical data points should be much larger than the dimension of your covariance matrix, ideally 20x larger to ensure statistical significance. For a good summary of the statistical issues written for practitioners, I recommend Ledoit and Wolf's paper "Honey, I Shrunk the Sample Covariance Matrix." Yes, that's really what it's called. Between that paper and its references you can get a very good education on the pitfalls of mean-variance optimization.
http://www.ledoit.net/research.htm
Finally, anyone who thinks a fund of funds should be constructed with intuition or common sense, but without a deep understanding of the mathematics of portfolio optimization, has no business managing other people's money.
Martin