Design and optimization of optical grids and clouds by