Data-Driven Repeated-Feedback Adjustment Strategy for Smart Grid Pricing

Applying the optimal problem, we get the optimal power supply and price. However, how to make the real power consumption close to the optimal power supply is still worth studying. +is paper proposes a novel data-driven inverse proportional functionbased repeated-feedback adjustment strategy to control the users’ real power consumption. With the repeated-feedback adjustment, we adjust the real-time prices according to changes in the power discrepancy between the optimal power supply and the users’ real power consumption. If and only if the power discrepancy deviates the preset range, the real power consumption in different periods will be adjusted through the change of the price, so the adjustment times is the least. Numerical results on real power market show that the novel inverse proportional function-based repeated-feedback adjustment strategy brought forward in the article achieves better effect than the linear one, that is to say, the adjustments times and standard error of the residuals are less. Meanwhile, profit and whole social welfare are more.+e proposed strategy can obtain more steady and dependable consumption load close to the optimal power supply, which is conducive to the balanced supply of electric energy.


Introduction
More and more research has focused on environmental protection and energy conservation. Due to the nonrenewable and high pollution of traditional energy, people are more and more inclined to use clean and renewable energy [1]. e rapid development of new energy vehicles may increase the power demand. We need to do more to balance the power supply to ensure the safety and dependability of the power grid.
As the abovementioned problems need to be solved urgently, many countries have extensively researched and applied the smart grid (SG). SG solves energy problems through superior electronic communication technology and power grid system [2]. Smart meter, one of the essential nodes in SG, has a real-time interaction function and can realize interactive communication between consumers and power suppliers at any time, due to the scientific and technological progress of intelligent algorithms and energy networks.
As the demand response mechanism of the smart grid controller, combined with smart meters, shows us a picture of real-time pricing (RTP) [3,4], RTP can realize real-time price and load interaction between consumers and power suppliers more elastically and cleverly. is is an advantage that other traditional pricing strategies do not have. Hu et al. proposed a distributed algorithm to solve the power dispatching strategy between a power company and multiple power users [5]. Goudarzi et al. put forward a game theory method considering both incentive and price in reducing power consumption and improving users' benefit [6]. Zhao et al. developed a model to obtain dynamic pricing and lead the consumers' power consumption mode and update the power load [7]. e prime intent of implementing RTP in SG is to obtain optimal power consumption, power supply, and electricity price. When power suppliers implement the optimal electricity price, users can use electricity according to the optimal electricity consumption, which can run steadily. However, the reality is the real power consumption alters radically and reduces the grid's steadiness and dependability. Up to now, the researchers have seldom paid attention to how to keep the real load steady. Kb and Ms brought forward a bidirectional converter, providing more optimized control strategies for controlled power consumption administration [8]. Yildirim and Khooban studied a controller of noninteger order for the stable LFC of the MGs [9].
For the above reasons, we want to research a strategy that changes the real-time price to control the real power consumption within a specific boundary. He et al. studied an automatic process control (APC) strategy in a smart grid to get steady power consumption [10,11]. Dennis et al. developed a diminutive biomass energy combustor for process heat generation, which is on the basis of "maximum combustion current" technology and has repetitive feedback APC [12]. Efheij and Albagul presented a comprehensive repeated-feedback process controller that is a neural network to maintain stability [13]. In fact, it is still a challenge to choose which controller to control the power consumption process by using the repetitive feedback regulation method, and there is little literature on this.
In this paper, we propose a novel data-driven inverse proportional function-based repeated-feedback adjustment strategy to control the discrepancy between the users' real power consumption and optimal power supply. e repeated-feedback adjustment strategy is incorporated into the pricing algorithm to adjust real-time pricing by minimizing the deviation from an objective, which is that the real power consumption equals the optimal power supply. e discrepancy is a discrete-time series, for it changes at fixed intervals, say, every hour. For SG, experience has shown that frequent changes in electricity prices are not feasible, driving away customers [14]. To solve these problems, we forecast power consumption and optimal power supply discrepancy of the next period from historical data with an exponentially weighted moving average (EWMA) controller [15,16]. During different periods, we set an EWMA forecast for the discrepancy as the controller. If and only if the controller exceeds the established range, can we adjust the price. Because the EWMA of historical data is used as the controller, the adjustment does not depend on the abnormality in a certain period, but the development trend in this period.
us, the adjustment times can be reduced while obtaining more stable power consumption and maintaining the balance between supply and demand. With the help of the smart meters for automatic monitoring the next period, an optimal data-driven repeated-feedback adjustment strategy is given. Among the strategies forecasting the future value in the moving average time series, the EWMA method is efficiently minimises the mean square error. In recent years, many kinds of literature have studied how to use EWMA controllers to form control charts to monitor future data [10,11,17,18]. To monitor carbon emissions, Shamsuzzaman et al. integrated a Shewhart control chart with an EWMA scheme to reduce costs [19]. Zhang et al. focused on detecting the anomalous changes by Wilcoxon rank-sum statistics based on distributed-free EWMA [20]. e specific structure of the remainder of this article is as follows. Section 2 describes the system model and knowledge reserve. We demonstrate the problem formulation and solutions in Section 3. Section 4 offers numerical tests and analysis. In Section 5, we conclude this research.

System Model.
Suppose that the smart grid includes a power supplier, a lot of power users with smart meters, and some rules to be followed by both parties. Smart meters monitor and adjust power load through the price adjustment and can harmonize every user with the power supplier and the other users. Power users and the power supplier exchange information such as electricity price and power load every hour through communication facilities such as the network. e notations and variables are summarized in Table 1. e cycle time in our system is separated into H periods, and the set is Let ϖ denote the number of users, and the set of power users is denote the power consumption used by every user n ∈Ξ in period τ ∈ Λ, l τ n ≤ d τ n ≤ L τ n , where l τ n and L τ n are explained in Table 1.

Profit Function and Benefit Function. Let
denote the power supply of power supplier in period τ and g(S τ ) represent the cost providing S τ in period τ. Assuming that supply can meet consumption, Table 1. According to [10,11], the power supplier's power supply cost function in period τ is where α > 0, β, c ≥ 0 are shown in Table 1. e power supplier's profit function in period τ is where ρ τ is defined in Table 1.
In economics, experts used to characterize the degree of happiness generated from power consumption with a utility function. In this paper, it is assumed that the utility increases with user power consumption and will not increase when it increases to a certain amount and will not grow when it increases to a certain amount. Let ϑ τ n > 0 denote the user n's preference. We model a logarithmic function as the utility function [11]: where user n's benefit function in period τ is We assume that the power supplier's power supply is not less than power consumption in total in each period τ, e optimal problem is depicted as [10] max where the variables are summarized in Table 1 and functions g(·) and U(·) are denoted in (1) and (3), respectively.

Preliminary
Knowledge. e optimal power supply S τ * , power consumption d τ * , and electricity price ρ τ * in period τ can be obtained by solving the optimization problems (7) and (8). Ideally, the users' real power consumption is consistent with the optimal power supply. However, the real situation is that there is a particular discrepancy between real consumption d τ and optimal supply S τ * , and even the discrepancy fluctuates widely in some periods. e real power consumption does not have the stability and dependability of the optimal power supply. e power discrepancy in period τ is described as [10,11] To keep the real power consumption dependable and steady, we want to adjust d τ to S τ * by price incentive. Users may reduce the power consumption in peak time when the price increases and increase it in valley time when decreased. Next, we need to incorporate the optimal problems (7) and (8) into the exponentially weighted moving average (EWMA) process to minimize the standard error.

Problem Formulation and Solutions
3.1. Problem Formulation. Undependability implies that there is no fixed mean value globally, so we need to study the local average and the deviations. We use an EWMA to represent the local average. Definition 1(see [10]) is called the power discrepancy EWMA in next period τ + 1+1, where λ � 1 − ] is the parameter.
Definition 3 (see [11]). ρ τ is called the adjusted price EWMA in next period τ + 1. Next, we will discuss a data-driven repeated-feedback adjustment strategy and reduce deviations from the objective in power discrepancy utilizing process monitoring and adjustment. If holds at period τ + 1, the price will be adjusted, where μ is the objective, standard load discrepancy of the optimal problem and L is the boundary. As we know, if the real power consumption equals the optimal power supply, it will be best. So, the standard power discrepancy in our model is μ � 0. Let L 1 > 0 be the upper boundary and L 2 < 0 be the lower boundary; we reformulate (13) as Via (14), the automatic monitoring process is developed. In period τ + 1, if ς τ+1 ≥ L 1 , the prices will be gone up, the power consumption in current period will shift to other periods, thereby reducing the power consumption, and ς τ+1 is adjusted to objective ε 1 ∈ [0, L 1 ). If ς τ+1 ≤ L 2 , to increase the power consumption in the current period, the prices will Variation of electricity price in period τ be diminished, and then, ς τ+1 is modified to the objective ε 2 ∈ (L 2 , 0].

Lemma1. Suppose that the adjusted power consumption is inversely proportional to the change of price. erefore, the revised users' real power consumption is
Proof. If θ τ+1 > 0, the users' real power consumption will decrease, and if θ τ+1 < 0, it increases. erefore, Proof is completed.

Lemma 2. Set ς τ+1
a as the adjusted power discrepancy between the users' real power consumption d τ+1 and the optimal power supply S τ+1 * ; therefore, Proof. By condition, According to Lemma 1 and (25), the adjusted power discrepancy is Proof is completed.

□
According to the data-driven repeated-feedback adjustment strategy, in the period τ, τ � 1, . . . , H − 1, the algorithm for monitoring and adjustment is as follows.

Numerical Tests
In this section, we conduct simulations to demonstrate the effectiveness of the proposed data-driven IPF-based repeated-feedback adjustment strategy through realistic data from [21]. Our simulated smart grid comprises a power supplier and 1000 users (ϖ � 1000). Divide the period of two days into 48 hours (H � 48). e parameters α, β, c in (1) 4 Journal of Mathematics are 0.01, 0, and 0. Each user's utility function is defined as (3), where the preference parameter ϑ is selected randomly from the interval [1,4].

Results' Analysis.
e profiles of power consumption load, power supply, and price data are obtained from Singapore [21]. e data used in the simulation are listed in Table 2. Figure 1 shows the electric energy loads before adjustment.
From Figure 1, we can see that the power supplier's optimal power supply runs stably, but the discrepancy between the users' real power consumption and optimal power supply is relatively large. For the sake of shortening the gap, the power supplier should take action to encourage users to adjust the real power consumption. Our purpose is to reduce power consumption in peak hours and increase it in low hours, so as to achieve the energy-saving effect by the data-driven IPF-based repeated-feedback adjustment strategy, which can lead to steady real power consumption.
Set p 1 � 75 and list the parameters in Algorithm 1 in Table 3. e process of repeated-feedback adjustment from the performance of Algorithm 1 in 48 periods is illustrated in Figure 2. Figure 2 shows that the total adjustments times are 12. e standard error of residuals σ δ is (27) Figure 2 shows that, after applying the algorithm, all points are within the 3σ δ boundary, so there is no anomaly, and we can get steady power consumption.
Journal of Mathematics power consumption, the adjusted users' power consumption is closer to the optimal power supply, achieving the expected effect. Table 3 and Figure 4 illustrate the whole social welfare computed according to (5) and the profits computed according to (2). We can learn from them that the whole social welfare in the proposed repeated-feedback adjustment strategy is significantly higher than the original one because the users' real adjusted power consumption is much closer to the optimal power supply. e profit is slightly higher than the original one because the power consumption is more stable.    By running Algorithm 1, we not only can obtain the optimal adjustment strategy and steady power consumption but also can improve the economic benefits of both sides.

Comparison of Adjustment Effect.
To verify the proposed IPF-based repeated-feedback adjustment strategy is more reasonable to obtain steady and dependable power   Figure 5: Comparison of IPF adjustments (black arrows mark the IPF adjustment process, red arrows mark the LF adjustment process, black solid lines denote original power discrepancy, blue solid lines with circle markers depict IPF EWMA forecast, and magenta solid lines with asterisks indicate IPF adjusted power discrepancy) and LF adjustments (red solid lines with plus sign markers denote LF EWMA forecast and green dash-dot lines indicate LF adjusted power discrepancy). consumption, we compare it with the linear function (after this referred to as "LF")-based strategy model, such as [10], which adjusts the power consumption with the LF. e detailed method is provided in Appendix. e parameters are listed in Table 4, and the comparison is illustrated in Table 4 and Figures 5-7.
It is shown in Table 4 and Figure 5 that the adjustments times and σ δ under IPF adjustment strategy are less than that under LF scenario, and the IPF adjusted power discrepancy is steadier than that of the LF scenario. Table 4 and Figure 6 show that the economic benefits of both sides under the IPF adjustment pricing are more than that under the LF adjustment pricing.
It can be observed in Figure 7 that the change of price under the IPF adjustment pricing is less than in the LF scenario.
e test results mean that it is more reasonable to consider the proposed data-driven IPF-based repeatedfeedback adjustment strategy than the LF scenario.

Conclusion
A data-driven inverse proportional function-based repeated-feedback adjustment strategy that the power supplier may adopt to monitor the consumption power discrepancy between the real power consumption and the optimal power supply is proposed. e power supplier can get the optimal power supply by the optimal problem in the smart grid. Only when the trend of the power discrepancy is identified as an anomaly by exponentially weighted moving average, we will adjust the real-time price. at is to say, the data-driven inverse proportional function-based repeated-feedback  adjustment strategy is conducted only when the power discrepancy deviates far from the standard power discrepancy exceeding either the upper or lower boundary. Appling the data-driven inverse proportional function-based repeated-feedback adjustment strategy, we are able to get the least adjustments times and the steady and dependable power consumption close to the optimal power supply and more whole social welfare and profit. e proposed strategy can be applied to enrich the power grid monitoring and adjustment theory. At the same time, in practical application, it can help power suppliers formulate reasonable electricity price and manage the consumption power.