Optimization on grids-optimization for grids