Distributed Energy Generation for Cooperatives