1: \begin{abstract}
2: We present an optimization procedure for generic polygonal or polyhedral meshes, tailored for the Virtual Element Method (VEM).
3: %
4: Once the local quality of the mesh elements is analyzed through a quality indicator specific to the VEM, groups of elements are agglomerated to optimize the global mesh quality.
5: %
6: The resulting discretization is significantly lighter: we can remove up to 80$\%$ of the mesh elements, based on a user-set parameter, thus reducing the number of faces, edges, and vertices.
7: %
8: This results in a drastic reduction of the total number of degrees of freedom associated with a discrete problem defined over the mesh with the VEM, in particular, for high-order formulations.
9: %
10: We show how the VEM convergence rate is preserved in the optimized meshes, and the approximation errors are comparable with those obtained with the original ones.
11: %
12: We observe that the optimization has a regularization effect over low-quality meshes, removing the most pathological elements.
13: %
14: This regularization effect is evident in cases where the original meshes cause the VEM to diverge, while the optimized meshes lead to convergence.
15: %
16: We conclude by showing how the optimization of a real CAD model can be used effectively in the simulation of a time-dependent problem.
17: \end{abstract}
18: