Abstract

Microgrid (MG) economical/environmental dispatch (MGEED) problem is a complex multiobjective optimization topic. Since the generators are diversified and the operation mode changes frequently, the MGEEED problem always has different types of constraints, such as the load balance constraints and the ramp rates constraints, which make it a nonlinear, nonconvex optimization problem. In this paper, the mathematical model of a typical MG system applied in northwest China is established. Then, a hybrid constraints handling strategy (HCHS) based on nondominated sorting genetic algorithm II (NSGAII) is proposed to deal with the typical constraints, by which the constraints violations can be removed in several steps during the evolutionary process. A dimensionality reduction method is introduced to simplify the optimization model. And an individual repair approach is designed for the violations of ramp rates constraints. In order to balance the weights of various types of constraints, the process of constraints handling in standard NSGAII is revised. Thereafter, HCHS-NSGAII is applied to some typical MGEED problems, considering all kinds of typical constraints. The results show that HCHS-NSGAII can obtain feasible Pareto sets with satisfactory convergence and distribution, which is efficient in handling complex practical industrial MGEED problems with the change of constraints combinations.

1. Introduction

With the energy shortage and environmental pollution becoming serious [14], the technologies of microgrid (MG) with distributed energy resources (DERs) have been developed rapidly [57]. In remote areas of northwest China, the energy requirement is diversified, but the level of energy supply is low [8]. Thus, it is meaningful to establish MG systems by utilizing the local renewable energy such as the wind power and solar energy. Usually, the combined heat and power (CHP) systems like microturbines (MTs) are also needed to provide electricity and heat. As a result, the applications of MGs may cause uncertainty of energy efficiency and environmental pollution if the DERs cannot be dispatched properly. Therefore, solving the multiobjective optimization problem (MOP) of MG economical/environmental dispatch (MGEED) is an important topic to save energy and reduce emissions simultaneously [912].

The complexity of the MG system makes MGEED a nonlinear, nonconvex mathematical optimization problem. One of the reasons is that in a practical MG system, there are various types of constraints caused by different distributed generators (DGs), distributed energy storage systems (DESSs), and the whole MG system. Thus, as a MOP, these constraints, such as the equality and inequality constraints and multivariable constraints, make the feasible solutions region distributes unevenly in a high dimension search space, which may make it difficult for the optimization algorithms to reach feasible Pareto fronts [12, 13].

Many researchers have studied the nonlinear optimization methods and their application on MG systems economical/environmental dispatch problems [1419]. In recent years, multiobjective evolutionary algorithms (MOEAs) have been introduced to deal with the MGEED problems, which is more efficient for solving nonconvex objective functions and more flexible in handling the constraints [10, 18, 20]. However, researchers mainly focused on the accuracy and the efficiency of algorithms instead of constraints handling strategies. Penalty function method (PFM), which is a common, simple, and efficient constraint handling method for constrained optimization problems, is generally used in MOEAs. In [19], the PEM was applied to convert the constrained MG cost optimization problem into an unconstrained one by modifying the objective function with related penalty items. The simulation results showed that PEM could help the optimization approach to find satisfied feasible solutions. However, in that study the amount of the constraints was not large, and the economical and environmental objectives were combined as only one optimization task. In [21], the authors introduced a method to handle the constraints in multiobjective problems taking account of both feasibility and domination, which is called “Deb’s constraints handling criteria”. It was used in some of the studies [13, 2224], and the results showed that by using this method considering both feasibility and domination, the proportion of the infeasible solutions could be reduced evidently [13, 23]. However, this method needed to add the overall constraints which were actually of different types and could not be easily quantified. In addition, [20] proposed two frameworks based on MOEAs to solve the multiconstrained MGEED problems, and both of the strategies obtained the feasible Pareto sets. However, the authors only considered some of the common used constraints, and the constraint handling approaches were not customized, which may reduce the efficiency when the optimization frameworks were applied to other MGEED problems with different combinations of constraints.

From the above researches it is obvious that the constraints handling problems of MGEED have not been systematically studied. Most of the studies utilized a general method to deal with the violations. However, as a practical MOP, the MGEED problems have serious challenges to the MOEAs for the following reasons:

MGEED problems have various types of constraints, such as the equality constraints and inequality constraints.

The dimension of the search space is high. Since almost every variable in a solution should meet at least one constraint, the amount of the constraints are always very large, which may make the feasible region in uneven distribution.

When using MOEA as the optimization tool, the generation of constraints violations may appear in different steps of the optimization process.

As a practical MOP, the combinations of the constraints may change in different scenarios.

Considering the above challenges, the single and static constraint handling strategies may not always adapt to the MGEED problems, especially when the constraints are complex. Therefore, it is necessary to study the hybrid approaches in dealing with all kinds of MG constraints.

In remainder of this paper, the system models and objective functions are established in Section 2. The hybrid constraints handling strategy (HCHS) based on nondominated sorting genetic algorithm II (NSGAII) is designed in Section 3. Thereafter, the HCHS-NSGAII is applied to several practical MGEED problems with different constraints combinations to study the efficiency of the proposed hybrid constraints handling strategy in Section 4. Finally, the conclusions of the study are presented.

2. Modeling of MGEED

2.1. MG System Description

The MGEED problem is to allocate the output of every distributed component to meet the predicted electricity and heat load demand without prejudice to any of the constraints through the whole 24-hour process, while maximizing the financial and ecological benefit of the MG system. In this section, the proposed objective functions and constraints are discussed. The structure of the typical MG used in this paper is shown in Figure 1. It can be seen that two kinds of uncontrollable DGs, namely, photovoltaic cells (PVs) and wind turbines (WTs), are considered, of which the mathematical models and related parameters are described in [22, 24]. Two microturbines (MTs) and two fuel cells (FCs) with different parameter settings are considered as the controllable DGs to supply electricity power. A battery bank is also included as the DESS. Besides, the power exchanged with the main grid is considered when the MG system turns to grid connected mode by the PCC (point of common coupling).

2.2. Objective Functions

In this paper, the total operating cost is considered as one of the objectives to be minimized, which contains the fuel cost, the start-up cost, the maintenance cost, and the outcome, by introducing the power from the main grid. Thus, the objective function for minimum cost can be described below: where is the decision variable vector; is the number of the time intervals; and are the total amounts of the DGs and DESSs, respectively; and are the fuel cost and the start-up cost of the th controllable DG at time , respectively; and are the maintenance costs for the th controllable DG and the th DESS at time , respectively; is the cost of the purchased power from the main grid. The model functions of ,  ,  ,   can be found in [22, 23], and the start-up cost function is described below:where and are the hot start-up cost and cold start-up cost of the th controllable DG, respectively; is the time during which the th controllable DG has been off at the beginning of the th scheduling period; and are the cooling time constant and the on/off status of the th controllable DG, respectively.

Another objective to be optimized is the emission from the MG system, which is shown below:where ,  , and represent the emission of the th controllable DG, the th DESS, and the main grid at time , respectively. In this paper, only the emission production of the controllable DGs is considered, as shown below:where , , are the emission coefficients and is the power output of the power generators. The values of the emission coefficients can be found in [25].

2.3. Typical Constraints

As a practical multiobjective optimization problem, the MGEED problem may have various types of constraints. In this paper, some typical ones are mainly introduced as follows.

(1) Rated Power Constraints. Each controllable DG has its maximum and minimum output power constraints. Similarly, the power from the grid is also limited. The constraints are shown below:where is the power exchanged with the main grid.

(2) Electricity Power Balance Constraints. The electricity power generated by all the components from the MG system should exactly meet the total load demands at time , which can be described aswhere is the th charged/discharged power of the DESSs at time and   is the number of electricity load demands. In this paper, .

(3)  Heat Power Balance Constraints. The thermal power from the MTs should exactly meet the heat load demand , which is shown below:where is the quantity of the exhaust heat of the th MT at time and is the number of the MTs in the MG system. The mathematical model and parameter settings of can be found in [22].

(4) State of Charge Constraints. The battery bank (BAT) cannot be overcharged or overused, so the limits of the state of charge (SOC) of the battery bank are as follows:

(5) BAT Charge/Discharge Constraints. The charging/discharging power of the BAT (/) is limited in order to protect the devices, which can be described as

The relation between the state of charge and the charging/discharging power of the BAT mentioned above can be expressed aswhere and are the charging and discharging efficiencies of the BAT and is the time interval.

(6) Ramp Rates Constraints. The increase/decrease of output power of MTs in unit time is called ramp rate, which reflects the performance of the DGs. The ramp rates cannot exceed a certain value, which can be expressed as

3. HCHS-NSGAII

It can be seen from Section 2 that the MOP of MGEED has complicated solution spaces, due to the complexity of the variable vectors, the objective functions, and the constraints, which makes it difficult for the optimization algorithms to find the optimal Pareto set. Especially, there is a wide variety of constraints, which has strong coupling and nonlinearity. Therefore, one of the keys to solve the MOP of MGEED is to design high efficient optimization algorithms, which can accurately handle the multiple constraints. In this paper, NSGAII is introduced as the core optimization tool to solve the MOP of MGEED. Furthermore, NSGAII is improved with an MG-multiconstraint handling approach to adapt the challenges in this specific multiconstrained MGEED.

3.1. Standard NSGAII

NSGAII was proposed by Deb et al. in 2002 [21], which is one of the most efficient dominance-based MOEAs. The main features of NSGAII are described as follows: elitist based strategy: in this way, the elitist individuals are kept during the evolution procedure; fast nondominated sorting: by utilizing this method, the computational complexity can be reduced; crowding distance calculation: by sorting the individuals in the same Pareto level according to the crowding distance, the diversity of the population is well protected. NSGAII has strong robustness in dealing with complex MOPs and can obtain solutions with good diversities quickly. The process of standard NSGAII can be found in [21].

3.2. Hybrid Constraint Handling Strategy

As mentioned in Section 1, when solving MOPs using NSGAII, Deb’s constraints handling criteria are based on the individual feasibility and the violations of the overall constraints in the sorting procedure, which is widely used in many studies. During the constraints handling process, the solutions with smaller overall constraints will be selected if neither of the candidates is feasible. However, in the practical MGEED, different constraints cannot be combined directly and the method in [21] is not able to handle the constraints related to variables generation process. Therefore, this paper proposed a hybrid constraint handling strategy (HCHS) to improve the performance of NSGAII in dealing with the complex constraints, which is described as follows.

3.2.1. Dimensionality Reduction for the Equality Constraints

The equality constraints violations, such as the violations of electricity power and heat power balance constraints, are difficult for the method in NSGAII to completely eliminate, because of the generating ways of the variables in the equalities. Thus, this paper suggests that the output of MT1 and the power exchanged with the grid should be selected to transfer the equalities into inequalities with its own limits, which decreases the difficulties of dealing with the constraints. Take the electricity power balance constraints handling as an example. The transformation procedure is shown below.

First, according to (7), can be expressed as

Then, according to (7) and (13), can be described as

Therefore, (6) can be transformed aswhere and are the electricity power output of MT1 and the heat load demand, respectively. Equation (15) describes the final inequality constraint after transformation.

By the transformation process above, the equality constraints violations are converted to inequality ones, which are easier to be removed. Furthermore, since one of the variables in the equality has been replaced, the dimensionality of the search space can be reduced. In this way, the optimization model can be simplified.

3.2.2. Repair Process after Generation of a New Individual

Since the individuals are generated using some heuristic-based stochastic methods in NSGA-II, the constraint handling method in [21] cannot reduce the violation of some constraints, such as the ramp rates constraints and the rated power constraints, related to variables generation process. Thus, a repair process is needed after the variable initialization process and the genetic operation process. The pseudocode of repairing the new individuals is presented in Algorithm 1.

Input:
Output:
;
for 2 to do
  if
    if
      ;
    else
      ;
    end
  end
end
return ;

It can be seen from Algorithm 1 that the repair process can transfer the infeasible individuals which violate the ramp rates constraints and the rated power constraints into feasible individuals. In this way, the feasibility of the potential solutions is guaranteed. However, the repair process can only handle the violations in the variable generation process, and the computational complexity may be high. It is clear that at the beginning of the evolutionary procedure, the proportion of the infeasible solutions in the population is high, while the population is diversified because of the random generation process. However, at the end of the optimization, the feasibility of the solutions should be guaranteed. Therefore, the repair probability on the infeasible potential solutions is designed to be dynamic depending on the evolutionary generations, as shown below:where and are the current generation and the switch generation. At the beginning of the evolutionary process, the value of is small and the change speed is slow with the increase of the generation. In this way, a significant number of infeasible solutions can be kept in the population to protect the diversity, which may lead the algorithm to find more feasible regions. When is close to , the increase speed of is high and most of the infeasible individuals could be repaired. When the number of evolutionary generations is larger than , all the infeasible solutions should be repaired to ensure the feasibility of the final solutions. In this paper, equals half of the maximum generations.

3.2.3. Normalization and Weighted Sum Process in Selection

For the overall violations combined with different types of constraints, such as the battery SOC constraints and the transferred constraints in Section 3.2.1, each of the subitems should be normalized before being used, which can be calculated aswhere and are the actual and normalized violation values of the th type of constraint in the th individual, respectively; and are the minimum and maximum violation values of the th type of constraint in the population, respectively. Then, the overall constraints violation of the th individual can be obtained bywhere is the penalty weight of the th type of constraint and is the number of the constraints types using method in [21].

3.2.4. Optimization Procedure of HCHS-NSGAII

The three approaches designed above are combined with Deb’s constraints handling criteria to deal with all kinds of constraints violations in the MOPs of MGEED when using NSGAII. In practical day-ahead MGEED, the data may always change with time. Therefore, the forecast load demands and the predicted environmental data should be obtained first. Besides, the structure and the operation mode of the MG may also change [26, 27] according to the operators’ requirement, which would cause the change in the optimization models. So the optimization objectives and constraints should also be updated before applying the optimization algorithm. One of the key parts is to classify the constraints using the method proposed in this section, which would guarantee the efficiency of HCHS-NSGAII. Then, the optimization procedure of HCHS-NSGAII starts.

Before running the main program, the optimization models are simplified by the dimensionality reduction methods. Then, after the population initial process, the infeasible individuals are partly repaired according to (16). After that, the main program loop begins. And the normalization and weighted sum methods are applied when using Deb’s constraints handling criteria to deal with the violations of the inequality constraints. After the nondominated sorting, the selection, and the genetic operation process, the algorithm will choose whether the partial repair or the total repair process is utilized for the new population according to . Then, the new population and the old population will be combined, and the nondominated sorting and the selection will start again. This procedure above is repeated until the termination condition is reached. The flowchart of HCHS-NSGAII is shown in Figure 2.

4. Simulations and Discussion

In this section, the proposed HCHS-NSGAII is tested on a series of MGEED simulation problems. For comparison, another two most used constraints handling methods in solving practical MOPs are also applied. The performances of the three approaches above are discussed.

4.1. Data and Parameter Settings

The environmental data, including the wind speed, irradiance, and air temperature, can be found in [23]. The curves of heat and electricity load demand on a typical day are shown in Figure 3. In addition, the electricity prices and parameter settings of the objective functions and constraints can be found in [22, 23].

Besides, as described in Section 1, the PFM is one of the most popular constraints handling methods in practical optimization problems. And Deb’s constraints handling criteria method applied in the standard NSGAII (S-NSGAII) is the most widely used constraints handling method in solving MOPs. Therefore, these two methods are also applied to the following simulations here with NSGAII as their optimization algorithm. The population size is 100 and the maximum generation number is 500 for the three algorithms. The other parameter settings can be found in [21].

Comparing PFM-NSGAII with S-NSGAII, the only difference is that the fitness function of PFM-NSGAII is modified aswhere is the objective function value of the th individual for the th objective. In this paper, to compare the individuals properly, is calculated aswhere is the penalty coefficient of the fitness function for the th objective; is the overall violation value of the th individual, which can be calculated by (18); and are the minimum and maximum value for the th objective in the population. In this paper, .

4.2. Simulation Experiments

In this subsection, four MG operation scenarios with different constraints are considered. In Scenario One, only constraints expressed in (5), (7), and (9) are taken into account, which means the MTs only generate electricity. In Scenario Two, the constraint in (8) is also used, which shows the effects of heat load on the scheduling results. In Scenario Three, besides the constraints mentioned above, the electricity power limit exchanged with the main grid is considered (6). And in Scenario Four, all the constraints described in Section 2 are applied. The last population and the feasible solutions in the objective space of the four scenarios utilizing the three algorithms are shown in Figures 47, respectively. Each method will run 10 times for every scenario, and the best and average results are recorded. The rates of the feasible solutions are shown in Table 1. The best extreme feasible solutions for the two objectives using the three algorithms can be found in Table 2. And the average feasible results of the minimum cost and minimum emission are shown in Table 3.

It can be seen from Figure 4 and Table 1 that when there are only power output limits, battery capacity limits, and electricity power balance constraint, both HCHS-NSGAII and S-NAGAII can solve the MGEED problem well, while HCHS-NAGAII obtains all the feasible solutions as its best record. PFM-NSGAII only gets 78 feasible solutions. All of the three methods reached approximate Pareto fronts. The average amounts of feasible solutions are not much different from their relative highest amounts, which illustrates that the three constraint handling methods have strong robustness in dealing with the MGEED problem in Scenario One. From Tables 2 and 3, it can be seen that the extreme solutions obtained by the three algorithms are similar, and PFM-NSGAII is even better in finding the minimum cost. This means that all of them can manage this MGEED problem.

In Scenario Two, another equality constraint is added. It can be seen from Figures 5(a) and 5(b) that the solutions by HCHS-NSGAII distribute uniformly and all of them are feasible at the best record. However, although some of the solutions by S-NSGAII can dominate those by HCHS-NSGAII (Figure 5(a)), they are actually infeasible. And most of the remaining solutions which are feasible are dominated by those obtained by HCHS-NSGAII (Figure 5(b)). PFM-NSGAII obtains similar results as S-NSGAII, while those by PFM-NSGAII are a little worse since it gets more infeasible solutions according to Figure 5 and Table 1. Tables 2 and 3 also show that HCHS-NSGAII gains the best minimum cost and emission values among the three methods, while the performances of S-NSGAII and PFM-NSGAII are getting worse, especially in the aspects of convergence and distribution. This implies that S-NSGAII and PFM-NSGAII cannot handle the equality constraints violations well, particularly when there are more than one equality constraint. However, by simplifying the optimization model with the dimensionality reduction process, HCHS-NSGAII loses much less feasible solutions than the other two methods.

In Scenario Three, where the MGEED problem becomes more difficult by adding the exchanged electricity power limits, 88% of the population by HCHS-NSGAII is still feasible within 500 generations according to the average result in Table 1, whereas S-NSGAII and PFM-NSGAII just focus on part of the Pareto front according to Figure 6 and only 16% and 12% of the populations are feasible. This is because Deb’s constraints handling criteria and the PFM cannot deal with the different kinds of constraints simultaneously, and more infeasible solutions are kept by the elitist based strategy. As a result, most of the solutions converge to an infeasible zone. As for HCHS-NSGAII, the normalization and weighted sum process ensures that all of the constraints violations in different units are taken into account equally, in case that some certain kinds of violations are ignored. Therefore, the approximate Pareto front obtained by HCHS-NSGAII can have good distribution and population diversity.

In Scenario Four, it can be seen from Figure 7 that the results of S-NSGAII and PFM-NSGAII are similar as those in Scenario Three, and only 5% and 1% of the populations are feasible according to the average results. The ramp rates constraints violations are added directly in the overall constraints by the above two constraints handling approaches. Since the violations appear during the variables generation process (which is a random and uncontrollable process), Deb’s constraints handling criteria and the PFM cannot remove them completely. Thus, S-NSGAII and PFM-NSGAII cannot lead the algorithm to search a new direction to which the violations can be smaller. Therefore, they cannot directly converge to the feasible approximate Pareto front. For HCHS-NSGAII, according to Figure 7(b) and Table 1, it can get 86 feasible solutions, which is about 17 times and 86 times the feasible solutions obtained by S-NSGAII and PFM-NSGAII, respectively. Obviously, the proposed repair process has avoided the violations of ramp rates constraints and ensured the population diversity.

5. Conclusions

In this paper, a hybrid constraints handling strategy based on NSGAII is proposed for solving the MGEED with various types of constraints. In the HCHS-NSGAII framework, the dimensionality reduction method is employed to simplify the optimization model by transforming the equality constraints into inequality ones. Meanwhile, a repair process is suggested to handle the ramp rates constraints after the generation of new individuals, which is a dynamical process to ensure the population diversity and the solutions feasibility. In addition, the normalization and weighted sum approaches are introduced to balance the weights of different kinds of constraints. And then HCHS-NSGAII is applied to a series of MGEED problems with different combinations of MG constraints and the results are compared with those obtained by S-NSGAII and PFM-NSGAII. The results show that by utilizing HCHS, NSGAII can gain feasible Pareto sets with satisfactory convergence and distribution in different scenarios, while the widely used constraints handling methods lose the feasible solutions and fall into local optimum with the increase of the MOPs complexity. It is evident that for a complicated industrial MGEED problem which may have various types of constraints, a hybrid constraints handling strategy is more efficient than single methods. And it is better to remove the violations of different constraints in several steps during the evolutionary process, instead of converting them into an overall constraints violation. Further studies are needed for designing more efficient algorithms to solve the MGEED problems with the proposed HCHS.

Nomenclature

MG:Microgrid
DERs:Distributed energy resources
CHP:Combined heat and power
MT:Microturbine
MOP:Multiobjective optimization problem
MGEED:MG economical/environmental dispatch
DG:Distributed generator
DESS:Distributed energy storage system
MOEA:Multiobjective evolutionary algorithm
PFM:Penalty function method
HCHS:Hybrid constraints handling strategy
NSGAII:Nondominated sorting genetic algorithm II
PV:Photovoltaic
WT:Wind turbine
FC:Fuel cell
PCC:Point of common coupling
SOC:State of charge
S-NSGAII:Standard NSGAII
BAT:Battery
:Cost of the purchased power from the main grid ($)
:Hot/cold start-up cost of the th controllable DG ($)
:Time during which the th controllable DG has been off at the beginning of the th scheduling period ($)
:Cooling time constant of the th controllable DG (s)
:On/off status of the th controllable DG
:Emission of the th controllable DG/th DESS at time (kg)
:Emission of the main grid at time (kg)
:Maximum and minimum power exchanged with the grid (kW)
:Power output of the power generators (kW)
:Maximum/minimum output power of the th controllable DG (kW)
:Emission coefficients
:Total emission of the MG (kg)
:Total operating cost of the MG ($)
:Decision variable vector
:Number of the time intervals
:Total amounts of the DGs/DESSs
:Fuel cost of the th controllable DG at time ($)
:Actual/normalized violation values of the th type of constraint in the th individual
:Maintenance cost for the th DG/th DESS at ($)
:Objective function value of the th individual for the th objective
:Penalty coefficient of the fitness function for the th objective
:Overall violation value of the th individual
:Power exchanged with the main grid (kW)
:Number of electricity load demands
:The th charged/discharged power of the DES- Ss at time (kW)
:Quantity of the exhaust heat of the th MT at time (kW)
:Number of the MTs in the MG system
:Amount of stored energy inside the BAT at time (Ah)
:Maximum/minimum amount of stored energy inside the BAT (Ah)
:Charging/discharging power of the BAT at time (kW)
:Maximum/minimum charging/discharging power of the BAT at time (kW)
:Charging/discharging efficiencies of the BAT
:Time interval
:Ramp rate of the th controllable DG (kW)
:Electricity power output of MT1 (kW)
:Heat load demand (kW)
:Repair probability
:Current/switch generation
:Start-up cost of the th controllable DG at time ($)
:Minimum/maximum violation values of the th type of constraint
:Overall constraints violation of the th individual
:Penalty weight of the th type of constraint
:Number of the constraints types
:Minimum/maximum value for the th objective.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant no. 51707071), the National Postdoctoral Program for Innovative Talents of China (Grant no. BX201600055), and the Postdoctoral Foundation of China (Grant no. 2017M610475).