1 Introduction

1.1 Concept and motivation

Despite increasing power demand and numerous challenges of power systems, such as depletion of fossil fuels and global environmental concerns, utilities are obliged to provide high-quality and reliable power supplies with the least cost for their residential and industrial consumers. Due to these challenges, as one of the modern and most effective solutions, renewable energy sources such as solar and wind energy are increasingly integrated into the power systems these days (Abbasi et al. 2020; Shalchi et al. 2020). However, high integration of renewable energy sources causes serious challenges for power systems in different aspects, such as system stability, which in turn dramatically hinder high renewable energy sources penetration into the systems. For increasing renewable energy sources integration and controlling them optimally, several concepts have been developed and introduced so far. Microgrid concept can be named as one of the most well-known and effective solutions for overcoming the problems caused by the high penetration of renewable energy sources into power systems. Simply definition, a microgrid is a group of interconnected loads and distributed energy resources within clearly defined electrical boundaries that acts as a single controllable entity with respect to the grid (Fu et al. 2013). A microgrid can connect to and disconnect from the grid to operate in grid-connected or islanded modes. Generally, a microgrid includes micro-sources, distributed energy resources, such as solar and wind units, energy storage systems, and controllable loads. As a rule, utilities should decrease the generation cost and the emission value as much as possible (Ghaedi et al. 2020; Abbasi et al. 2021). In contrast to the past decades when cost minimization was the only and most important objective for generating electric power, due to global concerns, such as environmental and human health concerns, caused by pollution of power generation, numerous regulations and solutions have recently been introduced to make the utilities able to decrease their harmful emissions, such as toxic gases exhalation, with possible least fuel cost (Krishnamurthy and Tzoneva 2012a). As mentioned above, a microgrid is developed as a small-scale power plant close to communities. It is also operated in two different modes, comprising islanded and grid-connected modes. In the islanded mode, microgrid may be more complicated than that in the grid-connected mode due to not having extra support from external resources (substation). Accordingly, microgrid operation under the islanded mode needs further investigations.

1.2 Literature review

As the economic load dispatch (ELD) implies, it is the scheduling of generation resources by considering an objective function (almost always operational cost) subject to several constraints. Therefore, it is an important problem associated with the optimal operation of microgrids. In terms of ELD, some efforts have been made so far on which a brief review is discussed here. To begin with, the authors of Al-Betar et al. (2022) developed a hybrid approach based on β-hill climbing optimizer and sine cosine algorithm to solve the ELD problem. As revealed from the results of Al-Betar et al. (2022), this hybridization helps to find superior results for some case studies compared with other state-of-the-art methods. Particle swarm optimization algorithm was also modified in Gholami and Dehnavi (2019) to effectively schedule both thermal and renewable resources in an islanded microgrid. From Gholami and Dehnavi (2019), it can be seen that better results can be obtained if an efficient algorithm is developed. ELD considering valve point effects has also been investigated in Gholamghasemi et al. (2019) on the basis of phasor particle swarm optimization. In Najibi and Niknam (2015), dolphin echolocation algorithm was utilized to schedule generation resources in grid-connected microgrids considering the uncertainties of renewable energies. Multi-area ELD was investigated in Qin et al. (2017) by an enhanced particle swarm optimization. As seen in Qin et al. (2017), the enhanced PSO has better performance in finding an optimum solution than other published works. Firefly algorithm is another evolutionary method employed to solve the ELD problem in Chen and Ding (2015).

On the other hand, the future trend toward the economic, environmental emission dispatch problem is to solve ELD as a multi-objective problem including different objectives like fuel cost, emission value and different gases exhalation to be fulfilled efficiently by finding the real operating point of power generation units. One of the key objective functions is emission reduction due to environmental concerns. Accordingly, the combined economic emission dispatch (CEED) is defined as a multi-objective problem which tends to minimize the operational cost and emissions emitted by thermal units. For solving the CEED, different computational methods and techniques have been introduced that are discussed as follows.

Initially, the price penalty factor (PPF) method is used to convert two objective functions into one objective function, meaning that the emission is converted to operational cost based on multiplying with coefficients obtained via thermal units’ boundaries. This concept has different models and is frequently used for solving the CEED problem based on various evolutionary algorithms. For example, in Jacob Raglend et al. (2010), the ‘Max–Max’ PPF method is used for solving the CEED problem based on various Artificial Intelligence algorithms/techniques, including Differential Evolution (DE), Genetic Algorithm, Particle Swarm Optimizer (PSO), and Evolutionary Programming. Besides, the authors of Sharifi et al. (2017) used the Max-Max method and an improved artificial bee colony algorithm to solve the CEED problem. In addition, in Venkatesh et al. (2003), Güvenç et al. (2012), and Hamedi (2013), the authors employed this method, i.e., the ‘Max–Max’ PPF, for solving the problem by using Gravitational Search Algorithm (GSA), Parallelized PSO, and Evolutionary Programming. In Krishnamurthy and Tzoneva (2012b), a comparative study for solving the CEED problem with ‘‘Min–Max’’ PPF using PSO and Lagrange’s Algorithm (LA) is presented. In addition, in Krishnamurthy and Tzoneva (2011) and Krishnamurthy and Tzoneva (2012c), LA and PSO algorithms are respectively employed by considering both ‘‘Min–Max’’ and ‘‘Max–Max’’ PPFs for solving the CEED problem. In Krishnamurthy and Tzoneva (2012d), the LA is used to solve the CEED problem by considering four penalty factors with a quadratic equation for obtaining the fuel cost and emission value. Moreover, the authors solved this problem by using six penalty factors with a cubic equation in Krishnamurthy and Tzoneva (2012e). Besides, the CEED problem is solved with consideration of the valve-point effect based on ‘‘Min–Max’’ and ‘‘Max–Max’’ PPF approach in Hemamalini and Simon (2009) and Shaw et al. (2012) where respectively, the Maclaurin series-based Lagrangian and the Opposition-based GSA approaches are used.

The weighted sum method is another method which sums both objective functions to convert them to a single objective function. In this regard, various investigations have been conducted. To illustrate those, in Aydin et al. (2014) and Chatterjee et al. (2012), the CEED problem with the weighted sum method is solved using the Artificial Bee Colony algorithm with Dynamic Population size algorithm and the opposition-based harmony search algorithm, respectively. For solving the CEED problem with consideration of the valve-point effect, the authors in Jiang et al. (2014) presented a hybrid approach including PSO and GSA techniques with the weighted sum method. Similarly, in Labbi and Ben Attous (2014), both objective functions, cost and emission, are summed based on the weighted sum method, and the associated problem is solved by Hybrid Big Bang–Big Crunch optimization algorithm.

Although the PPF and weighted sum method are much simpler and are used to solve multi-objective problems, they have some restrictions which may not be suitable to deal with current complex optimization problems. One of the problems is that they do not present a set of solutions (just one global solution is obtained). Another problem is that these methods decrease the flexibility for operators to make decisions fast, meaning that they need to solve the problem for different weighting factors, which is really time-consuming, particularly under real-time implementations. The summary of the literature review is outlined in Table 1.

Table 1 Summary of the literature review

To this end, a non-dominated sorting technique could be employed. This mechanism can be an alternative because it provides a set of solutions rather than a single solution. Then, the operators can select the compromised solution based on the fuzzy rules.

1.3 Novelties and contributions

In this paper, an efficient optimization algorithm, namely a new self-adaptive comprehensive differential evolution (SACDE) algorithm, is proposed for dealing with both problems of ELD and CEED, achieving optimal power consumption in the isolated microgrid. The proposed approach can be used for solving single- and multi-objective problems. Here, SACDE is utilized for solving the ELD problem as a single-objective function in the first stage. Moreover, a multi-objective platform is proposed to solve the CEED problem based on the proposed optimization algorithm (SACDE). To validate the performance of the proposed approach, thorough comparison and simulation results are presented based on three different scenarios, including various cases. These results show the superiority of the proposed method over other ones, such as the reduced gradient method (RGM) (Trivedi et al. 2015), ant colony optimization (ACO) method (Trivedi et al. 2015), cuckoo search algorithm (CSA) (Trivedi et al. 2018), interior search algorithm (ISA) (Trivedi et al. 2018), improved harmony search (IHS) algorithm (Lu et al. 2013; Elattar 2018), improved and adaptive harmony search (IAHS) algorithm (Ponz-Tienda et al. 2017).

The main contributions of this paper can be listed as follows:

  • Providing an efficient algorithm to deal with scheduling of generation sources in the microgrid with high penetration of RESs such as solar and wind generation units.

  • Addressing a multi-objective framework leading to finding more optimum solutions (less cost and emission) compared with other existing techniques like PPF.

  • Developing a new approach with better applicability to solve complicated problems. The proposed method is able to provide better solutions than the previously published ones, as proved by the comparison and simulation results.

1.4 Paper’s structure

This paper is organized as follows. Section 2 presents the mathematical models and the problem formulation. In Sect. 3, the proposed optimization method is explained in detail. Besides, Sect. 4 presents the test microgrid data, simulation and comparison results, and discussions. Finally, the conclusion is given in Sect. 5.

2 Mathematical model

2.1 Fuel cost function of generators

As the main objectives of the ELD problem, the generation levels of all online units must be examined to reduce the total fuel cost of generators and the emission level of the system with consideration of the system constraints (Bhoye et al. 2016b). In this section, as the first objective of the ELD problem, minimizing the generation fuel cost is considered to be formulated. This objective should be realized with consideration of the power demand satisfaction and also the operating constraints of the system. According to Trivedi et al. (2016), the objective function of the fuel cost minimization of generation units can be expressed as follows:

$$ Min\left( {F_{C} } \right) = \sum\limits_{i = 1}^{NG} {\left( {u_{i} P_{i}^{2} + v_{i} P_{i} + w_{i} } \right)} $$
(1)

Due to the operation of various generation units, such as diesel, gas, and combined heat and power units, several harmful pollutants, such as carbon dioxide, nitrogen oxide, and sulfur dioxide, are released (Palanichamy and Babu 2008), which should be reduced according to the aforementioned reasons. For minimizing these toxic emissions in the Emission Dispatch (ED) problem, the following objective function is defined:

$$ Min(E_{T} ) = \sum\limits_{i = 1}^{NG} {\left( {x_{i} P_{i}^{2} + y_{i} P_{i} + z_{i} } \right)} $$
(2)

2.2 Renewable energy sources

2.2.1 Solar energy

According to Bhoye et al. (2016a) and Trivedi et al. (2016), the cost function of solar generation unit can be written as follows:

$$ F\left( {P_{Solar} } \right) = aI^{Sp} P_{Solar} + G^{S} P_{Solar} $$
(3)

In (3), the Annuitization coefficient, represented by a, is calculated as follows:

$$ a = \frac{r}{{\left( {1 - (1 + r)^{ - N} } \right)}} $$
(4)

In the above equations, PSolar, r, N, ISp and GS respectively denote the solar generation (MW), the interest scale (0.09), the investment duration (20 years), the ratio of investment cost to unit power (5$/MWh), and the operational and maintenance costs considered as 0.000016$/MWh.

Consequently, the cost function of the solar energy unit can be obtained by (5).

$$ F\left( {P_{Solar} } \right) = 0.5477483 \times P_{Solar} $$
(5)

2.2.2 Wind generation

In (6), the general cost function of wind energy is written according to (Esmat et al. 2013).

$$ F\left( {P_{Wind} } \right) = aI^{Wp} P_{Wind} + G^{W} P_{Wind} $$
(6)

where, PWind, IWp, and GW respectively denote the wind generation (MW), the ratio of investment cost to unit power (1.4 $/MWh), and the operational and maintenance costs considered as 0.000016 $/MWh.

Accordingly, the cost function of the wind energy unit can be calculated as follows:

$$ F\left( {P_{Wind} } \right) = 0.1533810 \times P_{Wind} $$
(7)

2.3 Final objective functions

In Sect. 2.1, the conventional model of the ED problem was presented without considering renewable energy sources. Here, this problem is formulated in the presence of renewable generation units, i.e., renewable energy sources.

2.3.1 First objective function

By considering the two terms of solar and wind generation units, the ELD problem given in (1) can be re-written as an integrated equation as described in the following:

$$ Min(F_{C} ) = \sum\limits_{i = 1}^{NG} {\left( {u_{i} P_{i}^{2} + v_{i} P_{i} + w_{i} } \right) + 0.1533810 \times P_{Wind} + 0.5477483 \times P_{Solar}^{{}} } $$
(8)

2.3.2 Second objective function

As another critical objective in the operation of power systems, emission minimization is defined as the second objective function as given below:

$$ Min(E_{T} ) = \sum\limits_{i = 1}^{NG} {\left( {x_{i} P_{i}^{2} + y_{i} P_{i} + z_{i} } \right)} $$
(9)

In (8) and (9), two objective functions are defined, which must be simultaneously minimized. For solving these objective functions, a multi-objective platform is required, which can be achieved by means of a dominant concept. It is noteworthy that the advantage of multi-objective planning is that a set of solutions, namely Pareto-optimum solutions, will be obtained rather than a single solution, which in turn enable the system operator to make an efficient decision based on the system’s preference.

2.4 Constraints

2.4.1 Isolated microgrid

By definition, an islanded (isolated) microgrid is disconnected from the main grid, which means that there is not any energy exchange between the microgrid and the main grid (Ramabhotla et al. 2014).

2.4.2 Power balance constraint

The power balance constraint can be written as follows, demonstrating that the load demand should be equal to the power generated by all available generation units.

$$ P_{Load} = \sum\limits_{i = 1}^{NG} {\left( {P_{i} } \right)} + P_{Solar} + P_{Wind} $$
(10)

2.4.3 Power generation constraint

As presented in (11), the output power of each generation unit has a given minimum and maximum values as its constraints (Ramabhotla et al. 2014).

$$ P_{i}^{\min } \le P_{i} \le P_{i}^{\max } $$
(11)

3 Proposed optimization approach

In this section, the conventional differential evolution (DE) algorithm and the proposed optimization approach, along with the proposed multi-objective planning approach, are presented.

3.1 Conventional differential evolution algorithm

As an evolutionary algorithm, the DE algorithm can solve non-deterministic polynomial-time (NP)-hard problems (Wang et al. 2018). This algorithm has been introduced to tackle the main drawback of the genetic algorithm, i.e., its lack of local search. For better understanding, Fig. 1 shows the workflow of the DE algorithm’s operators. As seen, this algorithm generates the population between the upper and lower bounds of problems. Then, the mutation operator is used for making a new individual based on selecting some members of the population. After that, by using the crossover operator, the mutated individual is combined with the ith member of the population. By obtaining the mentioned operators, a new individual is made which is evaluated based on the objective function. The obtained fitness for this individual is compared with the fitness of the ith individual, and the best one (lowest and highest fitness values for minimization and maximization, respectively) is selected for the next generation. It should be noted that these steps are repeated until reaching the stopping criteria.

Fig. 1
figure 1

Workflow of the operators of DE algorithm

In the following sub-sections, the above-mentioned process is mathematically presented.

3.1.1 Initialization

After defining the upper and lower bounds of the problem, the population is stochastically generated as follows:

$$ Q_{n,m} = LB_{n,m} + \left( {UB_{n,m} - LB_{n,m} } \right)*rand_{1} for n = 1,2, \ldots ,NP \& m = 1,2, \ldots ,nv $$
(12)

3.1.2 Mutation operator

In this step, three vectors of the population are randomly selected, and a new solution) \({R}_{n}^{G+1}\)) is created by using (13).

$$ R_{n}^{G + 1} = Q_{r1}^{G} + \beta_{c} *\left( {Q_{r2}^{G} - Q_{r3}^{G} } \right) $$
(13)

3.1.3 Crossover operator

According to the vector obtained from the mutation operator and the nth member of the population, a solution is made as follows:

$$ S_{n,m}^{G + 1} = \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {R_{n,m}^{G + 1} } & { {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} if rand_{2} \le C_{r} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} or{\kern 1pt} {\kern 1pt} {\kern 1pt} m = m_{rand} } \\ \end{array} } \\ {} \\ {\begin{array}{*{20}c} {Q_{n,m}^{G} } & { {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} \quad \quad \;otherwise\quad \quad \quad \quad \,\,} \\ \end{array} } \\ \end{array} } \right\} $$
(14)

By using this solution, a diverse individual can be obtained, making it possible to escape from local minima.

3.1.4 Selection operator

In this step, the best solution is achieved by comparing the \({Q}_{n}^{G}\) and \({S}_{n}^{G+1}\) vectors. As described in (15), if the fitness of the created vector, i.e., \(S_{n}^{G + 1}\), is less than that of the nth member of the population, it will be kept for the next generation; otherwise, the previous individual will be saved for the next generation.

$$ Q_{n}^{G + 1} = \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {S_{n}^{G + 1} } & { if fitness\left( {S_{n}^{G + 1} } \right) \le fitness\left( {Q_{n}^{G} } \right)} \\ \end{array} } \\ {} \\ {\begin{array}{*{20}c} {Q_{n}^{G} } & { \;\,\, otherwise } \\ \end{array} } \\ \end{array} } \right\} $$
(15)

3.2 Proposed optimization approach (algorithm)

In fact, the mutation operator plays a central role in the proposed algorithm. Accordingly, the purpose of this investigation is to use multiple mutations to improve both efficiency and search capability. Unlike the original method presented in Wang et al. (2018), and Gholami and Jazebi (2020a, b) where one mutation is used, multiple mutations are used in the proposed optimization approach. The proposed mutation operator is explained in detail in the following, while other steps are the same as the conventional approach in Sect. 3.1.

3.2.1 Mutation operator

For achieving improved performance in the proposed approach, a new mutation operator is developed. Unlike the conventional DE algorithm, different mutations are used in the proposed approach rather than using only one mutation. In (16) to (20), these mutation operators are described. For generating a new vector, one of these mutation operators is selected and used which in turn not only provides more diversity but also improves the efficiency of the proposed algorithm. In Algorithm 1, the pseudocode of the proposed approach is represented.

$$ \left( {R_{n}^{G + 1} } \right)_{1} = Q_{r1}^{G} + \beta_{c} *\left( {Q_{r2}^{G} - Q_{r3}^{G} } \right) $$
(16)
$$ \left( {R_{n}^{G + 1} } \right)_{2} = Q_{best}^{G} + \beta_{c} *\left( {Q_{r1}^{G} - Q_{r2}^{G} } \right) $$
(17)
$$ \left( {R_{n}^{G + 1} } \right)_{3} = Q_{n}^{G} + \beta_{c} *\left( {Q_{best}^{G} - Q_{n}^{G} } \right) + \beta_{c} *\left( {Q_{r1}^{G} - Q_{r2}^{G} } \right) $$
(18)
$$ \left( {R_{n}^{G + 1} } \right)_{4} = Q_{r1}^{G} + \beta_{c} *\left( {Q_{r2,j}^{G} - Q_{r3,j}^{G} } \right) + \beta_{c} *\left( {Q_{r4}^{G} - Q_{r5}^{G} } \right) $$
(19)
$$ \left( {R_{n}^{G + 1} } \right)_{5} = Q_{best}^{G} + \beta_{c} *\left( {Q_{r1}^{G} - Q_{r2}^{G} } \right) + \beta_{c} *\left( {Q_{r3}^{G} - Q_{r4}^{G} } \right) $$
(20)

Effective mutation not only helps to strengthen an algorithm’s efficiency to escape from the local optima, but it also pushes the solution towards the global optimum. If the population diversity increases, the chance of escaping from the local optima increases. The proposed method can generate the population based on different mutation mechanisms, which in turn results in better search capability and escaping from local minima. In the suggested optimization approach, 5 different mutations are utilized which are described as follows. To commence with, mutation 1 in (16) tries to update the nth member based on a stochastic manner, which makes a new member based on the three random individuals. On the other hand, mutation 2 in (17) tends to push the current member towards the best solution. In mutation 3 in (18), some solutions are randomly selected and mixed with the global best solution to make a solution near the current global best solution. Mutation 4 in (19) is similar to mutation 2, while a random solution is used rather than the global best member, meaning that a new solution on the search space is generated which may be far away from the global best solution. Finally, in mutation 5 in (20), the nth member is oriented to the global best member with considering more random members, which helps to have further distance from the current global best member. To sum up, when these mutations are randomly applied, more different populations are obtained, which in turn enhances the ability of the algorithm to have better search space exploration.

figure a

As seen in the pseudocode, the mutation of DE algorithm has several options. It means a random integer number is generated in [1, 5] and saved in IndexMutation. Following this, one mutation is applied based on this index. For example, if IndexMutation = 3, the mutation which is shown in (18) is applied. This mechanism is executed stochastically to generate new solutions. This is an excellent way for increasing the population diversity, resulting in escaping from local minima.

As already mentioned, the proposed optimization algorithm can be employed to solve both single- and multi-objective problems. For single-objective problems, the approach explained in this section is used. However, for multi-objective problems, a different selection operator is introduced as presented in Sect. 3.3.

3.3 Proposed multi-objective approach

As already mentioned, it is required to minimize two different functions at the same time. A dominant principle could also be used to handle multi-objective problems. In contrast to a single-objective plan, a multi-objective plan can acquire a set of solutions known as Pareto-optimal solutions instead of just a single solution. If the following conditions are satisfied, vector Q1 dominates Q2 (Azizivahed et al. 2018, 2019)

$$ \forall i \in \{ 1,2,...,N_{of} \} ,\quad fitness_{i} (Q_{1} ) \le fitness_{i} (Q_{2} ) $$
(21)
$$ \exists i \in \{ 1,2,...,N_{of} \} ,\quad fitness_{i} (Q_{1} ) < fitness_{i} (Q_{2} ) $$
(22)

where \({N}_{of}\) denotes the total number of fitness functions.

Now, the set of solutions should be normalized into the values between [0, 1] by using a Fuzzy method as expressed below. In other words, the trapezoidal fuzzy model shown in Fig. 2 is used to normalize the objective functions.

$$ \mu_{fi} (Q) = \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} 1 \\ {\begin{array}{*{20}c} {\frac{{fitness_{i}^{\max } - fitness_{i} (Q)}}{{fitness_{i}^{\max } - fitness_{i}^{\min } }}} \\ 0 \\ \end{array} } \\ \end{array} } & {\begin{array}{*{20}c} {\begin{array}{*{20}c} {fitness_{i} (Q) \le fitness_{i}^{\min } } \\ {fitness_{i}^{\min } < fitness_{i} (Q) < fitness_{i}^{\max } } \\ \end{array} } \\ {fitness_{i} (Q) \ge fitness_{i}^{\max } } \\ \end{array} } \\ \end{array} } \right\} $$
(23)
Fig. 2
figure 2

Membership function for both objective functions

In (23), the minimum and maximum fitnesses of the ith function are denoted by \({fitness}_{i}^{min}\) and \({fitness}_{i}^{max}\), respectively. The final solution is chosen among the normalized solutions by using the following criteria:

$$ \gamma_{\mu } (n) = \frac{{\sum\limits_{i = 1}^{{N_{of} }} {U_{i} \times \mu_{fi} (x_{m} )} }}{{\sum\limits_{m = 1}^{{N_{r} }} {\sum\limits_{i = 1}^{{N_{of} }} {U_{i} \times \mu_{fi} (x_{m} )} } }} $$
(24)

To provide a fair comparison with previous works, i.e., Elattar (2018) and Trivedi et al. (2018), the final solution selected by (24) is converted into total cost based on the PPF. The PPF is responsible for transferring the physical sense of emission to the fuel cost and is described as follows.

$$ h_{i} = \frac{{u_{i} \left( {P_{i}^{\min } } \right)^{2} + v_{i} \left( {P_{i}^{\min } } \right) + w_{i} }}{{x_{i} \left( {P_{i}^{\max } } \right)^{2} + y_{i} \left( {P_{i}^{\max } } \right) + z_{i} }}\quad $$
(25)
$$ \begin{gathered} Total{\text{Cos}} t = \sum\limits_{i = 1}^{NG} {[(u_{i} P_{i}^{2} + v_{i} P_{i} + w_{i} ) + h_{i} } (x_{i} P_{i}^{2} + y_{i} P_{i} + z_{i} )] \hfill \\ \quad \quad \quad \quad \quad \;\; + 0.1533810 \times P_{Wind} + 0.5477483 \times P_{Solar}^{{}} \hfill \\ \end{gathered} $$
(26)

Figure 3 shows the simple flowchart of the proposed optimization approach for solving the CEED problem.

Fig. 3
figure 3

Flowchart of the proposed algorithm (SACDE)

4 Simulation results and discussion

In this section, simulation results along with comprehensive discussion and comparisons are presented for proving the proposed solution’s performance. Initially, the test microgrid’s data are presented. Then, three scenarios, including different cases, are defined, and their results are presented and discussed. These scenarios and their cases are depicted in Fig. 4 and are listed in the following:

Fig. 4
figure 4

An overview of the scenarios and their cases to evaluate the proposed method

A.Scenario 1 (Single-objective scheduling):

•Case 1: All sources included

•Case 2: All sources without wind energy

•Case 3: All sources without solar energy

•Case 4: All sources without solar and wind energy

B.Scenario 2 (Bi-objective operation, i.e., CEED):

•Case 1: All sources included

•Case 2: All sources without wind energy

•Case 3: All sources without solar energy

•Case 4: All sources without solar and wind energy

C.Scenario 3 (Other evaluations):

•Case 1: Sensitivity analysis of algorithm's parameters

•Case 2: ED with considering power loss

•Case 3: Comparison with non-dominated sorting genetic algorithm II (NSGA-II)

4.1 Test microgrid data

Here, data of the test microgrid are given (Elattar 2018; Trivedi et al. 2018). Table 2 lists the data of solar and wind generations for a 24-h period which belong to a location on the east coast of the United States of America (USA). The demand throughout the time horizon is shown in Table 3 (Elattar 2018; Trivedi et al. 2018). Moreover, Table 4 presents the generators' characteristics, including their generation limits and fuel cost and emission coefficients (Elattar 2018; Trivedi et al. 2018).

Table 2 Solar and wind generation data for 24 h
Table 3 Load profile for 24-h period
Table 4 Characteristic of the generators

4.2 The results of Scenario 1 (single-objective scheduling)

Here, only the ED is considered and solved as a single-objective function. To prove the performance of the proposed method, its results (hourly and daily costs of the generation units) are compared with those of previously published methods/approaches, including RGM (Trivedi et al. 2015), ACO (Trivedi et al. 2015), CSA (Trivedi et al. 2018), and ISA (Trivedi et al. 2018). As already mentioned, this scenario includes 4 cases whose results are presented in the following subsections.

4.2.1 Case 1 (all sources)

In this case, the microgrid contains all energy sources (generation units). The results of Case 1, which are the hourly cost of the generation units, are presented in Table 5. As seen, the proposed approach outperforms other methods by scheduling generations with the least expenditure. In Fig. 5, the generated powers of different generation units in Case 1 for the proposed approach are presented.

Table 5 Results of Case 1 (all sources included) of Scenario 1
Fig. 5
figure 5

Generated power of different generation units in Case 1 of Scenario 1

4.2.2 Case 2 (all sources excluding wind generation unit)

In this case, the microgrid contains all energy sources, excluding wind energy. The results of different methods including the proposed method for Case 2 are listed in Table 6. As seen, the least generation cost, i.e., 171934.59 ($/day), belongs to the proposed approach among all of the compared methods. In Fig. 6, generated powers of different units in Case 2 for the proposed method are shown.

Table 6 Results of Case 2 of Scenario 1
Fig. 6
figure 6

Generated power of different generation units in Case 2 of Scenario 1

4.2.3 Case 3 (all sources with no solar generation unit)

In this case, the microgrid includes no solar energy source. Table 7 presents the results of diverse approaches for this case, demonstrating that the proposed one shows the best performance by providing the least generation cost (171163.856 ($/day)). Besides, Fig. 7 shows the hourly generated powers of different units in Case 3 obtained by the proposed approach.

Table 7 Results of Case 3 of Scenario 1
Fig. 7
figure 7

Generated powers of different generation units in Case 3 of Scenario 1

4.2.4 Case 4 (no renewable energy sources)

In Table 8, the hourly and total generation costs of different approaches for Case 4 of Scenario 1, where microgrid includes only fuel-based generation units (no renewable energy sources). Based on these results, the proposed approach is ranked as the best algorithm for obtaining the least generation cost (176197.27 ($/day)) among all methods. In addition, Fig. 8 presents different units’ generations acquired by the proposed approach.

Table 8 Results of Case 4 of Scenario 1
Fig. 8
figure 8

Generated powers of different generation units in Case 4 of Scenario 1

It should be noted here that based on Figs. 5, 6, 7, 8, presenting the hourly generation of each unit of Scenario 1, the generation units can perfectly cover the whole load, and also the constraints are perfectly satisfied. Besides, Figs. 9 and 10 respectively compare the hourly and total generation costs of Scenario 1 obtained by the proposed method. According to these figures, utilization of renewable energy sources can remarkably decrease both hourly and total operational costs of the system. If PV and WT engage in power generation alongside thermal units (Case 1), larger cost savings are observed. There is a slight cost rise in Case 2 due to the exclusion of WT. Likewise, in Case 3, where PV does not participate in the microgrid, the cost is higher than that in Case 1. Nevertheless, the cost reaches its peak in Case 4 as the thermal units only feed consumption and the renewable sources are entirely ignored. Through this comparison, it can be seen that more renewable energy integration results in greater cost and emission minimization.

Fig. 9
figure 9

Hourly generation costs of Scenario 1 over a day obtained by the proposed approach

Fig. 10
figure 10

Total generation costs of Scenario 1 over a day obtained by the proposed approach

4.3 The results of Scenario 2 (bi-objective scheduling)

Unlike Scenario 1, the economic and emission are simultaneously solved as a bi-objective function (CEED problem) in Scenario 2. The results of the proposed approach are compared with those of other methods, such as RGM (Trivedi et al. 2015), ACO (Trivedi et al. 2015), CSA (Trivedi et al. 2018), ISA (Trivedi et al. 2018), IHS (Elattar 2018), IAHS (Elattar 2018), and MHS (Elattar 2018) for validating the superior performance of the proposed one. As already mentioned, four cases are defined in this scenario too. In Fig. 11, some of the Pareto Front examples obtained by the proposed approach for different hours are shown.

Fig. 11
figure 11

Some Pareto-Front examples obtained by the proposed approach in Scenario 2 for a Case 1 at hour = 1 b Case 2 at hour = 8 c Case3 at hour = 18 d Case 4 at hour = 22

As seen in this figure, a Pareto solution has two different values (cost and emission). Therefore, the results in Tables 9, 10, 11, 12 are the combination of these two items obtained based on the PPF to have a fair comparison with other published works. In other words, the PPF is responsible for transferring the physical sense of emission to the fuel cost.

Table 9 Results of Case 1 of Scenario 2
Table 10 Results of Case 2 of Scenario 2
Table 11 Results of Case 3 of Scenario 2
Table 12 Results of Case 4 of Scenario 2

4.3.1 Case 1 (all sources)

In this case, all generation units are employed in the microgrid whose results (hourly and daily generation costs) for different algorithms are listed in Table 9. As seen, SACDE (the proposed approach) can outperform the others by providing the least total generation cost (177936.6 ($/day)). Fig. 12 shows the generated powers of the generation units obtained by the proposed approach.

Fig. 12
figure 12

Generated powers of different generation units in Case 1 of Scenario 2

4.3.2 Case 2 (no wind generation unit)

In this case, only wind energy is not employed in the microgrid. The hourly and total operational costs obtained by different approaches for this case are given in Table 10. As seen, the least total cost, i.e., 183,676.4 ($/day), is provided by the proposed approach. In Fig. 13, generated powers of different generators while employing the proposed method are shown.

Fig. 13
figure 13

Generated powers of different generation units in Case 2 of Scenario 2

4.3.3 Case 3 (no solar generation unit)

Here, the microgrid has no solar generation unit. In Table 11, the results (generation costs) of the compared approaches for this case are given where the proposed approach has the superior performance by giving the total cost of 182495.6 ($/day). Additionally, the hourly generated powers of different generation units obtained by the proposed approach are shown in Fig. 14.

Fig. 14
figure 14

Generated powers of different generation units in Case 3 of Scenario 2

4.3.4 Case 4 (no renewable energy resources)

In Table 12, the hourly and total operational costs of different methods for Case 4 of Scenario 2, where the microgrid includes no renewable energy sources, are listed. According to the results, the proposed algorithm is the superior one by providing the least cost (187935.12 ($/day)) among all compared methods. Besides, Fig. 15 shows different units’ generated powers which are obtained by the proposed approach.

Fig. 15
figure 15

Generated powers of different generation units in Case 4 of Scenario 2

According to Figs. 12, 13, 14, 15, by using the proposed method, the whole load is supplied by the generation units, and the constraints are perfectly satisfied. Moreover, Figs. 16 and 17 respectively compare the hourly and total costs acquired by the proposed approach in Scenario 2. As seen, both hourly and total costs can be considerably reduced by employing renewable energy sources in the system. In detail, when both renewable energy sources, including PV and WT, participate in power generation in the presence of thermal units (Case 1), a lower cost is obtained. Besides, there is a little increase in the cost of Case 2 where no WT exists. Similarly, in Case 3 (no PV in the microgrid), the cost is more than that in Case 1. Moreover, in Case 4, the cost has the highest value because the demand is merely supplied by the thermal units. Consequently, it is clear that the more renewable energies are integrated into the microgrid, the more reduction in the cost and emission can be achieved. The total emission emitted from thermal units is also depicted in Fig. 18 where it is obvious that the microgrid experiences a higher emission if there is no renewable energy integration. While, the cost significantly decreases by employing solar energy and wind turbine.

Fig. 16
figure 16

Hourly costs of Scenario 2 over a day obtained by the proposed approach

Fig. 17
figure 17

Total costs of Scenario 2 over a day obtained by the proposed approach

Fig. 18
figure 18

Total emission of Scenario 2 over a day obtained by the proposed approach

4.4 The results of Scenario 3

4.4.1 Case 1: sensitivity analysis on the algorithm’s parameters

For optimum tuning of the algorithm’s parameters, the parameter Cr is set to 0.1 initially, and thereby, the parameter \(\beta_{c}\) is changed from 0.1 to 0.9. The results of the tuning of \(\beta_{c}\) are shown in Fig. 19a. As seen, the best range of \(\beta_{c}\) is between 0.2 to 0.4. After acquiring the optimal value of the parameter \(\beta_{c}\), the optimum value of the parameter Cr is obtained. Hence, the parameter \(\beta_{c}\) is considered to be equal to 0.3, and then the parameter Cr is changed from 0.1 to 0.9 to extract its best value. According to Fig. 19b. the parameter Cr should have a value between 0.3 and 0.4 to achieve desirable performance.

Fig. 19
figure 19

Parameter tuning of the proposed approach

4.4.2 Solving ED in the presence of power loss

During the operation of power systems, some of the generated power is wasted as losses. Generally, 5–10% of the generated power is wasted as losses (Asrari et al. 2016; Gholami and Parvaneh 2019). Accordingly, the power balance constraint in (10), including power loss, is modified to \(P_{Load} + P_{loss} = \sum\limits_{i = 1}^{NG} {\left( {P_{i} } \right)} + P_{Solar} + P_{Wind}\). Here, it is assumed that 5 percent of generated power which is equal to 5% of the load is wasted. The results for all cases of Scenario1 by considering the power loss are obtained and listed in Table 13; it is shown that the amount of operational cost is increased since the power loss is considered in the calculations.

Table 13 Results of all cases of Scenario 1 considering the power loss

4.4.3 Comparison with NSGA-II

Here, the efficiency of the proposed approach is compared with NSGA-II (Deb et al. 2000) whose results are shown in Fig. 20. As seen, the proposed approach is the superior one compared to the NSGA-II since it can provide high-quality solutions.

Fig. 20
figure 20

Comparison between NSGA-II and the proposed method

5 Conclusion

These days, the demand for renewable energies integration has increased sharply due to environmental concerns. Thus, proposing efficient operational optimization schemes to cope with such emerging technologies is necessary. This article proposes a new optimization algorithm to deal with both problems of ELD and CEED, leading to optimal power consumption in an islanded microgrid. For this aim, a new modified version of differential evolution algorithm, named self-adaptive comprehensive differential evolution algorithm (SACDE) is proposed. The proposed algorithm is assessed under two conditions, including single- and multi-objective operations. Regarding single-objective scheduling, this algorithm is employed to solve the ELD problem. In terms of the multi-objective operation, the CEED problem with two objective functions of cost and emission is solved. According to the comprehensive results presented in the previous sections, the proposed approach by providing the optimal solution (giving the lowest cost) outperforms the other similar methods such as RGM, ACO, and CSA. The sensitivity analysis of the parameters associated with the algorithm was also investigated to determine their best values. In addition to comparing the proposed algorithm with other similar ones such RGM, ACO, CSA, a separate comparison between the proposed approach and the NSGA-II, a well-known algorithm, was also performed, proving the superiority of the proposed algorithm over NSGA-II. For future works, considering electric vehicle charging stations in reconfigurable microgrids suffering from renewables’ uncertainties and performing a comprehensive comparison between all existing algorithms to schedule microgrids’ resources can be suggested.