## 1 Introduction
Finally, according to the bids offered by each of the market players, the exchange takes place. Along with attention to generation, the demand side needs to be considered. DR attempts to achieve a balance between generation and consumption by limiting selection of the loads on the system to which power is provided [18; 19; 20]. It plays a significant role in the effective shift of loads having a certain performance. Due to insufficient attention to DR in residential buildings, [PERSON] and [PERSON] [21] focused on using DR in residential sectors. This paper, while demonstrating DR's effectiveness in controlling and managing the performance of electrical appliances, has shown that DR is a function of the level of comfort and convenience experienced by subscribers. In addition, [PERSON] and [PERSON] [22], while indicating the impact of DR on reducing subscriber costs, could prevent the emergence of new peak pricing. Moreover, this work considers a local structure combined with controllable consumers, and attempts to reduce peak demand by the DR strategy. However, it does not provide any solution for calculating the MCP [23; 24]. Although the DP scheme applied in [25] has managed to maximize the profit of existing agents, such as consumers, by PSO algorithm, the issue of emission reduction has not been investigated. Moreover, the conducted research in [26] shows that utilizing an appropriate DR with a Nash-Stackelberg game approach have led to reaching more utilities for end-users/consumers. In [27; 28], a multi-agent system has been presented to evaluate optimal residential DR implementation in a distribution network, in which the main stakeholders including electric vehicles, homes owners, household appliances, and power market are modeled by heterogeneous home agents and a retailer agent. However, the multi-carrier energy system and pollution have not been modeled in this paper. In [28; 29; 30], a novel home energy management system and a sustainable day-ahead scheduling are presented that enable the residential customers to execute demand response programs autonomously. It eventually leads to reaching an acceptable level of consumers' power consumption and H-MGs costs reduction. In [31; 32], the authors recommended the use of incentive-based payments as price offer packages to implement DR programs. Results of the simulation have considered in three different cases for the optimization of operational costs and total emissions of micro-grid without the involvement of DR. In [33; 34; 35], an optimization strategy for the economic operation of a micro-grid considering DR programs in different scenarios is presented, and it is intended for the aim of minimizing the operating cost of the micro-grid and maximizing the efficiency of renewable energy utilization. In addition, a multi-time electricity price response model based on user behavior and satisfaction is established, and the core value of the model ia to describe the mechanism and effect of participation in electricity price demand response. In [36; 37], the applied DR in a multi-carrier energy system (thermal and electrical) leads to decreasing the emission, but the parameters of MCP and DP are in considered in the model. In addition, in [38; 39; 40], respectively, a DR solution to economic operation issues of grid-connected micro-grid and optimal renewable planning model in conjunction with DR are presented. To summarize, the following shortcomings can be identified in the existing literature related to the DR schemes including DRP, DRE, and DRPE in the neighborhood H-MG.  
* There is no framework for exchanging power between H-MGs in [16; 17]. * At times when H-MGs have a power shortage, the conditions for purchasing energy from other H-MGs having power surplus are not available [16; 17]. * No MCP calculation based on the retail electricity pricing and market bids are presented in [22; 23; 31; 32; 33; 36].