Optimizing the R&D Portfolio