With the fast society innovation speed, the higher demand for power industry is required, such as higher quality, better stability, lower harmonics and inter-harmonics, etc. Therefore, it has become inexorable trend that utilizing modern science technology improves power system quality, and smart grid will and must be the future electric system  . In , the characteristics of the smart grid are to change the conventional concept of energy management and operation, optimise the automation of the electricity flow through the system, reduce losses and costs of energy, and improve reliability and economy. In , smart management is the main content in smart grid, which focuses on energy efficiency and demands profile improvement, such as cost optimization, price stabilization and emission control. In a power grid system, various generations technologies function together, such as wind energy, solar PV (photovoltaic) energy, hydropower, nuclear energy, coal fired power, etc., and they all have different characters, for example the wind and PV energy are fluctuated and stochastic. In addition to that, there are lots of power supply nodes (electrical generations) and too many demand nodes (electrical consumers) in a power grid, which makes more difficulties to realize high quality supply electric energy, shown in Figure 1.
There are two kinds of thoughts to implement control; one is adjusting the side of demand via electricity price. In recent years, researchers have got some results. I. Dusparic et al., in , in order to optimize energy usage, proposed a multi-agent approach. The main demand is household load, which uses load forecasting response demand, by reinforcement learning agent controlling household electrical devices, and uses current load and 24 hours forecast load to shift peak demand to an off-peak period to implement demand response. In , Z. Wen et al. addressed a novel energy management system (EMS) formulation for demand response problem in the residential and other small users. The EMS does not require a disutility function that can eliminate impractical assumption,
Figure 1. Energy structure of electric power.
and allows both users initiated jobs and EMS initiated jobs, more flexible requests. K. Khezeli et al. issued risk sensitive learning and electrical pricing for demand response , and so on. Above all, demand response research results are reducing demand fluctuation, making the load curve more smoothness and improving forecasting accuracy.
The other way is controlling the side of supply (include generators, optimize adjustment system). Many researchers focus on the side of generation  - .  proposed a wireless-coded power control approach for double-feed-induction wind generators. This system uses adaptive neuro fuzzy control method to improve the system robustness. In recent years, the state of research on photovoltaic electricity generator dynamic modeling ways is reviewed, such as different classifications for PV cell modeling methods, piecewise linear circuit and analytical and numerical techniques, etc. . In , I. Jayawardene and G.K. Venayagamoorthy presented an approach that predicts the output of PV power plant use current weather parameters, named adaptive neuro-fuzzy inference system (ANFIS), and the predicted accuracy MAPE (mean absolute percentage error) is 25.8.
In adjustment and electrical power system optimization aspect, some methods are published        . In , research a smart control strategy to dample power system stabilizer (PSS), apply ANFIS technology obtained very good dampling of PSS and almost eliminates the oscillations in the power system. In , the authors used smart energy storage system module to reduce the fluctuation of wind energy system, used ANN for wind forecast, and used improved bacterial foraging algorithm to realise multi-objective optimization, consider some conditions, such as operating cost, net emission, pollutions, electrical power balance. Ref.  proposed a novel neuro-controller into the multi-machine power system and provided an adaptive supplemental control signal for each exciter to deal with the speed difference each generator. Refs.     , present optimization for energy system. DeSantis posed genetic algorithm for power flow management in a micro-grid, and use genetic algorithm adaptive tune the rules to the suitable system. O. Nadjemi et al. utility cuckoo search algorithm to optimize hybrid PV and wind energy system sizing. F. Almonacid et al. review of techniques on neural networks for photovoltaic technology. W.L. Theo et al. review the distributed generation system planning and optimisation techniques.
Related works in recent years some researches were published  - . In , a kind of scenario that maximizes social welfare for the question of transmission losses, and a consensus-based algorithm was designed and proved its convergence and optimality. In , presented a routing economic dispatch algorithm, the main goal is to deduce the transmission loss by optimizing the rout of power flow. Reference  described a protocol, which is robust mixed weather forecasts to improve the performance of a hybrid microgrid and reducing costs. In , a decentralized approach for economic dispatch in smart grid was proposed, which is performed based on a distributed multi-agent system. The protocol is comprised of two strategies, consesus strategy and threshold strategy, the former is due to adaptive updating rules and the latter works for frequency regulation. In , proposed a multi-agent optimal microgrid control strategy in order to realise distributed energy resources economic dispatch. The lower agent performs frequency adjustment on line, and the upper level implements distributed communication between agents for microgrid management. Above all, many results focus on research demands or generators control, but how to optimize control different technology generations become the new problem, especially we are in the times of large-scale power grid. In this paper, we will research how to optimize controlling all classes of technologies energy in a power system based on the optimal cost. We try our best to find a method to perform the optimization to balance between the energy supply and the power demand. Our idea’s work details will be shown in Section 3.
The main contributions of this research are summarized as follows:
■ The costs of analysis power grid not only contains economics but also generator’s emission, so we use a total cost (a society cost) as our optimized goal. With society development, the emission effect becomes an attentive event, hence multi-optimal goal needs to be considered, and in economic aspect, operation and maintenance are major considered. The weights of consisting total cost can be change to obtain a different optimal goal.
■ Use hierarchical strategy to optimize our goal, the central level implements active power dispatch in the best way according to configuration table, the lower control level convert Pdispatch to control value u to perform P out, at the same time calculate the generator’s next the capacity of output according to the local weather and generator work state, then feedback the result Pf to the central level to update configuration table.
■ Embed load forecast technology into the central level, strategy implement power dispatch based on forecast result suit to the Pf.
■ Dispatch protocol is a form convenient to show, save and update on time.
This paper is organized as follows: Section 2 explains the problem and gives some preliminaries about machine learning technology. Section 3 states the idea’s detail of this paper, and constructs optimized dispatch system model. Numerical simulations are given in Section 4. Some results and conclusions remarked are described in Section 5. The last but not the least is some acknowledgements.
2. Problem Presents and Preliminaries
For the further analysis, the following contents are needed.
2.1. SVM Regression Theory in Brief 
Introduce SVM’s regression basic theory start with linear regression. When parameter W satisfied KKT the best linear regression hyperplane:
where are parameters of space, Lagrange multipliers and .
If nonlinear regression:
where , and the weight vector of the kernel , therefore, regression hyperplane rewrite as follow:
We use SVM’s regression theory to forecast electrical power load.
2.2. Main Energy Consists of Electricity
Generating technology including all kinds of methods, for example, traditional way hydropower plant, coal-fired generator, gas fired generator, and new energy such as Nuclear, wind power, photovoltaic generation, bioenergy power, tidal power station, and so on. Here we consider mainly most common generations technology, shown in Figure 2.
Operation costs are different for all kinds of generating technology. According to , we obtained the greenhouse gas emissions of different electricity. International Energy Agency (IEA) gives world energy investment outlook 2014, presented an average yearly O & M, include maintenance, asset, labour, management and some important task . In  defined operation cost includes fuel, maintenance and labour costs. All the costs and GHG are shown in following Table 1.
2.3. Question Formulation
We present such a goal function as below Equation (4).
Figure 2. The main technologies of producing electric power energy.
Table 1. Operation and maintenance cost and GHGs of main power technology.
where denotes dispatch power of the generator i, denotes the function on generator, denotes environment situations, generation type class and output ratio of the generator i respectively. The parameter will get different consider based on our optimized purpose, is designed for environment situation, for example if its night time and daytime we should give different considering to solar energy. Here, we mainly aim to the total cost including many contents like Table 1, so we can get . And about denotes the situation of tracking the best output of a generator.
where denotes the total generations of all running generators in the power grid, describes the total demand of the power grid. denote the maximal generation and demand respectively. is the goal cost include minimize total cost 6 and track the best output power of the generator.
2.4. CLCT Data Obtained and Pre-Prepare
Here we normalize the cost of different main power technology to convenient to analysis, the normal method shown in (6).
where, means the cost of the n item of i type generator, denotes the normal cost of . is the total cost of three type cost of a generator described in Table 1, is the coefficient of , we can change it to fit different needs. For example we just keep the of GHG when only consider air emission and let the others equal zero.
We get the bar chart of costs about generators according to Table 1 and above normal algorithm of Equation (6) are shown as following Figure 3. And power system data comes from European Statistic Report https://www.entsoe.eu/data/statistics/.
We get the power hourly load data of BG, and divide original power data into training data and testing data. Firstly, we use three days data for training and testing, then we use the head of eighteen data of a day as training data, the rest data of the day for predicting.
3. CLCT Design Optimize Protocol
In order to realize power dispatch in the future smart grid, we propose a hierarchy optimize protocol is shown in Figure 4. Where, the theme of scenario is the grid dispatch strategy, the agent from 1 to n is generator system local controller, generator from 1 to n denote the generating device. we give such as the explanation about the strategy scheme, dispatch centre dispatches Pw to every agent, then agent converts it to control variable u to control generator make it output corresponding active power Pout when the grid frequency fluctuate extra the stability range. In the feedback route, according to the work state parameter w and real-time weather condition agent feedback the next generate active to dispatch centre, then the dispatch centre can give correct power dispatch configuration table.
Figure 3. All kinds of costs of different type generators, (a) denotes operation cost include fuel, maintenance and labour costs; (b) denotes include maintenance, asset, labour, management and some important task costs; (c) denotes emission factors are based on the Global Emission Model for integrated systems database version 4.5 ; (d) denotes integrated cost of different source energy.
In this strategy, the most important thing is to decide controlling which generators in a grid. Our scenario is shown in Figure 4, it is realized by sorting all the generators in the power grid by its cost value from smallest to the biggest, which include generator’s economic cost and environment affecting cost. Then we select generators start from the first one satisfied our goal. When more one generators have the same cost we select generators according to the second-rank-factor by generator’s output rating from big one to small one. This way can satisfy prior to use bigger generator output as basement load, and reduce generator’s power loss. So we design the generator’s work state form sorted by rank two.
Notes: the result of this algorithm is a dispatch generating configuration table according to minimize total cost, and consider Equation (4) and individually, is the first place and behind of it. We realize through the first factor sort based on total cost of the generator, realize via the second factor according to active power from bigger to smaller.
The scheme of the strategy we use the process as following to show you. First of all, we introduced the upper strategy is how to create dispatch power data. Then we introduced the lower control agent how to do it after getting the dispatch task.
➢ Step 1: Data prepare. The parameters of generator were shown 1 normalized as Table 2, according electric power load data to forecast next power load value.
➢ Step 2: Design a form for output strategy and initialize it. This form is ranked by two parameters, that is generator’s cost and generator’s output rating individually. When first time running system, we must let the work state column of the form equal zero.
➢ Step 3: Load forecast. We predict next some time load in the power grid use machine learning method by last period time running load data in the grid. then we got a predicted value of the next load Pf.
Figure 4. Schematic chart of our scenario of selection algorithm.
Table 2. Operation and maintenance cost and GHGs of main power normalize technology.
➢ Step 4: Based on Pf implement dispatch strategy. Firstly we need to get the generators’ cost from the form, then choose generators to assign active power which fits our protocol rules, about its details as shown in algorithm Figure 5.
➢ Step 5: Ahead of step 4, we have got the dispatch table, and know the work state of all generators in a grid in the next work’s situation, that’s the column workstate in the form. This step we need to do some jobs on converting and control in lower agent, convert the dispatch active P to control generator’s variable u to perform active output. The method is that when grid frequency fluctuate range extra power grid allowance trigger controller output u, about some this rule details refer from Figure 6 to Figure 8.
4. CLCT Simulation
4.1. Load Forecast of Power Grid
Load forecast schematic described in Figure 9, when the power grid work on t1, we need to predict t2 load use last period data. We use predict power data were taken from Bulgaria (BG) power data of March 2017, first, we give one-month load data as shown in Figure 10. In order to conveniently observe trained the SVR model use three days data, then use the last five data of first-day testing. Model accuracy is calculated use Equation (7) and the result shown in Figure 11.
where, denotes forecast value, power grid real data. based on Figure 12 we got the RMSE is 54.02 MW, MAPE is 1.09%, which indicates our forecast is efficient.
4.2. CLCT Scenario of Dispatch Active Power
Suppose BG power grid has a consisted energy as shown in Table 3. This table is the original status, so all of the work states are zero. We suppose optionally t1 power grid load is 546,000 kw, after running power dispatch algorithm we can
Figure 5. Strategy of our dispatch power in smart grid.
Figure 6. The chart of the power and control informs flow routing of our dispatch optimize strategy.
get the dispatch table as shown in Table 4. The figure shows that we just need G1, G3, G14, G18, G29 on working, when load is 780,000 kw on t2, the dispatch rules as Table 5, which shows just need G1, G3, G9, G11, G24, G26, G14, G18, G29 are working on rated power state.
Simulation results show that optimized algorithm of dispatch is convenient to realize by second rank sorting, and all of the worked generators are working on rated power, that’s means it working on the highest efficient except only the last one.
Figure 7. The flowchart of power grid active power dispatch algorithm of central level.
Figure 8. The flowchart of local agent control algorithm. fs is the standard frequency of power grid, and dispatch come from strategy centre.
Figure 9. Forecast scheme describe.
Figure 10. A month power actually load in BG.
Figure 11. Power load forecast in BG using SVR. (Note the numbers of axis x such as “20” that’s mean the time from 19 clock to 20.)
Figure 12. Forecast chart, use the data from 0:00 to 18:00 as train set and the rest of a day as test to forecast.
Table 3. A power grid energy consists of multi technology type.
Table 4. Dispatch result when forecasting value is 546,000 kw.
Table 5. Dispatch result when forecasting value is 780,000 kw.
Notes: Hypothesis we have got a power grid energy consists of Table 3, that is the original situation, the column of power_E will be changed. When the weather changed the lower agent will change the generator’s power_E, for example, the PV’s power_E is different between sunny day and cloudy day.
5. Conclusions and Future Works
In this paper, we address a new approach to realize power configuration in the smart grid, and make dispatch strategy reflect in a configuration table based on operation cost and environment effect cost. This method consists of two-level parts, dispatch configuration central and lower control agent of the generator. In the central, we mainly did these things: dispatching optimized calculation, converting it into configuration table, and updating it. The lower control agent aims to realize control generators according to central and feedback generators’ new best working power based on the situation. In the central level, use machine learning to predict power load, and address the best-optimized cost function to adapt to the different control strategies. Then we do dispatch based on the table, which can be updated online based on environmental conditions. The signs of triggering controller are both active power and system f. The lower control agent carries out the generator to track f along with the best optimized cost function. In the numerical simulation, we used BG grid load as forecast data to train machining learning model, gave two predicted load data at random, and took them as the cases. We obtained good simulation results, right dispatch configuration table, and the table has been updated online. So, this scenario makes optimized dispatch algorithm more convenient to realize and effective.
In the future work, we will keep on optimizing strategy research, consider more situations when designing cost function, and try our best to get a real large-scale power grid, which includes more generated technology.
This research was financially supported by the National Science Foundation (No. 41804148), the Education Department of Sichuan Province Foundation (No. 18ZB0273) and Leshan Science and Technology Bureau Foundation (No. 15NZD100), China. The authors would like to thank them. The power data used in this research comes from Open Power System Data: http://www.open-power-system-data.org/, so we also thank Open Power System Data group open data.
 Fang, X., Misra, S., Xue, G. and Yang, D. (2012) Smart Grid the New and Improved Power Grid: A Survey. IEEE Communications Surveys & Tutorials, 14, 944-980.
 Dusparic, I., Harris, C., Marinescu, A., Cahill, V. and Clarke, S. (2013) Multi-Agent Residential Demand Response Based on Load Forecasting. in Technologies for Sustainability. 1st IEEE Conference on SusTech, October 2013, 90-96.
 Capovilla, C.E., Casella, I.R.S., Sguarezi Filho, A.J., Azcue-Puma, J.L., Jacomini, R.V. and Ruppert, E. (2014) A Wind Energy Generator for Smart Grid Applications Using Wireless-Coded Neuro-Fuzzy Power Control. Computers and Mathematics with Applications, 68, 2112-2123. https://doi.org/10.1016/j.camwa.2013.06.030
 Gandhi, P.R. and Joshi, S.K. (2014) Smart Control Techniques for Design of TCSC and PSS for Stability Enhancement of Dynamical Power System. Applied Soft Computing Journal, 24, 654-668.
 Motevasel, M. and Seifi, A.R. (2014) Expert Energy Management of a Micro-Grid Considering Wind Energy Uncertainty. Energy Conversion and Management, 83, 58-72. https://doi.org/10.1016/j.enconman.2014.03.022
 Jayawardene, I. and Venayagamoorthy, G.K. (2015) Comparison of Adaptive Neuro-Fuzzy Inference Systems and Echo State Networks for PV Power Prediction. Procedia Computer Science, 53, 92-102.
 Ni, Z., Tang, Y., Sui, X., He, H. and Wen, J. (2016) An Adaptive Neuro-Control Approach for Multi-Machine Power Systems. International Journal of Electrical Power and Energy Systems, 75, 108-116.
 Koohi-Kamal, S., Rahim, N., Mokhlis, H. and Tyagi, V. (2016) Photovoltaic Electricity Generator Dynamic Modeling Methods for Smart Grid Applications: A Review. Renewable and Sustainable Energy Reviews, 57, 131-172.
 De Santis, E., Rizzi, A. and Sadeghian, A. (2016) A Hierarchical Genetic Optimization of a Fuzzy Logic System for Flow Control in Micro Grids. Applied Soft Computing Journal. http://arxiv.org/abs/1604.04789
 Mahmoud, M.S., Alyazidi, N.M. and Abouheaf, M.I. (2017) Adaptive Intelligent Techniques for Microgrid Control Systems: A Survey. International Journal of Electrical Power & Energy Systems, 90, 292-305.
 Nadjemi, O., Nacer, T., Hamidat, A. and Salhi, H. (2017) Optimal Hybrid PV/Wind Energy System Sizing: Application of Cuckoo Search Algorithm for Algerian Dairy Farms. Renewable and Sustainable Energy Reviews, 70, 1352-1365.
 Almonacid, F., Fernandez, E.F., Mellit, A. and Kalogirou, S. (2017) Review of Techniques Based on Artificial Neural Networks for the Electrical Characterization of Concentrator Photovoltaic Technology. Renewable and Sustainable Energy Reviews, 75, 938-953. https://doi.org/10.1016/j.rser.2016.11.075
 Theo, W.L., Lim, J.S., Ho, W.S., Hashim, H. and Lee, C.T. (2017) Review of Distributed Generation (DG) System Planning and Optimisation Techniques: Comparison of Numerical and Mathematical Modelling Methods. Renewable and Sustainable Energy Reviews, 67, 531-573. https://doi.org/10.1016/j.rser.2016.09.063
 Indragandhi, V., Subramaniyaswamy, V. and Logesh, R. (2017) Resources, Configurations, and Soft Computing Techniques for Power Management and Control of PV/Wind Hybrid System. Renewable and Sustainable Energy Reviews, 69, 129-143.
 Zhao, C., He, J., Cheng, P. and Chen, J. (2016) Consensus-Based Energy Management in Smart Grid with Transmission Losses and Directed Communication. IEEE Transactions on Smart Grid, 8, 2049-2061.
 Boroojeni, K.G., Amini, M.H., Iyengar, S.S., Rahmani, M. and Pardalos, P.M. (2017) An Economic Dispatch Algorithm for Congestion Management of Smart Power Networks. Energy Systems, 8, 643-667.
 Craparo, E., Karatas, M. and Singham, D.I. (2017) A Robust Optimization Approach to Hybrid Microgrid Operation Using Ensemble Weather Forecasts. Applied Energy, 201, 135-147. https://doi.org/10.1016/j.apenergy.2017.05.068
 Lu, P., Zhao, J., Yao, J. and Yang, S. (2017) A Decentralized Approach for Frequency Control and Economic Dispatch in Smart Grids. IEEE Journal on Emerging and Selected Topics in Circuits and Systems, 7, 447-458.
 Samimi, A., Nikzad, M. and Siano, P. (2017) Scenario-Based Stochastic Framework for Coupled Active and Reactive Power Market in Smart Distribution Systems with Demand Response Programs. Renewable Energy, 109, 22-40.
 De Azevedo, R., Cintuglu, M.H., Ma, T. and Mohammed, O.A. (2017) Multiagent-Based Optimal Microgrid Control Using Fully Distributed Diffusion Strategy. IEEE Transactions on Smart Grid, 8, 1997-2008.
 Zeng, B., Wu, G., Wang, J., Zhang, J. and Zeng, M. (2017) Impact of Behavior-Driven Demand Response on Supply Adequacy in Smart Distribution Systems. Applied Energy, 202, 125-137. https://doi.org/10.1016/j.apenergy.2017.05.098
 Hu, X., Zhou, H., Liu, Z., Yu, X. and Li, C. (2017) Hierarchical Distributed Scheme for Demand Estimation and Power Reallocation in a Future Power Grid. IEEE Transactions on Industrial Informatics, 13, 2279-2290.
 Yu, W., Li, C., Yu, X., Wen, G. and Lu, J. (2018) Economic Power Dispatch in Smart Grids: A Framework for Distributed Optimization and Consensus Dynamics. Science China Information Sciences, 61, Article ID: 012204.
 Meng, W. and Wang, X. (2017) Distributed Energy Management in Smart Grid with Wind Power and Temporally Coupled Constraints. IEEE Transactions on Industrial Electronics, 64, 6052-6062. http://ieeexplore.ieee.org/document/7878614
 Shih, Y.-H. and Tseng, C.-H. (2014) Cost-Benefit Analysis of Sustainable Energy Development Using Life-Cycle Co-Benefits Assessment and the System Dynamics Approach. Applied Energy, 119, 57-66.
 IEA (2014) Power Plant O&M: How Does the Industry Stack up on Cost? Power Technology. Tech. Rep.