We design planar silicon antennas for controlling the emission rate of magnetic or electric dipolar emitters. Evolutionary algorithms coupled to the Green Dyadic Method lead to different optimized geometries which depend on the nature and orientation of the dipoles. We discuss the physical origin of the obtained configurations thanks to modal analysis but also emphasize the role of nanoscale design of the LDOS. We complete our study using finite element method and demonstrate an enhancement up to 2 × 103 of the magnetic Purcell factor in europium ions. Our work brings together random optimizations to explore geometric parameters without constraint, a first order deterministic approach to understand the optimized designs and a modal analysis which clarifies the physical origin of the exaltation of the magnetic Purcell effect.