A GaAs high contrast grating design has been optimized for a mid-infrared VCSEL application through the use of an optimization algorithm. Reflection spectra of an experimental grating with dimensions within the computed tolerances are in a correct agreement with the simulations.