Capacity Investment in Renewable and Conventional Energy Sources