This article takes up the matter of contemporary threats to cities and urbanity, setting the problems cities face today against the background of the two categories of the resilient city and the city developing sustainably. The author describes and presents the evolution of the sustainable development concept as such, as well as the generational change in priorities that has taken place where the development of urbanised areas is concerned, given the way the concept has undergone a certain devaluation, in the light of its failure to achieve fulfi lment. The challenges cities face today require multi-faceted activity, in respect of increased inclusivity, robustness and resilience, and flexibility. This leaves today’s idea of the resilient city embracing old elements of the sustainable city, but also augmenting them in various ways.
The smart grid concept is predicated upon the pervasive use of advanced digital communication, information techniques, and artificial intelligence for the current power system, to be more characteristics of the real-time monitoring and controlling of the supply/demand. Microgrids are modern types of power systems used for distributed energy resource (DER) integration. However, the microgrid energy management, the control, and protection of microgrid components (energy sources, loads, and local storage units) is an important challenge. In this paper, the distributed energy management algorithm and control strategy of a smart microgrid is proposed using an intelligent multi-agent system (MAS) approach to achieve multiple objectives in real-time. The MAS proposed is developed with co-simulation tools, which the microgrid model, simulated using MATLAB/Simulink, and the MAS algorithm implemented in JADE through a middleware MACSimJX. The main study is to develop a new approach, able to communicate a multi-task environment such as MAS inside the S-function block of Simulink, to achieve the optimal energy management objectives.