A new objective function is defined for two and three dimensions.In numerical simulation,if the mesh quality cannot be improved by constrained Laplacian smoothing,local optimization-based smoothing algorithm is used.Thus none mesh gets worse while optimization-based smoothing applied only to limited number of meshes and efficiency of optimization is highly improved.Numerical result indicated that however applied in mixed grids the new objective function is effective.