We propose a generalized algorithm to optimize an antenna through Broyden based input space mapping. We elaborate on the details of creating an effective coarse model from a 2D coarse mesh method of moments simulation on Matlab™ Antenna Toolbox. The fine model consists of a 3D finite element simulation from Ansys™ EM2019 HFSS Antenna Toolbox. The coarse model is optimized using a minimax formulation to obtain a target response. The Broyden based input space mapping of the models is implemented through a generalized Matlab to HFSS driver. We design 2 antennas; a dipole bowtie and a microstrip patch using the antenna optimization algorithm. We elaborate on the adjustments needed for the implementation of the algorithm to the specific examples.