Hi,
I can make this project using an optimization method called Bacteria Foraging Optimization Algorithm, i can verify the result implementing a patch antenna using CST 2014. Tell me more details of the project. I have very good knowledge on electromagnetic theory.
Respect to the cost function, for me that can be an average on the angular direction of the difference of the radiation pattern, in the H plane and the E plane, after BFOA will find the configuration with the minimal difference.
Best regards,
Enderson J. Falcón G.