Microgrids are the near future candidate to reduce the dependence on the carbon-based generation, towards a more environmentally friendly and sustainable energy paradigm. The popularization of the use of renewable energy sources has fostered the development of better technologies for microgrids, particularly power electronics and storage systems. Following the improvements in microgrid technologies achieved in the last decade, a new challenge is being faced: the control and management of microgrids for its operation in islanded mode, in addition to its large scale integration into the current electrical power system. The unregulated introduction of distributed generation based on renewable energy sources into the power system could cause a...