Design closure and parameter optimisation are crucial in creating cutting-edge antennas. Antenna performance can be improved by fine-tuning preliminary designs created using theoretical considerations and rough dimension adjustment via supervised parameter sweeps. This paper introduces a frequency reconfigurable antenna design that can operate at 28/38 GHz frequencies to meet FCC and Ofcom standards for 5G applications and in the 18 GHz frequency band for K-band radar applications. A PIN diode is used in this design to configure multiple frequency bands. The antenna has a modified rectangular patch-like structure and two optimised plugins on either side. The study that is being presented focuses on maximising the parameters that are subject to optimisation, including length (Ls), width (Ws), strip line width (W1), and height (ht), where the antenna characteristic parameters such as directivity is tuned by a hybrid optimisation scheme called Elephant Clan Updated Grey Wolf Algorithm (ECU-GWA). Here, the performance of gain and directivity are optimally attained by considering parameters such as length, width, ground plane length, width, height, and feed offsets X and Y. The bandwidth of the proposed antenna at − 10 dB is 0.8 GHz, 1.94 GHz, and 7.92 GHz, respectively, at frequencies 18.5 GHz, 28.1 GHz, and 38.1 GHz. Also, according to the simulation results, in the 18 GHz, 28 GHz, and 38 GHz frequencies S11, the return loss is − 60.81 dB, − 56.31 dB, and − 14.19 dB, respectively. The proposed frequency reconfigurable antenna simulation results achieve gains of 4.41 dBi, 6.33 dBi, and 7.70 dBi at 18.5 GHz, 28.1 GHz, and 38.1 GHz, respectively. Also, a microstrip quarter-wave monopole antenna with an ellipsoidal-shaped complementary split-ring resonator-electromagnetic bandgap structure (ECSRR-EBG) structure has been designed based on a genetic algorithm having resonating at 2.9 GHz, 4.7 GHz, 6 GHz for WLAN applications. The gain of the suggested ECSRR metamaterial and EBG periodic structure, with and without the ECCSRR bow-tie antenna. This is done both in the lab and with numbers. The measured result shows that the ECSRR metamaterial boosts gain by 5.2 dBi at 5.9 GHz. At 5.57 GHz, the two-element MIMO antenna achieves its lowest ECC of 0.00081.