Application of portfolio optimization to drug discovery