In recent years, the power system stability enhancement and power flow analysis are essential task in AC-DC microgrid system. Hence, in this paper, Golden Search-based Flower Pollination Algorithm (GSFPA) to solve the optimal power flow invention in AC-DC microgrid system. In the projected methodology, the objective functions are framed to enable the optimal power flow in microgrid system such as total cost of generation in AC as well as DC systems and cost of active power transmission to DC grid from AC microgrid. The objective functions are related with the constraints such as AC-DC power electronics converters limits, power flows and voltage magnitude limits. Additionally, power loss and voltage deviation of the microgrid system also reduced which enhance the system performance. The proposed methodology is utilized to select optimal control parameters for enabling the stable operation of microgrid system. The proposed methodology is validated by using IEEE 30 bus system which associated with 9-bus DC microgrids and 6-bus DC microgrids. The projected method is applied in MATLAB and performances are analyzed with normal as well as contingency conditions. The projected method is contrasted with the conventional methods such as Flower Pollination Algorithm (FPA), chaos based FPA (CFPA) and Levy Flight based Black Widow Optimization (LF-BWO) respectively.