Optimizing a portfolio of power-producing