1 Introduction

With the increase of energy crisis and environmental pollution, renewable energy has become the focus of current research because of its inexhaustible characteristics and environmental friendliness [1,2,3]. However, the output power of renewable energy has significant randomness and intermittency [4]. With the increasing penetration of renewable energy in the power grid, the problems such as the voltage fluctuation, the unreliability of power supply (PS), and the inadequate utilization cannot be ignored [5, 6].

It is showed that the coordination among source, network, load and storage can effectively improve the consumption rate of renewable energy and reduce the operation cost and network loss of the grid [7]. The operation economy and the comfort level of occupants are considered at the same time for a residential building through the synergetic optimized dispatch of sources, loads, and storage devices in [8]. It is found that the coordination of energy storage systems, incentive-based and price-based demand responses has a significant effect on the economy of microgrid in [9]. Demand side response (DSR) can increase the consumption rate of renewable energy through load adjustment, and achieve a win–win situation between the power grid and the consumers [10,11,12,13]. Considering the uncertainty of wind energy, the effects of allowing large, price-responsive consumers to provide reserves in a power system with high penetration of wind energy are discussed in [14].

Microgrid includes distributed generations (DGs), energy storage (ES) devices, loads, together with power electronic devices, which can realize the efficient utilization of renewable energy through the unified optimized dispatch of DGs [15,16,17,18]. The optimal operation of microgrid is the focus and difficulty of current research [19,20,21]. Taking the operation cost of microgrid as the optimization objective, the chaotic binary particle swarm optimization is adopted to solve the established mathematical model in [22]. Based on the chance constrained programming, a new probabilistic optimization framework is developed to optimize the operation cost of microgrid in [23]. A hierarchical optimization strategy is proposed to improve the automation level of DGs in [24]. Hybrid AC/DC microgrid integrates the advantages of AC microgrid and DC microgrid and its power supply forms are more flexible and diverse, which can satisfy various load demands at the same time. The optimization problem of hybrid AC/DC microgrid has become a research hotspot and difficulty in related fields [25,26,27].

Current research mainly takes the efficient utilization of renewable energy or economic operation of hybrid AC/DC microgrid as the optimal objectives. In this paper, these two optimal objectives are both considered and a multi-objective optimal operation method of hybrid AC/DC microgrid considering source-network-load coordination is proposed. The mathematical model of hybrid AC/DC microgrid is a multi-objective, multi-constraint and nonlinear model which needs a good solving method. Finding a new algorithm or improving the existing algorithms is one of the research topics currently [28,29,30]. An algorithm based on the iterative reweighted l1–norm approximation is developed in [31] that involves solving a sequence of semidefinite programs. The simulation shows that the algorithm has a shorter running time and returns a solution with a smaller gap from the global optimal solution. In order to solve the optimal power routing problem in clusters of DC microgrids, a novel cloud-based approach is proposed and its effectiveness has been verified in [32]. Memetic algorithm (MA) has the double search mechanisms, i.e., local search and global search. Compared with the conventional algorithms, MA has a significant advantage in the convergence precision [33], which is adopted in this paper. To sum up, the main contributions of this paper are as follows.

  1. 1)

    Under the promise of meeting the constraint of customer satisfaction, the incentive-based DSR and price-based DSR are both considered on the load side. Firstly, the load is shifted to close to the output power curve of renewable energy considering the incentive-based DSR. Next, according to the time-of-use (TOU) price of the power grid, the price-based DSR is considered in the order of the peak price time to the valley price time to optimize the operation costs of hybrid AC/DC microgrid. It can improve the consumption rate of renewable energy and reduce the operation costs of hybrid AC/DC microgrid to a large extent.

  2. 2)

    On the source side, the renewable energy is given priority to supply the load whose generation cost is not considered. While the output power of renewable energy in one area has not reached the upper limitation and the load demand in the other area is not satisfied, the complementary utilization of renewable energy is achieved between AC area and DC area. On the network side, under the premise of meeting the capacity constraint of the point of common coupling (PCC), the hybrid AC/DC microgrids can purchase the electricity from the power grid at the TOU price. When the load demands of AC area and DC area are both satisfied, the surplus power of renewable energy can be sold to the power grid if the unit generation cost of renewable energy is smaller than the selling price, which can achieve a win–win situation between the power grid and hybrid AC/DC microgrids.

  3. 3)

    In view of the existing disadvantages of the basic MA, MA is improved in the process of initialization, distribution of the ordinary individuals, local search and global search. The improved MA (IMA) is applied to solve the established mathematical model. The correctness and effectiveness of the proposed optimal operation method and the IMA are verified through a practical case. The simulation results show that the convergence time is only 10.22 s and the IMA can find the optimal solution quickly and accurately. The consumption rate of renewable energy can reach up to 100%. Comparing with the calculation results of hybrid AC/DC microgrids without considering source-network-load coordination, the cost of hybrid AC/DC microgrids decreases from $1533.7 to $1442.4, which further proves the feasibility of the IMA.

2 Mathematical model of optimal operation

2.1 Source-network-load coordination

2.1.1 Load side

  1. 1)

    Shift load for consuming renewable energy

In order to avoid the abandonment of renewable energy, the load demand curves would be adjusted according to the prediction data of renewable energy considering the DSR based on the incentive and the price. The value of shift-in load is determined by the difference between the output power of renewable energy and the load demand. The specific process is shown as follows:

$$L_{\text{yr}} (t) \, = \left\{ {\begin{array}{*{20}l} {P_{\text{r}} (t) - L(t)} \hfill & {P_{\text{r}} (t) > L(t)} \hfill \\ 0 \hfill & {P_{\text{r}} (t) \le L(t)} \hfill \\ \end{array} } \right.$$
(1)
$$L_{\text{yc1}} (t) = \left\{ {\begin{array}{*{20}l} {\hbox{min} (L_{\text{py}} (t),} \hfill & {\sum\limits_{t = 1}^{T} {L_{\text{yr}} (t)} - \sum\limits_{tt = 0}^{t - 1} {L_{\text{yc1}} (tt)} )\;\;\;\;L(t) > P_{\text{r}} (t) \, } \hfill \\ 0 \hfill & {L(t) \le P_{\text{r}} (t)} \hfill \\ \end{array} } \right.$$
(2)
$$LYR(t) \, = \left\{ {\begin{array}{*{20}l} {P_{\text{r}} (t)} \hfill & {P_{\text{r}} (t) > L(t)} \hfill \\ 0 \hfill & {P_{\text{r}} (t) \le L(t)} \hfill \\ \end{array} } \right.$$
(3)
$$L_{\text{yr1}} (t) = \hbox{min} (L_{\text{yr}} (t),\;\;P_{\text{r}} (t)/\sum\limits_{t = 1}^{T} {LYR(t)} \times \sum\limits_{t = 1}^{T} {L_{\text{yc1}} (t)} )$$
(4)
$$L_{\text{jl}} (t) = \left\{ {\begin{array}{*{20}l} {L(t) - L_{\text{yc1}} (t)} \hfill & {L(t) > P_{\text{r}} (t)} \hfill \\ {L_{\text{yr1}} (t) + L(t)} \hfill & {L(t) \le P_{\text{r}} (t)} \hfill \\ \end{array} } \right.$$
(5)

where \(L(t)\) is the initial value of load demand; \(L_{\text{yr}} (t)\) is the maximum shift-in load at time t; \(L_{\text{yc1}} (t)\) and \(L_{\text{yr1}} (t)\) is the shift-out load and the shift-in load at time t, \(L_{\text{yc1}} (0){ = }0\); \(L_{\text{py}} (t)\) is the shiftable load at time t; \(P_{\text{r}} (t)\) is the predictive output power of renewable energy at time t; \(T\) is the optimal cycle; \(LYR(t)\) is the total power of renewable energy while the its output power is bigger than the load; and \(L_{\text{jl}} (t)\) is the value of load at time t after shifting the load.

  1. 2)

    Shift load for reducing running cost of hybrid AC/DC microgrid

In order to reduce the cost of hybrid AC/DC microgrid, the load curves would be adjusted considering the DSR based on price. Under the promise of guaranteeing the consumption rate of renewable energy and meeting the constraints of the supply-load balance and the customer satisfaction degree, the load would be shifted according to the TOU price of the power grid.

$$L_{\text{jg}} (t) = L_{\text{jl}} (t) - L_{\text{yc2}} (t) + L_{\text{yr2}} (t)$$
(6)

where \(L_{\text{jg}} (t)\) represents the load demand value at time t considering the DSR based on price; \(L_{\text{yc2}} (t)\) and \(L_{\text{yr2}} (t)\) represent the shift-out load and shift-in load at time t.

2.1.2 Source side

This paper studies a hybrid AC/DC microgrid which contains wind turbine (WT) and diesel generator (DEG) in AC area, and photovoltaics (PV) and ES in DC area. In the source side, the renewable energy is given priority to supply the load. When the renewable energy is difficult to meet the load demand, the output of other power sources is determined by the cost functions. The output power of WT and PV is mainly determined by the weather. The statistical data show that the wind speed obeys the Weibull distribution and the intensity of illumination obeys the Beta distribution. Through the complementary power supply of renewable energy between AC area and DC area, it can make up for the problems that the peak output power of WT and PV cannot be completely consumed and the load demand is difficult to meet when the output power of WT and PV is close to 0, which can effectively increase the consumption rate of renewable energy.

If \((R_{\text{AC}} (t) > L_{\text{AC}} (t)) \cap (R_{\text{DC}} (t) < L_{\text{DC}} (t))\),

$$\left\{ {\begin{array}{*{20}l} {R_{{{\text{AC}} \to {\text{DC}}}} (t) = \hbox{min} (R_{\text{AC}} (t) - L_{\text{AC}} (t),L_{\text{DC}} (t) - R_{\text{DC}} (t))} \hfill \\ {R_{{{\text{DC}} \to {\text{AC}}}} (t) = 0} \hfill \\ {P_{\text{RAC}} (t) = L_{\text{AC}} (t)} \hfill \\ {P_{\text{RDC}} (t) = R_{\text{DC}} (t)} \hfill \\ \end{array} } \right.$$
(7)

If \((R_{\text{AC}} (t) \ge L_{\text{AC}} (t)) \cap (R_{\text{DC}} (t) \ge L_{\text{DC}} (t))\),

$$\left\{ {\begin{array}{*{20}l} {R_{{{\text{AC}} \to {\text{DC}}}} (t) = 0} \hfill \\ {R_{{{\text{DC}} \to {\text{AC}}}} (t) = 0} \hfill \\ {P_{\text{RAC}} (t) = L_{\text{AC}} (t)} \hfill \\ {P_{\text{RDC}} (t) = L_{\text{DC}} (t)} \hfill \\ \end{array} } \right.$$
(8)

If \((R_{\text{AC}} (t) < L_{\text{AC}} (t)) \cap (R_{\text{DC}} (t) > L_{\text{DC}} (t))\),

$$\left\{ {\begin{array}{*{20}l} {R_{{{\text{AC}} \to {\text{DC}}}} (t) = 0} \hfill \\ {R_{{{\text{DC}} \to {\text{AC}}}} (t) = \hbox{min} (L_{\text{AC}} (t) - R_{\text{AC}} (t),R_{\text{DC}} (t) - L_{\text{DC}} (t))} \hfill \\ {P_{\text{RAC}} (t) = R_{\text{AC}} (t)} \hfill \\ {P_{\text{RDC}} (t) = L_{\text{DC}} (t)} \hfill \\ \end{array} } \right.$$
(9)

If \((R_{\text{AC}} (t) \le L_{\text{AC}} (t)) \cap (R_{\text{DC}} (t) \le L_{\text{DC}} (t))\),

$$\left\{ {\begin{array}{*{20}l} {R_{{{\text{AC}} \to {\text{DC}}}} (t) = 0} \hfill \\ {R_{{{\text{DC}} \to {\text{AC}}}} (t) = 0} \hfill \\ {P_{\text{RAC}} (t) = R_{\text{AC}} (t)} \hfill \\ {P_{\text{RDC}} (t) = R_{\text{DC}} (t)} \hfill \\ \end{array} } \right.$$
(10)

where \(R_{\text{AC}} (t)\) and \(R_{\text{DC}} (t)\) represent the maximum output power of the renewable energy in AC area and DC area; \(L_{\text{AC}} (t)\) and \(L_{\text{DC}} (t)\) represent the load in AC area and DC area considering the DSR; \(R_{{{\text{AC}} \to {\text{DC}}}} (t)\) represents the output power of renewable energy in AC area flowing from AC area to DC area; \(R_{{{\text{DC}} \to {\text{AC}}}} (t)\) represents the output power of renewable energy in DC area flowing from DC area to AC area; \(P_{\text{RAC}} (t)\) represents the output power of the renewable energy in AC area which supplies the load in AC area; and \(P_{\text{RDC}} (t)\) represents the output power of the renewable energy in DC area which supplies the load in DC area.

2.1.3 Network side

The hybrid AC/DC microgrid in this paper is connected with the power grid which is equivalent to a big power supply for the achievement of supply-load balance. Under the premise of meeting the transmission capacity constraint of the PCC, the hybrid AC/DC microgrid can purchase electricity from the power grid at the TOU price, and the cost of purchasing electricity can be calculated as:

$$F_{\text{grid}} = \sum\limits_{t = 1}^{T} {\varepsilon (t)P_{\text{grid}} (t)}$$
(11)

where \(F_{\text{grid}}\) represents the costs of purchasing electricity from the power grid; \(\varepsilon (t)\) represents the TOU price; and \(P_{\text{grid}} (t)\) represents the purchased electricity.

When the internal load demand is met in the hybrid AC/DC microgrid, the surplus power of renewable energy can be sold to the power grid if the unit generation cost of renewable energy is less than the selling price.

$$F_{\text{s}} = \sum\limits_{t = 1}^{T} {(\beta (t) - \chi (t))R_{\text{s}} (t)}$$
(12)

where \(F_{\text{s}}\) is the profits of selling the surplus power of renewable energy to the power grid; \(\beta (t)\) is the selling price at time t; \(\chi (t)\) is the unit generating cost of renewable energy; and \(R_{\text{s}} (t)\) is the surplus power sold to the grid.

To sum up, according to the proposed optimal operation method of hybrid AC/DC microgrid, the source-network-load coordination can be shown as Fig. 1.

Fig. 1
figure 1

Source-network-load coordination

2.2 Optimization objectives

2.2.1 Operation cost

  1. 1)

    Initial construction cost \(F_{\text{c}}\):

    $$F_{\text{c}} = \sum\limits_{t = 1}^{T} {\sum\limits_{i = 1}^{N} {\frac{{k_{{{\text{hs,}}i}} F_{{{\text{gd,}}i}} (t)}}{8760}} }$$
    (13)

    where N is the number of power supplies; \(k_{{{\text{hs,}}i}}\) is the investment coefficient of power supply \(i\), which is determined by the service life of the power supply; and \(F_{{{\text{gd,}}i}} (t)\) is the fixed investment costs of power supply \(i\).

  2. 2)

    Operation and maintenance cost \(F_{\text{om}}\):

    $$F_{\text{om}} = \sum\limits_{t = 1}^{T} {\sum\limits_{i = 1}^{N} {\gamma_{i} P_{i} (t)} }$$
    (14)

    where \(\gamma_{i}\) is the operation and maintenance coefficient of power supply \(i\); and \(P_{i} (t)\) is the output power of power supply \(i\).

  3. 3)

    Fuel cost \(F_{\text{fuel}}\):

    $$F_{\text{fuel}} = \sum\limits_{t = 1}^{T} {a + bP_{\text{DEG}} (t) + cP_{\text{DEG}} (t)^{2} }$$
    (15)

    where a, b, c are the cost coefficients of DEG; and \(P_{\text{DEG}} (t)\) is the output power of DEG.

  4. 4)

    Environmental cost \(F_{\text{en}}\):

    $$F_{\text{en}} = \sum\limits_{t = 1}^{T} {\tau_{e} E_{e} P_{i} (t)}$$
    (16)

    where \(\tau_{e}\) represents the emission coefficient of the pollution \(e\); and \(E_{e}\) represents the emission factor of the pollution \(e\).

  5. 5)

    Subsidy cost to the customers who adjust the load demand curve \(F_{\text{py}}\):

    $$F_{\text{py}} = \alpha \sum\limits_{t = 1}^{T} {\frac{{\left| {L(t) - L_{\text{jg}} (t)} \right|}}{2}}$$
    (17)

    where \(\alpha\) represents the subsidy coefficient.

  6. 6)

    Renewable energy generating subsidies \(F_{\text{r}}\).

    $$\begin{aligned} P_{\text{R}} (t) = & P_{\text{RAC}} (t) + P_{\text{RDC}} (t) + R_{{{\text{AC}} \to {\text{DC}}}} (t) \\ & + R_{{{\text{DC}} \to {\text{AC}}}} (t) + R_{\text{s}} (t) \\ \end{aligned}$$
    (18)
    $$F_{\text{r}} = \sum\limits_{t = 1}^{T} {\delta (t)P_{\text{R}} (t)}$$
    (19)

    where \(P_{\text{R}} (t)\) is the output power of renewable energy; and \(\delta (t)\) is the unit generating subsidy price of renewable energy.

In summary, the total costs of hybrid AC/DC microgrid \(F\) can be expressed as follows:

$$F = F_{\text{c}} + F_{\text{om}} + F_{\text{fuel}} + F_{\text{en}} + F_{\text{grid}} + F_{\text{py}} - F_{\text{r}} - F_{\text{s}}$$
(20)

2.2.2 Consumption rate of renewable energy

$$R(t) = R_{\text{AC}} (t) + R_{\text{DC}} (t)$$
(21)
$$K = \frac{{\sum\limits_{t = 1}^{T} {P_{\text{R}} (t)} }}{{\sum\limits_{t = 1}^{T} {R(t)} }}$$
(22)

where \(R(t)\) is the maximum output power of renewable energy in the hybrid AC/DC microgrid at time t; and K is the consumption rate of renewable energy, which is the ratio of the actual output power to the maximum output power of renewable energy in the hybrid AC/DC microgrid.

The operation cost of hybrid AC/DC microgrid and the consumption rate of renewable energy are both the optimal objectives in this paper. The latter has a higher optimal priority which means the operation economy of hybrid AC/DC microgrid would be sacrificed if the consumption rate of renewable energy is influenced. While the related technologies of renewable energy become more and more mature and the consumption rate of renewable energy has met the requirements in the future, the operation economy of hybrid AC/DC microgrid can be taken as the main optimization object.

2.3 Constraints

  1. 1)

    Supply-load balance constraints:

    $$\left\{ {\begin{array}{*{20}l} {\sum\limits_{t = 1}^{T} {P_{\text{RAC}} (t) + P_{\text{DEG}} (t) + R_{{{\text{DC}} \to {\text{AC}}}} (t) + P_{\text{gridA}} (t) = L_{\text{AC}} (t)} } \hfill \\ {\sum\limits_{t = 1}^{T} {P_{\text{RDC}} (t) + P_{\text{ES}} (t) + R_{{{\text{AC}} \to {\text{DC}}}} (t) + P_{\text{gridD}} (t) = L_{\text{DC}} (t)} } \hfill \\ \end{array} } \right.$$
    (23)
  2. 2)

    Capacity constraint of the PCC:

    $$\left| {P_{\text{G}} (t)} \right| \le P_{\text{G,max}}$$
    (24)
  3. 3)

    Constraints of ES:

    $$\left\{ {\begin{array}{*{20}l} {SOC(t + 1) = SOC(t) - (\eta_{\text{ES}} P_{\text{ES}} (t))/Q_{\text{ES,max}} (t)} \hfill \\ {SOC_{\hbox{min} } \le SOC(t) \le SOC_{\hbox{max} } } \hfill \\ {SOC_{\text{start}} = SOC_{\text{end}} } \hfill \\ \end{array} } \right.$$
    (25)
  4. 4)

    Changing range constraint of each power supply:

    $$P_{i,\hbox{min} } \le P_{i} (t) \le P_{i,\hbox{max} }$$
    (26)
  5. 5)

    Constraints of shifting load:

    $$\left\{ {\begin{array}{*{20}l} {\sum\limits_{t = 1}^{T} {L_{\text{yc1}} (t)} = \sum\limits_{t = 1}^{T} {L_{\text{yr1}} (t)} } \hfill \\ {\sum\limits_{t = 1}^{T} {L_{\text{yc2}} (t)} = \sum\limits_{t = 1}^{T} {L_{\text{yr2}} (t)} } \hfill \\ {\lambda = 1 - \sum\limits_{t = 1}^{T} {\left| {L(t) - L_{\text{jg}} (t)} \right|} /\sum\limits_{t = 1}^{T} {L(t)} \;\;\;\;\;\;\lambda \ge \lambda_{\hbox{min} } } \hfill \\ \end{array} } \right.$$
    (27)

    where \(P_{\text{gridA}} (t)\) and \(P_{\text{gridD}} (t)\) are the electricity purchased from the power grid in AC area and DC area; \(P_{\text{G}} (t)\) and \(P_{\text{G,max}}\) are the transmitting power and capacity of the PCC; \(SOC(t)\) is the state of charge (SOC) of ES at time t; \(P_{\text{ES}} (t)\) is the output power of ES, which is positive while discharging and is negative while charging; \(\eta_{\text{ES}}\) is the charging and discharging efficiency of ES; \(Q_{\text{ES,max}} (t)\) is the capacity of ES; \(SOC_{\hbox{min} }\) and \(SOC_{\hbox{max} }\) are the range of SOC; \(SOC_{\text{start}}\) and \(SOC_{\text{end}}\) are the initial value and the final value of SOC; \(P_{i,\hbox{min} }\) and \(P_{i,\hbox{max} }\) are the range of output power of the power supply \(i\); \(\lambda\) is the satisfaction degree of customers, which is decreased with the increase of shifting load; and \(\lambda_{\hbox{min} }\) is the lower limitation of \(\lambda\).

To sum up, a big picture schematic overview of the paper can be concluded for the sake of clarification. Figure 2 shows the optimization model of hybrid AC/DC microgrid. The IMA for solving the optimization model would be introduced in the next section.

Fig. 2
figure 2

Optimization model of hybrid AC/DC microgrid

3 MA

3.1 Basic MA

Pablo Moscato imitated the way of biological evolution in nature and applied it in cultural evolution. In 1989, he first proposed the MA [33]. The feature of MA is that its iterative process can be divided into local search and global search, which guarantees the convergence accuracy. The specific iterative process of MA is shown as follows.

  1. 1)

    Initialization of MA

    $$x = x_{\hbox{min} } + rand(0,1) \times (x_{\hbox{max} } - x_{\hbox{min} } )$$
    (28)

    where xmin and xmax are the range of the individual x; and rand(0,1) is a random number which obeys uniform distribution and values in [0, 1].

After the initialization, the population containing \(M\) individuals is generated and all initial individuals are sorted according to their fitness values. The individuals from 1 to \(M_{\text{agent}}\) in the sequence are the agents. The remaining individuals are the ordinary individuals and the number of the ordinary individuals is \(M_{\text{public}}\). All ordinary individuals would be distributed to the agents in the subsequent steps.

  1. 2)

    Distribution of the ordinary individuals

The number of the ordinary individuals which belong to the agent a is determined by the relative strength and the strength of each agent.

$$S_{a} = \hbox{max} \{ s_{b} \} - s_{a} \quad b = 1,2, \cdots ,M_{\text{agent}}$$
(29)
$$p_{a} = \frac{{S_{a} }}{{\sum\limits_{a = 1}^{{M_{\text{agent}} }} {S_{a} } }}$$
(30)
$$M_{a,p} = {\text{round}}(p_{a} M_{\text{public}} )$$
(31)

where sa and sb are the fitness values of the agent a and b, respectively; \(S_{a}\) and pa are the relative strength and the strength of the agent a, respectively; and \(M_{a,p}\) is the number of the ordinary individuals which belong to the agent a.

  1. 3)

    Local search

In the local search process, the ordinary individuals would move towards their agents.

$$x_{b} (De + 1) = x_{b} (De) + \gamma d\;\;$$
(32)

where \(x_{b} (De)\) is the position of the ordinary individual b; \(De\) is the current iteration number; \(\gamma\) is the moving coefficient; d is the distance between the ordinary individual b and its agent.

In order to increase the diversity of MA, the population updating is performed in each iteration process. There are Ma,pr individuals which need to be regenerated among the ordinary individuals owned by the agent a.

$$M_{a,pr} = {\text{round}}(qM_{a,p} )$$
(33)

where \(q\) is the updating proportion.

  1. 4)

    Global search

After the local search, it needs to reorder the population and select new agents. In the global search process, the individual with the worst fitness value among all individuals would be taken as the competed goal by each agent. The specific competition process is shown as follows:

$$TS_{a} = S_{a} + \xi \frac{{\sum\limits_{b = 1}^{{M_{a,p} }} {w_{b} } }}{{M_{a,p} }}$$
(34)
$$MTS_{a} = \hbox{max} \{ TS_{b} \} - TS_{a} \;\;\;\;\;\;$$
(35)

where \(TS_{a}\) and \(MTS_{a}\) are the total strength and the total relative strength of the agent \(a\), respectively; ξ is the weight value of the ordinary individuals; and wb is the fitness value of the ordinary individual \(b\) which belongs to the agent \(a\).

$$cp_{a} = \left| {\frac{{MTS_{a} }}{{\sum\limits_{b = 1}^{{M_{\text{agent}} }} {MTS_{b} } }}} \right|$$
(36)
$$\varvec{P} = [cp_{1} \, cp_{2} \, \cdots \, cp_{{M_{\text{agent}} }} ]$$
(37)

where \(cp_{a}\) is the competition probability of the agent a; and P is the competition probability vector of all agents.

Let R be a random vector of the same dimension as P, and each element of R is valued in [0, 1]. The competed individual would be obtained by the agent corresponding to the biggest element in the vector which is the difference between P and R.

In order to increase the competitiveness of the agents, they would cooperate with each other. If the distance between any two agents is shorter than the cooperation distance D, the two agents would be merged, and all the ordinary individuals of these two agents would belong to the agent with a bigger total strength.

$$D = norm(x_{\hbox{max} } - x_{\hbox{min} } ) \times u$$
(38)

where u is the cooperation coefficient.

  1. 5)

    End of MA

After the local search and global search, the agent which has no ordinary individuals would be eliminated. When there is only one agent in the algorithm, the agent is the solution of the objective function. MA would stop when the algorithm meets the requirement of convergence accuracy or reaches the maximum number of iterations.

3.2 IMA

The specific iterative process of IMA is shown as follows.

  1. 1)

    Initialization of IMA

The initial individuals are generated randomly in MA and the difference between the individuals is uncertain and large, which affects the convergence speed and accuracy. In the IMA, the initialization process would be circulated O times and the total number of individuals is \(O \times M\). These individuals are sorted according to their fitness values. The individuals from 1 to \(M_{\text{agent}}\) in the sequence are the agents. The individuals from \(M_{\text{agent}} + 1\) to \(M_{\text{public}}\) are the ordinary individuals. The rest individuals of the population would be eliminated. It is equivalent to screening a group of superior in the population to improve the convergence performance of the algorithm.

  1. 2)

    Distribution of the ordinary individuals

According to the process of the distribution of the ordinary individuals, it can be seen that the relative strength S and the strength p of the agent with the best fitness value are 0 in the MA. The number of ordinary individuals belonging to the agent is 0 and the agent would be eliminated, which may influence the convergence accuracy. In this paper, the calculating process of the relative strength is improved as follows:

$$S_{a} = \tau \times \hbox{max} \{ s_{b} \} - s_{a} \,$$
(39)

where \(\tau\) is a constant which is greater than 1. Experiments show that the algorithm performance is great when the value of \(\tau\) is equal to 1.3.

  1. 3)

    Local search

In the process of local search, the moving distance of each ordinary individual is the distance between themselves and their agents. Inspired by the particle swarm optimization (PSO) [34], the moving distance is improved that the distance between the ordinary individuals and their agents, and the distance between the ordinary individuals and the agent with the best fitness value among all agents are both considered.

$$x_{b} (De + 1) = x_{b} (De) + r_{1} \gamma_{1} d_{1} + r_{2} \gamma_{2} d_{2}$$
(40)

where \(r_{1}\) and \(r_{ 2}\) are two random numbers which obey uniform distribution and value in [0, 1]; \(\gamma_{1}\) and \(\gamma_{2}\) are the local moving coefficient and the global moving coefficient; \(d_{1}\) is the distance between the ordinary individuals and their agents; and \(d_{2}\) is the distance between the ordinary individuals and the agent with the best fitness value among all agents.

  1. 4)

    Global search

In the MA, the global search is divided into two parts: competition and cooperation. The cooperation coefficient between agents is a constant. After several experiments, it is found that the value of cooperation coefficient has great influence on the convergence speed of the algorithm. Summing up the experimental rule, the cooperation coefficient is concluded as follows:

$$u = \sin \left( {\frac{\pi }{2} \times \frac{De}{Des}} \right)$$
(41)

where \(Des\) is the total iteration times.

  1. 5)

    End of IMA

3.3 Performance test

In order to test the optimization performance of the IMA, the test function of Rosenbrock is solved by PSO, MA, and IMA, respectively. The function of Rosenbrock is expressed as follows:

$$f = \sum\limits_{i = 1}^{n} {[100(x_{i + 1} - x_{i}^{2} )^{2} + (x_{i} - 1)^{2} ]}$$
(42)

where \(n\) is the dimension of variables with a value of 15.

The variable range is from − 30 to 30. The size of the population is set as 100 and the number of agents is set as 5. The number of iterations is 1000. Each algorithm runs 10 times and the average running results are shown in Table 1. The convergence situation of each algorithm is shown as Fig. 3.

Table 1 Running results of each algorithm
Fig. 3
figure 3

Convergence situation of each algorithm

From the Table 1 and Fig. 3, it can be seen that IMA and MA have a significant advantage over PSO in the convergence precision. After the improvement in the process of the initialization, the distribution of the ordinary individuals, the local search and the global search, the convergence performance of the algorithm is greatly improved. The convergence accuracy and convergence speed of IMA can be met at the same time, which has ideal optimization performance. It is verified that IMA has the ability to solve the complex optimization problem, which is suitable to solve the multi-objective, multi-constraint, nonlinear mathematical model established in this paper.

4 Simulation based on engineering data

In this paper, the correctness and feasibility of the proposed optimal operation method are verified based on the data in a hybrid AC/DC microgrid demonstration project. The topological structure of hybrid AC/DC microgrid is shown in Fig. 4. The parameters of each power supply are listed in Table 2.

Fig. 4
figure 4

Topological structure of hybrid AC/DC microgrid

Table 2 Parameters of power supplies

WT is connected to the AC bus through AC/AC convertor. PV is connected to the DC bus through DC/DC convertor. The voltage of WT and PV is changed through the transformers to the same as the voltage level of bus. WT is coupled to the doubly-fed induction generator. TOU price is listed in Appendix A Table A1. Investment coefficients of each PS and cost coefficients of DEG are given in Appendix A Tables A2 and A3. The emission coefficients and emission factors of DEG are listed in Appendix A Table A4. Subsidy coefficient of shifting the load and unit generating subsidy price of renewable energy are respectively equal to 0.03 $/kWh and 0.08 $/kWh. The initial value and the final value of SOC are 0.4 and its range is 0.1–0.9. Figure 5 shows the IMA solution flow chart of the established mathematical model.

Fig. 5
figure 5

Solution flow chart of the mathematical model

Figure 6 shows the load shifting situation in the load side. The first column and the second column of the Fig. 6 respectively show the load shifting situation of AC area and DC area. Figure 6a, b shows the predictive data of the load and renewable energy, and the TOU price of the power grid, which is expressed as GP. Figure 6c, d show the load shifting situation for promoting the consumption rate of renewable energy. Figure 6e, f shows the load shifting situation for reducing the running costs of the hybrid AC/DC microgrid. LAC and LDC represent the AC load curve and DC load curve. SLAC and SLDC respectively represent the shiftable load of AC load and DC load. FLAC and FLDC respectively represent the fixed load of AC load and DC load. From the Fig. 6c, it can be seen that the load is shifted-in when the output power of WT is bigger than the load value. Because of the peak output power of PV during the daytime, the DC load is shifted from night to day in the Fig. 6d for promoting the consumption rate of PV. Considering the DSR based on price, the load shifting both occurs in AC area and DC area in the Fig. 6e, f to decrease the running costs of the hybrid AC/DC microgrid under the premise of guaranteeing the consumption rate of renewable energy.

Fig. 6
figure 6

Load shifting situation in the load side

According to the load shifting results, the output power of each power supply needs to be optimized through solving the optimal operation mathematical model of the hybrid AC/DC microgrid. The running time of the IMA is 10.22 s. Figure 7 shows the output power curves of each power supply in the AC area. Compared the power curves of the load and the renewable energy, it can be seen that the renewable energy generating costs is not considered and the power of renewable energy has the priority to supply the load, which effectively promotes the renewable energy consumption rate. PV is the power supply in DC area, which supplies the AC load. The complementary power supply between AC area and DC area is beneficial to the efficient utilization of renewable energy. Figure 8 shows the power supply curve of the DC area. WT is the power supply in the AC area, which is completely consumed in the AC area. There is no power of WT supplying in the DC area. According to Figs. 7 and 8, it indicates that both the AC area and the DC area try to purchase electricity during the valley price periods and the flat price periods and avoid purchasing electricity during the peak price periods, which can effectively reduce the operating costs of the hybrid AC/DC microgrid. AC area and DC area in the hybrid AC/DC microgrid achieve power flow through bidirectional power convertor (BPC). Figure 9 shows the power flowing through the BPCs. The power flow from AC to DC is positive, and the power flow from DC to AC is negative.

Fig. 7
figure 7

Power output curves of AC area

Fig. 8
figure 8

Power output curves of DC area

Fig. 9
figure 9

Power flowing through the BPCs

According to the above optimization results, the surplus power of the renewable energy during each period can be determined. Comparing the unit generating costs of the renewable energy and the selling price, the surplus power can be sold to the power grid if the former is smaller than the latter. The unit generating cost of renewable energy can be calculated from the cost functions in Section 2. The output power of renewable energy is replaced by 1 kW and supposing that the life span of PV and WT is 15 years. It can be obtained that the unit generating cost of PV is $0.091 and the unit generating cost of WT is $0.063. The example data in this paper are from a demonstration project of hybrid AC/DC microgrid in a certain area of China. The price of surplus electricity is the same as that of local TOU price, which is listed in Appendix A Table A1. The power supplying situation of the renewable energy can be obtained as Fig. 10.

Fig. 10
figure 10

Power output situation of renewable energy

Figure 10a, b shows the power flow situation of WT and PV, respectively. The load demand in the AC area is bigger than or equal to the power of WT at each time, so all output power of WT supplies the load in the AC area. There is no power of WT flowing to the DC area or sold to the power grid in Fig. 10a. From Fig. 10b, it is shown that the power of PV is difficult to be consumed completely in DC area because of its peak output power during the daytime. So there is part of output power of PV supplying the load in the AC area. When all load demand in the hybrid AC/DC microgrid is met, there is still the surplus power of PV. When the unit generation cost of PV is smaller than the selling price, the surplus power of PV is sold to the power grid, which not only improves the consumption rate of PV, but also can reduce the operation cost of the hybrid AC/DC microgrid.

According to the optimization results, it can be calculated that the consumption rate of renewable energy is 100%, and the total cost of the hybrid AC/DC microgrid is $1442.4. Figure 11 is a diagram of the cost distribution situation of the hybrid AC/DC microgrid. From Fig. 11, it can be seen that the initial construction cost of the power supplies and the cost of the electricity from the power grid account for a large proportion of the total running cost of the hybrid AC/DC microgrid. But the amount of the renewable energy generation subsidies can significantly reduce the operation cost of the hybrid AC/DC microgrid.

Fig. 11
figure 11

Operation costs distributed situation

In order to further prove the correctness and effectiveness of the multi-objective optimal operation method of hybrid AC/DC microgrid (Mode A), the IMA is applied to solve the mathematical model of the hybrid AC/DC microgrid without considering source-network-load coordination (Mode B) and the specific values of these cost functions are listed in Table 3. From Table 3, it can be seen that the total operation cost of Mode B is more than that of Mode A. Considering source-network-load coordination in Mode A, the consumption rate of renewable energy obviously increases and the environmental costs are reduced, which is conducive to environmental protection.

Table 3 Calculation results of each cost function

5 Conclusion

In this paper, the multi-objective optimal operation method of hybrid AC/DC microgrid considering source-network-load coordination is proposed to promote the consumption rate of renewable energy and decrease the operation cost of the hybrid AC/DC microgrid. The basic MA is improved and the excellent optimization performance of the IMA is proved through the test function. Compared with the basic MA, it can be seen that the IMA has a shorter running time and more ideal running results. Simulation results show that the incentive-based DSR and the price-based DSR both consider on the load side, the complementary utilization of renewable energy between AC area and DC area, and the electricity trading between the hybrid AC/DC microgrid and the big power grid are beneficial to improve the consumption rate of renewable energy and reduce the total running cost of the hybrid AC/DC microgrid. The convergence time of IMA is only 10.22 s and the consumption rate of renewable energy can reach 100%. Comparing with the calculation results of hybrid AC/DC microgrid without considering source-network-load coordination, the cost of hybrid AC/DC microgrid considering source-network-load coordination is $1442.4, which is reduced by $91.3.

To sum up, it is necessary to consider the source-network-load coordination in the optimization operation of hybrid AC/DC microgrid, which is beneficial to the long-term development of renewable energy. Moreover, a great solving algorithm also has a significant influence on the optimal operation of hybrid AC/DC microgrid. It is the focus of future research to find the better modeling methods and solving methods.