risk management in portfolio optimization