In this paper, we introduce four new classes of open sets in general Euclidean space RN. It is shown that every such class of open sets is compact under the Hausdorff distance. The result is applied to a shape optimization problem of p-Laplacian equation. The existence of the optimal solution is presented.