grid scale optimization