CO OPTIMIZATION OF VIRTUAL POWER PLANTS AND DISTRIBUTION GRIDS