Vortices belong to the most important phenomena in fluid dynamics and play an essential role in many engineering applications. They can act detrimentally by harnessing the flow energy and reducing the efficiency of an aerodynamic device, whereas in other cases, their presence can be exploited to achieve targeted flow conditions. The control of the vortex parameters is desirable in both cases. In this paper, we introduce an optimization strategy for the control of vortices in the wake of a bluff body. Flow modelling is based on RANS and DES computations, validated by experimental data. The algorithm for vortex identification and characterization is based on the triple decomposition of motion. It produces a quantitative measure of vortex strength which is used to define the objective function in the optimization procedure. It is shown how the shape of an aerodynamic device can be altered to achieve the desired characteristics of vortices in its wake. The studied case is closely related to flame holders for combustion applications, but the conceptual approach has a general applicability to vortex control.