I know there an old book on it as it been around long time., never read it, so...it most likely used copies on Amazon.
I actually don't know much about portfolio optimization other than the fact of not keeping all your eggs in one basket, so like keeping real estate in with the mix of stocks and commodities. Real Estate alone is very risky, if you end up with several houses vacant, you have to cough out thousands each month before they get rented, but I have found specializing to work well in real estate, either buying for lower middle class or higher lower class works for me as they stay much longer than say high middle class as they wait for credit scores goes up. You learn to wait for massacres of commodities or economies for very long term investments, like when people, who are generally are wrong, say something going into the toilet, you know you near the bottom in something and to dollar cost average into it, but some each month like gold and silver hard assets, buy it and hide it at home.
But as far as stocks, tough one as many buy for some type of value either internals or technicals.