Power converters play an important role in harvesting energy from renewable sources. This paper presents an advanced control strategy for the power electronic converters and an energy management strategy in a microgrid having solar photovoltaic (PV) and a battery energy storage systems (BESS). The proposed advanced control of the power electronic converter ensures reduced power losses during the energy conversion process and the proposed energy management strategy ensures both the minimization of the operating cost of the system and the increased resiliency of the whole system. This paper proposes the use of a model predictive control strategy for the microgrid comprising the solar PV arrays integrated with BESSs. a magnetically linked multilevel converter (acting as the solar inverter), a full bridge inverter with advanced pulse width modulation technique (acting as the battery inverter) and an energy management system to achieve energy resiliency, minimize the operating cost and maximize the profit of the microgrid.