Cogeneration of electricity with other electric generators