In this paper, we introduce three new classes of open sets in a general Euclidean space $\mathbb{R}^N$. It is shown that every class of open sets is compact under the Hausdorff distance. The result is then applied to a shape optimization problem of elliptic equation. The existence of the optimal solution is presented. In this paper, we introduce three new classes of open sets in a general Euclidean space $\mathbb{R}^N$. It is shown that every class of open sets is compact under the Hausdorff distance. The result is then applied to a shape optimization problem of ...