1 Introduction

With the gradual deterioration of global environmental problems and exploration of fossil fuels, large numbers of distributed generations (DGs) are connected to the distribution network. Although this phenomenon will bring environmental and economic benefits to power producers, the operation and scheduling of power system will be faced with significant challenges [1]. As a result, the traditional unidirectional power flow of passive power grid has failed to adapt to the significant changes. Thus the concept of active distribution network (ADN) is put forward [2, 3]. CIGRE C6.11 working group defines ADNs as distribution networks that have systems in place to control a combination of distributed energy resources (generators, loads and storage). Distribution system operators (DSOs) have the possibility of managing the electricity flows using a flexible network topology. Distributed energy resources (DERs) take some degree of responsibility for system support, which will depend on a suitable regulatory environment and connection agreement [4]. From then on, Active distribution network has received extensive attention. Many scholars began to study the generation schedule in ADNs to improve the acceptance level of DG resources, such as optimal power flow [5], reactive power optimization [6], day ahead and real-time scheduling [7], active and reactive power coordinated schedule [8, 9]. On the other hand, coordinated dispatch between ADN and transmission network (TN) has become a new issue, which is also the topic of this article.

Centralized and decentralized optimizations are two main methods to solve the multi-area coordination problem. Centralized optimization [10,11,12] is abandoned gradually because of the large computational quantity and unavailable access to a large amount of generator information. For one thing, it is hard for TN operators to get and handle all the DG operating conditions. For another, suppliers with several DGs are unwilling to provide every DG parameter for information privacy. Decentralized optimization includes Lagrangian relaxation, Benders decomposition and optimality condition decomposition (OCD). The main idea of Lagrangian relaxation is to add shared constraints to each subproblem and update multipliers [13]. Augmented Lagrangian based decomposition [14,15,16,17,18] is the extended method of Lagrangian relaxation and used widely in multi-area optimal power flow (OPF). Benders decomposition is first proposed in [19]. Compared to Lagrange relaxation, Benders decomposition doesn’t need to modify the multipliers to get a good convergence rate. Intelligent algorithms such as particle swarm optimization [20], artificial bee colony optimization [21], teaching learning based optimization [22] are also often used for multi-area optimization involving nonlinear conditions such as valve point loading effects. Another widely used method is OCD, which is first proposed in [23] and improved in [24] and [25]. In [26], OCD is implanted on a network of workstations considering physical constraints. References [27] and [28] apply OCD in alternating current (AC) conditions. Tie-line information such as power, price and voltage is exchanged between subsystems, which realizes system decomposition and interaction. OCD does not need to carry out complex formula conversion which is essential in Lagrange relaxation and Benders decomposition.

However, [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28] are focused on coordinated optimization between TNs and subsystems are parallel to each other. So all sub optimization problems use the variables of same nature, which does not apply to coordinated scheduling problem between ADNs and TN. From the TN side, ADNs is viewed as load and tie-line power can affect TN generation schedule. TN is a virtual source for ADNs and the electricity price influences ADN dispatch. It is necessary to realize the coordinated scheduling between TN and ADNs according to this characteristic.

References [29,30,31] focus on the coordinated scheduling problem between TN and ADNs. Reference [29] makes the tie-line power difference of TN and ADN optimization as a penalty term and adds it to the objectives of each subproblem, which guarantees the convergence of the algorithm. Price change is not considered in the ADN dispatch. TN and ADNs are in a parallel relationship which is not suitable. Heterogeneous Decomposition is proposed in [30, 31]. Power fee calculated by node price is added to the ADN cost. Nodal price sensitivity matrix is used to improve the convergence speed of the algorithm. Reference [30] verifies the convergence of the algorithm. Reference [31] puts forward two methods for the price sensitivity matrix. This method is based on economic dispatch and node price and not applicable in the electricity market cleared by the uniform market clearing price (MCP).

In the OCD, each subsystem is autonomous and all subsystems interact with each other only through the tie-line information, which is the same as the characteristic of agents. Inspired by the concept of OCD, this paper intends to use multi agent system to solve the coordinated scheduling problem between TN and ADNs.

Multi-agent system (MAS) has been applied in the field of electricity market incorporating DGs. Reference [32] researches on EV aggregation scheduling strategy to participate in the power market. The dispatch process is single direction and without taking into account of the impact of EV behavior on the power market. The influence of demand response on the bidding strategies of conventional generators is studied in [33]. In [34], MAS is used to study the bidding strategy of wind power supplier. The impact of other participants is not considered in the model. In [35], a bi-level stochastic model is established to discuss the dispatch strategies in electricity markets. Electric vehicles, active load and wind turbine are collected as different DG suppliers. Therefore, no literatures about MAS study on the topic that ADN acts as an aggregator of various DGs and takes part in the power market.

The contributions of this paper are:

  1. 1)

    Different DGs in the ADN are collected together as a price taker and take part in the power market. ADN can adjust the amount of power bought from the TN to minimize its operating cost through DG generation alterations.

  2. 2)

    A coordinated scheduling model based on MAS for power system with ADNs is proposed. The model of market operator (MO) agent is a day-ahead market clearing problem in the bilateral electricity market while ADN dispatch is a coordinated scheduling model of DGs.

  3. 3)

    Coordination between ADN and TN is simulated in the bi-directional mode. MCP is an incentive of the TN to influence the dispatch of DGs in ADNs. ADNs affect the operating of TN by determining the bid volume. ADNs interact with each other indirectly by affecting the MCP together. Feedbacks of the ADN and TN are achieved by the iteration.

The reminder of this paper is structured as follows. Section 2 introduces the bidding structure based on MAS. Models of every agent and the procedure of coordinated schedule are proposed in Section 3. Section 4 presents numerical examples and results. Conclusions are drawn in Section 5.

2 Bidding structure based on MAS

2.1 Interaction mechanism between ADNs and main grid

In conventional power system, distribution network (DN) is passive and only transmits and distributes power to the end-users. The generation dispatch schedule for the whole power system is the plan just for generators of main grid side. However, as large numbers of DGs connect into DN, DN gradually converts its role from passivity to initiative. Power flow in power system has significant changes and the generation dispatch includes generator scheduling in each autonomous system. However, the main grid and DN together as a whole power system, changes of main grid affect the operation and schedule of DN, and vice versa. Therefore, multiple interactions and generation schedules between the main grid and ADNs are required in order to reach the optimization of the whole system.

Smart grid has the inherent characteristics of informatization, digitization, automation and interactivity, which makes it possible to exchange information frequently between ADNs and the main grid. With technical support of smart grid, a coordinated scheduling model is proposed between the main grid and ADNs in a bilateral electricity market. The market-clearing process of this model is a process of multiple iterations. Interaction between ADNs and the main network is achieved mainly through information exchange among MO agent and ADN agents. Brokered deal and network security check are carried out in the MO agent based on bid volumes offered by ADN agents, through which MCP is determined. According to MCP provided by MO agent, each ADN agent optimizes the dispatch of DGs and re-declares the bid volume of electricity to the MO agent. By repeated exchanges of MCP and bid volumes between the two sides, a market equilibrium is achieved ultimately.

2.2 Market framework

According to the characteristics of MAS, each agent represents a separate physical entity and can coordinate with other agents. The market framework based on MAS consists of MO agent, ADN agent, DG agent, buyer agent and supplier agent. The market framework is shown in Fig. 1.

Fig. 1
figure 1

Market framework

MO agent: market clearing, determining the MCP and power volume of both buyer agents and supplier agents, sending these messages to other agents, network security check in the main grid.

Buyer agent: making bidding strategy, providing bidding curve to MO agent, bidding strategy adjustments.

Supplier agent: making bidding strategy, offering biding curve to MO agent, bidding strategy adjustments.

ADN agent: providing bid volume to MO agent, generation dispatch of DGs based on MCP sent by MO agent and parameters provided by DG agents, network security check in the ADN.

DG agent: generation in accordance with the command of ADN agent, sending cost and operating data to ADN agent, operating security check of the DG.

JADE is employed as a multi-agent framework in this paper. The communication among agents is carried out according to FIPA-specified agent communication language (ACL). The structure of ADN agent is shown in Fig. 2. The dispatch model proposed in this paper is set in the information processor. Environment affects the ADN agent through perceptron. ADN agent interacts with other agents through communication mechanism.

Fig. 2
figure 2

Structure of ADN agent

After registering a unique ID and defining the behavior for each agent, MAS can handle the coordinating problem between TN and ADNs through information exchange and control strategies. The coordination control of MAS includes the definition of ADN bid volume and the market clearing progress.

The definition of ADN bid volume is as follows.

  1. 1)

    ADN agent drafts DG generation strategies, define the power output of each DG, and send ‘request’ message to DG agents.

  2. 2)

    DG agents receive messages from the ADN agent and assess the security conditions.

  3. 3)

    If the output proposal from ADN agent is judged available by the power and state of charge(SOC) index, send ‘agree’ message to the ADN agent.

  4. 4)

    ADN agent sends ‘propose’ message to all DGs to implement the generation schedule.

  5. 5)

    If the security constraints in DG agents are violated, return ‘refuse’ message to the ADN agent.

  6. 6)

    ADN agent makes adjusting strategies and re-sends ‘propose’ message to all DGs to implement the generation schedule.

  7. 7)

    After every DG agent returns message, the DG generation schedule is determined.

The market clearing progress is as follows:

  1. 1)

    Market clearing is made in the MO agent and define the MCP. MO agent sends ‘inform’ message to ADN agents.

  2. 2)

    ADN agents determine DG coordinated schedule and send bid volume ‘request’ message to the MO agent.

  3. 3)

    MO agent assess the power difference index and send ‘agree’ or ‘refuse’ message to ADN agents.

  4. 4)

    If ADN agents receive ‘refuse’ message, coordinated schedule is adjusted and ‘request’ messages are re-sent to the MO agent.

  5. 5)

    If ADN agents receive ‘agree’ message, the market clearing results are implemented.

As is can be seen, the core of the coordinated scheduling is the adjusting dispatch strategies of the agents, which is discussed in Section 3.

3 Coordinated scheduling model of power system with ADNs

3.1 DG agent

DG agent is the agent of DERs in ADNs such as wind turbine (WT) agent, hydropower agent, combined heat and power (CHP) agent and energy storage (ES) agent.

  1. 1)

    WT agent

WT agent is the agent of a wind turbine. Based on predicted wind speed, the equation of active power output is shown as follows [36].

$$\left\{ \begin{array}{ll} P_{w} = 0 &v_{co} < v < v_{ci} \\ P_{w} = P_{r} \left( {Av^{2} + Bv + C} \right)&v_{ci} < v < v_{r} \\ P_{w} = P_{r} &v_{r} < v < v_{co} \\ \end{array} \right.$$
(1)

where P w is the power output of WT; v is the real wind speed of WT; v r , v ci , v co is the rated/cut-in/cut-out wind speed of WT; P r is the rated power of WT. The coefficients A, B and C can be formulated as follows.

$$A = \frac{1}{{\left( {v_{ci} - v_{r} } \right)^{2} }}\left[ {2 - 4\left( {\frac{{v_{ci} + v_{r} }}{{2v_{r} }}} \right)^{3} } \right]$$
(2)
$$B = \frac{1}{{\left( {v_{ci} - v_{r} } \right)^{2} }}\left[ {\frac{{\left( {v_{ci} + v_{r} } \right)^{4} }}{{2v_{r}^{3} }} - \left( {3v_{ci} + v_{r} } \right)} \right]$$
(3)
$$C = \frac{1}{{\left( {v_{ci} - v_{r} } \right)^{2} }}\left[ {v_{ci} \left( {v_{ci} + v_{r} } \right) - 4v_{ci} v_{r} \left( {\frac{{v_{ci} + v_{r} }}{{2v_{r} }}} \right)^{3} } \right]$$
(4)
  1. 2)

    Hydropower agent

In this paper, we only discuss runoff hydropower plant. Hydropower agent is the agent of hydropower units. The active power output constraint is described in (5).

$$0 \le P_{water}^{t} \le P_{water,\hbox{max} }^{t}$$
(5)

where \(P_{water}^{t}\) is the power output of hydropower turbines (HT) at period t. Generally, \(P_{water,\hbox{max} }^{t}\) is constant during a scheduling period (24 hours).

  1. 3)

    CHP agent

CHP turbine has a rated technical parameter: heat-power ratio \(\theta\), which is formulated as follows [37].

$$\theta = \frac{{Q^{t} }}{{P_{CHP}^{t} }} \times 100\%$$
(6)

where Q t is the thermal production of CHP at period t; \(P_{CHP}^{t}\) is the power output of CHP at period t.

The thermal supply constraint of CHP system is shown in (7).

$$Q^{t} = Q_{load}^{t}$$
(7)

where \(Q_{load}^{t}\) is CHP cooling or heating demand at period t.

According to (6) and (7), the active power output can be calculated. Moreover, active power output limit constraint in (8) should be satisfied as well.

$$P_{CHP,\hbox{min} } \le P_{CHP}^{t} \le P_{CHP,\hbox{max} }$$
(8)

where P CHP,max, P CHP,min is the upper/lower limit of active power output of CHP.

  1. 4)

    ES agent

The most common ES device is storage battery. The charging and discharging process of a battery is denoted in the following two equations [35].

The charging process:

$$SoC^{t} = SoC^{t - 1} + P_{c}^{t} \eta_{c}$$
(9)

The discharging process:

$$SoC^{t} = SoC^{t - 1} - \frac{{P_{d}^{t} }}{{\eta_{d} }}$$
(10)

where SoC t is the residual capacity of ES at period t; P t c and P t d is the charging/discharging power of ES at period t; η c and η d are the charging/discharging efficiency of ES.

The operating cost can be calculated by (11).

$$F_{es} (t) = e\left( {\left| {P_{c}^{t} } \right| + \left| {P_{d}^{t} } \right|} \right)$$
(11)

where F es (t) is the total operating cost of ES at period t; e is the ES operating cost of per MW.

The operating constrains of ES system is given in (117).

$$SoC_{\hbox{min} } \le SoC^{t} \le SoC_{\hbox{max} }$$
(12)
$$- P_{c,\hbox{max} } \le P_{storage}^{t} \le P_{d,\hbox{max} }$$
(13)
$$P_{storage}^{t} { = }P_{d}^{t} - P_{c}^{t}$$
(14)

where \(P_{storage}^{t}\) is the power output of ES at period t; P c,max and P d,max are maximum permissible values of ES charging/discharging power.

Constraint (12) and (13) mean the residual capacity and power output of ES limits, respectively. Constraint (14) is the power output formulation.

3.2 ADN agent

The generation schedule of DGs is made in the ADN agent, including not only dispatchable units such as hydropower, ES and CHP, but also undispatchable units such as photovoltaic (PV) power generation and WT. The objective function is to minimize the total cost of the ADN:

$$\hbox{min} \sum\limits_{t = 1}^{T} {\left( {\lambda_{ADN}^{t} P_{ADN}^{t} { + }\sum\limits_{k = 1}^{{n_{DG} }} {F_{DG}^{k,t} (P_{DG}^{k,t} )} } \right)}$$
(15)

where \(\lambda_{ADN}^{t}\) is the MCP at period t; \(P_{ADN}^{t}\) is the power bought from the MO at period t; \(F_{DG}^{k,t}\) is the cost function of DG k in the ADN at period t; \(P_{DG}^{k,t}\) is the active power of DG \(k\) in the ADN at period t; \(n_{DG}\) is the number of DGs in the AND; T is the scheduling period.

Subject to scheduling constraints:

$$P_{in}^{m} - V_{m} \sum\limits_{n = 1}^{{n_{l} }} {V_{n} \left( {G_{mn} \cos \theta_{mn} + B_{mn} \sin \theta_{mn} } \right) = 0}$$
(16)
$$Q_{in}^{m} - V_{m} \sum\limits_{j = 1}^{n} {V_{n} \left( {G_{mn} \sin \theta_{mn} - B_{mn} \cos \theta_{mn} } \right) = 0}$$
(17)
$$P_{in}^{m} = P_{G}^{m} - P_{D}^{m}$$
(18)
$$Q_{in}^{m} = Q_{G}^{m} - Q_{D}^{m}$$
(19)
$$- P_{mn,max} \le P_{mn} \le P_{mn,\hbox{max} }$$
(20)
$$V_{m,\hbox{min} } \le V_{m} \le V_{m,\hbox{max} }$$
(21)
$$\theta_{m,\hbox{min} } \le \theta_{m} \le \theta_{m,\hbox{max} }$$
(22)

where \(P_{in}^{m}\) and \(Q_{in}^{m}\) are the active/reactive power injection of node m; \(V_{m}\) is the voltage of node m; \(G_{mn}\) is the conductance of the branch from node m to node n; \(\theta_{mn}\) is the phase angle deviation between node m and node n; \(B_{mn}\) is the susceptance of the branch from node m to node n; \(P_{G}^{m}\) and \(Q_{G}^{m}\) are the active/reactive power generation of node m; \(P_{D}^{m}\) and \(Q_{D}^{m}\) are the active/reactive power demand of node m; \(P_{mn}\) is the transmission power linking node m and node n; \(\theta_{m}\) is the phase angle at node m.

The first item in (15) is the fees for purchasing electricity from the MO and the second is the sum of generation cost. Equation (16) and (17) are the node active and reactive power injection balance. Equation (18) and (19) are the node power injection formulation. Constraint (20) means the power flow limit on transmission lines. Constraint (21) and (22) is the node voltage and phase angle limits.

3.3 MO agent

Market clearing is made in the MO agent, which is a unit commitment (UC) problem. MCP is used for settling accounts in a pool based bilateral electricity market, which is calculated by the highest bid price of power suppliers succeeding in generation bidding. The objective function is the maximization of social welfare:

$$\hbox{max} \sum\limits_{t = 1}^{T} {\left( {\sum\limits_{i = 1}^{{n_{b} }} {C_{b}^{i,t} } (P_{b}^{i,t} ) - \sum\limits_{j = 1}^{{n_{g} }} {C_{G}^{j,t} (P_{G}^{j,t} )} } \right)}$$
(23)

where \(n_{b}\) is the number of buyers; \(n_{g}\) is the number of supplies; \(C_{b}^{i,t}\) is the bid strategy of buyer \(i\) at period \(t\); \(C_{G}^{j,t}\) is the bid strategy of supplier \(j\) at period \(t\); \(P_{b}^{i,t}\) is the active power of buyers at period \(t\); \(P_{G}^{j,t}\) is the active power of supplies at period \(t\).

The constraints are:

$$\sum\limits_{j}^{{n_{g} }} {P_{G}^{j,t} = } \sum\limits_{i}^{{n_{b} }} {P_{b}^{i,t} } + \sum\limits_{l}^{{n_{DG} }} {P_{ADN}^{l,t} }$$
(24)
$$I_{G}^{j,t} P_{G}^{j,\hbox{min} } \le P_{G}^{j,t} \le I_{G}^{j,t} P_{G}^{j,\hbox{max} }$$
(25)
$$P_{b}^{i,\hbox{min} } \le P_{b}^{i,t} \le P_{b}^{i,\hbox{max} }$$
(26)
$$y^{j,t} - z^{j,t} = I_{G}^{j,t} - I_{G}^{j,t - 1}$$
(27)
$$y^{j,t} + z^{j ,t} \le 1$$
(28)
$$P_{G}^{j,t} - P_{G}^{{j,t{ - }1}} \le R_{u}^{j} \left( {1 - y^{j,t} } \right) + y^{j,t} P_{G}^{j,\hbox{min} }$$
(29)
$$- R_{d}^{j} \left( {1 - z^{j,t} } \right) - z^{j,t} P_{G}^{j,\hbox{min} } \le P_{G}^{j,t} - P_{G}^{{j,t{ - }1}}$$
(30)
$$\left( {X_{on}^{j,t - 1} - T_{on}^{j} } \right)\left( {I_{G}^{j,t - 1} - I_{G}^{j,t} } \right) \ge 0$$
(31)
$$\left( {X_{off}^{j,t - 1} - T_{off}^{j} } \right)\left( {I_{G}^{j,t} - I_{G}^{j,t - 1} } \right) \ge 0$$
(32)

where \(P_{ADN}^{l,t}\) is the bid volume provided by the lth ADN at period \(t\); \(I_{G}^{j,t}\) is the binary variable to indicate if supplier \(j\) is on at period \(t\); \(y^{j,t}\) and \(z^{j,t}\) are the start-up/shut-down binary variable to indicate whether supplier \(j\) starts up/shuts down at period \(t\); \(P_{G}^{j,\hbox{max} }\) and \(P_{G}^{j,\hbox{min} }\) are the maximum/minimum power output of supplier \(j\); \(P_{b}^{i,\hbox{max} }\) and \(P_{b}^{i,\hbox{min} }\) are the maximum/minimum bid volume of buyer \(i\); \(R_{u}^{j}\) and \(R_{d}^{j}\) are the ramp-up/ramp-down rate limit of supplier \(j\); \(T_{on}^{j}\) and \(T_{off}^{j}\) are the minimum continues up/down time of supplier \(j\); \(X_{on}^{j,t}\) and \(X_{off}^{j,t}\) are the continuous up/down time of supplier \(j\).

Objective (23) includes the bidding strategies of buyers and suppliers. The bidding price functions are quadratic functions in (33) and (34), which can be transformed into piecewise-linear segments:

$$C_{b}^{i,t} (P_{b}^{i,t} ) = \alpha_{b}^{i} \left( {P_{b}^{i,t} } \right)^{2} { + }\beta_{b}^{i} P_{b}^{i,t} { + }\gamma_{b}^{i}$$
(33)
$$C_{G}^{j,t} (P_{G}^{j,t} ) = \alpha_{G}^{j} \left( {P_{G}^{j,t} } \right)^{2} { + }\beta_{G}^{j} P_{G}^{j,t} { + }\gamma_{G}^{j}$$
(34)

where \(\alpha_{b}^{i}\), \(\beta_{b}^{i}\), \(\gamma_{b}^{i}\) are the coefficients of bidding price functions of buyer \(i\); \(\alpha_{G}^{j}\), \(\beta_{G}^{j}\), \(\gamma_{G}^{j}\) are the coefficients of bidding price functions of supplier \(j\).

Equation (24) means power balance between suppliers, buyers and ADNs. Equations (25) and (26) denote power output limits of the suppliers and buyers. Equations (27) and (28) are auxiliary functions. Equations (29) and (30) are the ramp-up and ramp-down constraints. Equations (31) and (32) are the continuous up and down time of supplier constraints, respectively.

3.4 Procedure of coordinated scheduling model based on MAS

The algorithm flow to solve the coordinated scheduling model of power system with ADNs is illustrated in Fig. 3. The steps are as follows.

Fig. 3
figure 3

Algorithm flow chart

  • Step 1: Set initial values.

  • Step 2: MO agent makes market clearing, generation schedule.

  • Step 3: MO agent determines MCP.

  • Step 4: ADN agent gets MCP, makes the optimal dispatch of DGs and calculates bid volume and power of each DG.

  • Step 5: DG agent checks the operating security constraints. If constraints are satisfied, turn to Step 6. If not, update DG operating conditions according to (35)-(36) and go back to Step 4.

If the power output constraints of DGs, namely power index \(P_{DG}^{k,t}\), are violated, update \(P_{DG}^{k,t}\) in the ADN agent as follows.

$$P_{DG}^{k,t} { = }\left\{ {\begin{array}{*{20}c} {P_{DG}^{k,\text{max}} } & {P_{DG}^{k,t} { > }P_{DG}^{k,\text{max}} } \\ {P_{DG}^{k,\text{min}} } & {P_{DG}^{k,t} { < }P_{DG}^{k,\text{min}} } \\ \end{array} } \right.$$
(35)

If SOC constraints of ES agents, namely SOC index \(SoC^{t}\), are violated, update \(P_{c}^{t}\) and \(P_{d}^{t}\) as follows.

$$\left\{ {\begin{array}{*{20}c} {P_{c}^{t} {\text{ = min}}\left( {\frac{{SoC_{\hbox{max} } - SoC^{t - 1} }}{{\eta_{c} }},P_{c,\hbox{max} } } \right)} & {SoC^{t} \ge SoC_{\hbox{max} } } \\ {P_{d}^{t} {\text{ = min}}\left\{ {\eta_{d} \left( {SoC^{t - 1} - SoC_{\hbox{min} } } \right),P_{d,\hbox{max} } } \right\}} & {SoC^{t} \le SoC_{\hbox{min} } } \\ \end{array} } \right.$$
(36)
  • Step 6: ADN agent determines the bid volume \(P_{ADN}^{l,t,w}\).

  • Step 7: ADN agent checks whether the iteration constraint in (37) is satisfied, that is, power difference index \(\left| {P_{ADN}^{l,t,w} - P_{ADN}^{l,t,w - 1} } \right|\). Stop if the iteration is converged. Otherwise update the bid volume of ADNs in (24) and go back to Step 2.

    $$\left| {P_{ADN}^{l,t,w} - P_{ADN}^{l,t,w - 1} } \right| \le \varepsilon$$
    (37)

    where \(\varepsilon\) is the iteration error.

4 Case study

In this paper, a system with four suppliers, three buyers and four ADNs is applied to test the performance of proposed model. 24-hour reference load, wind speeds, solar outputs and heat demand are given in Table 1. The bidding information of suppliers and buyers is given in Table 2. ADN1 has two DGs which are CHP and Gas turbine generator (GT). ADN2 includes 3 DGs which are WT, ES and GT. ADN3 consists of 3 DGs which are PV, ES and GT. ADN4 has two DGs which are HT and GT. ADN1 and ADN4 have the same topologies and parameters of networks while ADN1 and ADN4 are the same. The topologies  of four ADNs are shown in Fig. 4 and Fig. 5. Parameters of networks and DGs for 4 ADNs are given in Tables 34, and 5. The parameters of WT are set as follows: \(v_{r} = 10.5\), \(v_{ci} { = }3\), \(v_{co} { = }25\). In addition, the generation costs of WT and PV are not included in total costs. Heat-power ratio is 0.9. The load ratio of four ADNs is \(\frac{1}{2}:\frac{1}{6}:\frac{1}{6}:\frac{1}{6}\). Rated capacity of ES is 20 MWh. The maximum permissible values of charging and discharging power are 2 MW. The operating cost of ES is 0.08.

Table 1 24-hour base load, wind speed, solar output and heat demand
Table 2 Bidding information of suppliers and buyers
Fig. 4
figure 4

System topology for ADN1 (ADN4)

Table 3 Network data for ADN1 (ADN4)
Table 4 Network data for ADN2 (ADN3)
Table 5 DG data in ADN
Fig. 5
figure 5

System topology for ADN2 (ADN3)

The convergence error is set to 0.001. MCP and the tie-line power of ADN1 at 17:00 in each iteration is shown in Fig. 6. Figure 7 reveals the convergence performances of social welfare and cost of ADNs. In the first iteration, MO predicts the load amount of ADNs based on historical data and determines a MCP that is higher than the DG operating cost in ADNs. So the output of DGs in ADNs increases, resulting in the decrease of ADN bid volume. Meanwhile, high MCP leads to high ADN cost. The low ADN bid volume lead to a smaller MCP in the second iteration. So ADN bid volume and MCP can affect each other. With repeated iteration, ADN bid volume changes smaller and smaller. After 13 iterations, the convergence is reached.

Fig. 6
figure 6

MCP and power exchange between MO and ADG1 at 17:00

Fig. 7
figure 7

Convergence performances of social welfare and cost of ADNs

Figure 8 depicts the power output of DGs in ADN1 in a day. CHP always operates with full capacity with low cost. Even though the MCP is high in peak load hours between 15:00 and 18:00, the tie-line power exchange increases because of the high cost of DGs in ADN1.

Fig. 8
figure 8

Power output of DGs in ADN1

We consider 4 cases to verify the feasibility of the model. Case 1 is the coordinated schedule in this paper. Case 2 and Case 3 are cases without interaction between ADNs and MO. The predicted MCP in Case 2 and Case 3 is 0.5 times and 1.5 times of case1, respectively. Case 4 is the centralized schedule without ADNs. Table 6 shows the cost and revenue under different cases. From this table, we can see that total cost of ADNs in the three cases without interaction between ADNs and MO is higher than that in Case 1. The volume of power purchased from main grid is the best in the coordinated schedule. No matter more or less the volume is, the cost of ADNs will increase. The cost of per MW in Case 1 is higher than that in Case 4. For the social welfare, it appears on the opposite situation. This means that the centralized schedule can is more economic than the decentralized MAS model and the cost of ADNs is higher. As is mentioned before, the interest of the ADN operators decreases in Case 4 and MO operators can’t dispatch DGs in the ADNs in practice.

Table 6 Cost and revenue under different cases

As a kind of important DERs, energy storage equipment will have a certain impact on the grid scheduling. In order to discuss the influence of energy storage equipment on the dispatch of ADNs, examples with and without ESs are given.

Table 7 gives the cost of ADNs with and without energy storage. The costs of both ADN2 and ADN3 with ES are reduced respectively compared with those without ESs. This is because the energy storage device charges in off-peak hours when the MCP is low and discharges in peak hours when the MCP is high, which reduces the cost of the distribution network. The costs of ADN1 and ADN4 are also changed in the two cases. The usage of ESs affects the bid volumes of ADN2 and ADN3, which makes the MCP different as well as the fees of purchasing power from the main grid in ADN1 and ADN4. In general, the total cost of the distribution network is reduced due to the influence of load shift of energy storage equipment, which reduces the MCP in peak hours and avoids the start and stop of several units in off-peak hours.

Table 7 Cost of ADN with and without ESs

24-hour charging and discharging state of ES in ADN2 is given in Fig. 9. Negative value denotes charging state and positive value denotes discharging state. For ADN2, it can be seen from the Figure 6 that the battery is charged between 1:00 and 7:00 in off-peak hours and discharged between 14:00 and 18:00 in peak hours, which can makes load curve become smoother.

Fig. 9
figure 9

Charging and discharging state of ES in ADN2

As an important factor to limit the energy interaction between distribution and transmission network, tie-line power transmission limit will affect the dispatch of generation scheduling. Relationship between cost, social welfare and transmission power limit in ADN3 is shown in Fig. 10. From the figure, it can be seen that with the tie-line power cap decreasing, the cost of ADN3 increase and social welfare decreases. This is due to that distribution network cannot use power from the main grid with low cost and can only dispatch units of high cost in ADN3 to meet the load demand.

Fig. 10
figure 10

Relationship between cost, social welfare and power limit

5 Conclusion

Due to the physical connection between ADNs and the main grid, the dispatch of them is a process of mutual influence. Under the smart grid environment, we propose a coordinated scheduling model of power system with ADNs based on multi-agent system. The process of market clearing in a bilateral electricity market incorporates the participation of ADNs while the dispatch of ADN is the generation schedule of DGs considering the impact of MCP. The main grid and ADNs affect each other through bid volume and MCP. The optimal solution of the whole system is obtained by multiple interactions between them. In this paper, we select a system with five suppliers, two buyers and four ADNs to verify the rationality of the algorithm compared with the schedule without interaction between ADNs and the main grid. Based on the analysis of ES and tie-line power limit, it can be known that the transmission power limit of tie-line is one of the important factors that affect the operating cost of ADNs. The usage of ES can reduce the cost of ADNs. Multi-energy complementary and coordinated dispatch can increase the overall interests of ADNs.