The inertia issues in a microgrid can be improved by modifying the inverter control strategies to represent a virtual inertia simulation. This method employs the droop control strategy commonly used to share the power of a load among different power sources in the microgrid. This paper utilizes a modified droop control that represents this virtual inertia and applies an optimization algorithm to determine the optimal parameters and improve transient response. The results show better control when different variations are presented in the loads, leading the microgrid to have a better control of the operation. The optimization method applied in this research allows improvement to the transient response, thus avoiding unnecessary blackouts in the microgrid. : received his Bs. degree in Electrical Engineering and his Master in Electrical Engineering from the Universidad Nacional de Colombia, Sede Medellín. He has worked on projects related to design of electrical substations, electrical risk classification, and coordination of protections. He participated in the design of the electromechanical equipment for medium and high voltage substations and transient phenomena studies, obtaining experience in power system analysis. His research interests include: renewable energy, microgrid, energy storage, and power system protection and control.