Optimal Grid Connection