Grid optimizer work