A structural reliability analysis based on shape design optimization is proposed. Shape design optimization problems formulation within the context of the XFEM. Nature inspired optimization techniques used for solving the optimization problems. Significant effect of the initial imperfection on the optimal shapes.