When dealing with interconnected power systems, any sudden load changes leads to the deviation of active power and frequency in the tie-line. The daily management of the power system is also conditioned by the control of the active power and the frequency. It is a very important task in the conduct of the any electrical network to supply sufficiently and with high reliability the active power to be transmitted to the customers. Maintaining the frequency of each area and tie-line active power flow variation within prescribed value by adjusting the generator active outputs remain one of the main tasks of the network operators. This paper presents a model predictive regulator in controlling the power flow in tie-lines and frequency deviations in the microgrid, which will lead to power balance between the total active power generated and active power demand of the system. The system being studied consists of two microgrids, each made up of a wind farm, conventional thermal and hydro plants generator, photovoltaic (PV) system, storage system and active power demand. Predictive control algorithm is applied to control the power flow between two microgrids.