Next Article in Journal
Testing Multi-Frequency Low-Cost GNSS Receivers for Geodetic Monitoring Purposes
Next Article in Special Issue
Advances and Trends in Real Time Visual Crowd Analysis
Previous Article in Journal
Breast Cancer Histopathology Image Classification Using an Ensemble of Deep Learning Models
Previous Article in Special Issue
Edge Computing and Blockchain for Quick Fake News Detection in IoV
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Closed-Loop Elastic Demand Control under Dynamic Pricing Program in Smart Microgrid Using Super Twisting Sliding Mode Controller

1
Department of Electrical Engineering, University of Engineering and Technology, Mardan 23200, Pakistan
2
Department of Electrical and Computer Engineering, COMSATS University Islamabad, Islamabad 44000, Pakistan
3
Department of Engineering, School of Science & Technology, Nottingham Trent University, Nottingham NG11 8NS, UK
4
Department of Computer Software Engineering, University of Engineering and Technology, Mardan 23200, Pakistan
5
Department of Software Engineering, Bahria University, Islamabad 44000, Pakistan
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(16), 4376; https://doi.org/10.3390/s20164376
Submission received: 1 July 2020 / Revised: 30 July 2020 / Accepted: 31 July 2020 / Published: 5 August 2020
(This article belongs to the Special Issue Applications of IoT and Machine Learning in Smart Cities)

Abstract

:
Electricity demand is rising due to industrialisation, population growth and economic development. To meet this rising electricity demand, towns are renovated by smart cities, where the internet of things enabled devices, communication technologies, dynamic pricing servers and renewable energy sources are integrated. Internet of things (IoT) refers to scenarios where network connectivity and computing capability is extended to objects, sensors and other items not normally considered computers. IoT allows these devices to generate, exchange and consume data without or with minimum human intervention. This integrated environment of smart cities maintains a balance between demand and supply. In this work, we proposed a closed-loop super twisting sliding mode controller (STSMC) to handle the uncertain and fluctuating load to maintain the balance between demand and supply persistently. Demand-side load management (DSLM) consists of agents-based demand response (DR) programs that are designed to control, change and shift the load usage pattern according to the price of the energy of a smart grid community. In smart grids, evolved DR programs are implemented which facilitate controlling of consumer demand by effective regulation services. The DSLM under price-based DR programs perform load shifting, peak clipping and valley filling to maintain the balance between demand and supply. We demonstrate a theoretical control approach for persistent demand control by dynamic price-based closed-loop STSMC. A renewable energy integrated microgrid scenario is discussed numerically to show that the demand of consumers can be controlled through STSMC, which regulates the electricity price to the DSLM agents of the smart grid community. The overall demand elasticity of the current study is represented by a first-order dynamic price generation model having a piece-wise linear price-based DR program. The simulation environment for this whole scenario is developed in MATLAB/Simulink. The simulations validate that the closed-loop price-based elastic demand control technique can trace down the generation of a renewable energy integrated microgrid.

1. Introduction

With industrialisation, population growth and economic development, the dependence on electricity is ever so increasing, and consequently, electricity consumption is on the hike. This increased electricity consumption causes a problem of energy scarcity and environmental degradation. The conventional grid is unable to solve such problems. Thus, smart grid is stimulated as a smart solution. The smart grid introduces novel ways of electricity generation, namely renewable energy. The smart cities in the smart grid accommodate renewable energy sources, the internet of things enabled devices, communication technologies and dynamic pricing servers to meet this rising electricity demand [1].
The electricity generation from renewable energy sources in smart cities employing internet of things enabled devices is drawing a lot of attention from researchers nowadays due to their environment-friendliness and sustainability. Moreover, due to the high electricity consumption of conventional devices and high operational costs of conventional generators, the internet of things enabled devices, and renewable energy generation is preferred [2]. Keeping in mind the advantages of renewable energy over fossil and radioactive fuel-based generation, renewable energy is integrated into microgrids to reduce dependence on the fossil fuel-based power grid, thereby, increasing energy efficiency. Carbon emissions (CO2) are expected to reduce due to renewable energy integrated microgrids [3]. The energy balance of the system becomes more challenging due to wind and solar energy unavailability throughout the year. Therefore, a lot of work is required to address the dependability on fluctuating renewable energy integrated microgrids. In order to meet the demand of the consumers, balance has to be maintained or consequently consumers will face short term outages. To optimally balance the demand with supply, electric load forecasting is mandatory [4]. By installing demand-side load management (DSLM) in smart meters at consumers’ premises, the system will get the demand response (DR) of a consumer which will help to adjust the energy demand with the fluctuating generation [5]. Researchers have also developed new techniques for two-way communication between consumer and supplier end in recent publications signifying closed-loop demand and generation control schemes.
By installing agents-based DSLM systems at the consumer end, consumer demand will become more predictable and deterministic in future smart grids [6,7]. Authors used classical controllers with heuristic approaches to control the frequency regulations for two area power systems [8]. However, the DR of the system is not considered. A sliding mode controller (SMC) is proposed for controlling of automatic generation of interconnected multi-area power systems for the deregulated scenario [9]. Multiple one inputs and outputs data-driven SMC problem of nonlinear discrete systems are presented [10], where authors used the non-parametric dynamic linearization technique and second-order sliding mode control law based on the proportional integration differential (PID) sliding surface to obtain much faster transient response and smaller steady-state tracking error. The chattering phenomenon is slightly reduced and also compared with other methods. Chattering is the phenomenon of finite frequency and finite amplitude oscillations found in the response of implementing sliding mode algorithm. Chattering is caused by the high frequency switching of the sliding mode controller exciting un-modulated dynamics in a closed-loop system. In addition, the optimal gains of SMC are determined through the gravitational search algorithm (GSA) [11]. Various literature are discussed on automatic generation control, however, demand control is not discussed by the authors [12]. An approach for tuning a feedback control system is presented [13], with a linear plant consisting of super twisting sliding mode controller (STSMC), which shows that chattering motion occurs when the linear plant is having greater than one degree. A closed-loop elastic demand control strategy based on dynamic pricing by proportional-integral (PI) controller was proposed [14], although the elastic demand is controlled after 5.5 h but the demand overshoots in the first 5.5 h after the start of simulations. This work contributes to the literature based on the identified research gaps, which is elaborated in the subsequent text.
In this study, we aim to control the elastic demand for future smart grids. For this, we discussed the problem of the elastic demand control and its automation through dynamic pricing and regulating it to the DR programs at the consumer’s end. Then, a brief discussion is conducted on opportunities of closed-loop elastic demand control by employing a dynamic price of demand response programs. In addition, the STSMC is employed to control a closed-loop elastic demand to minimise energy balance error using dynamic energy price of demand response programs. The operation of the proposed model is briefly explained as dependence on a mismatch between demand and supply called closed-loop feedback error (balance error) where STSMC creates the pricing signal and drives the feedback error towards 0 in time. According to the control theory, a closed-loop control system is stable, if its balance error approaches to 0. Thus, in our case, closed-loop elastic demand control based on STSMC obtains energy balance by persistently broadcasting energy prices.
For simulations, we have developed a model in MATLAB/Simulink environment, which is composed of STMC and a dynamic pricing demand response model with feedback. The demand response model developed in Simulink is based on a first-order dynamic system with variable gain. The developed model has applied on an example smart microgrid integrated with renewable energy to control closed-loop elastic demand control for demand-side management. The efficacy of the proposed STMC-based model is validated by comparing it to the benchmark models based on PI controller, FOPI controller, FOPID controller and FOPD controller in terms of objectives. Simulation results illustrate that our proposed STSMC based closed demand control is affective to maintain energy balance while generation fluctuating in smart microgrids.
The structure of the paper is as follows: Section 2 describes related work and in Section 3 existing and proposed methods are discussed. Section 4 discussed proposed architecture. In Section 5, simulation results and formulation of scenarios are demonstrated. Finally, the paper is concluded in Section 6.

2. Related Work

In the literature, various techniques are implemented by researchers in recent years to control the demand of consumers on price-based demand models. Price-based DR models are presented [15,16]. A robust optimisation approach is presented for setting the short-term dynamic retail rates for an 22 asset-light retail energy providers. With this approach, the REP can decide how to participate in forward contracts and call options. In addition, REP can determine the optimal operation of the self-generation DG units [17]. DR for the consumers can be easily implemented through smart meters to solve the unbalance in generation and demand [18]. Flexible load control is developed which is based on the consumer DR for regulations in generation [19]. The efficiency of DR increased [20] by dividing it into three DR programs, i.e., natural DR (nDR), mandatory DR (mDR) and emergency DR (eDR). In literature [21], the author used a binary backtracking search algorithm with ZigBee, smart sockets and binary particle swarm optimisation to reduce energy consumption and electricity cost in peak hours. Authors proposed a model to minimise 10.25% cost by shifting and scheduling of different loads based on price [22]. In addition, by multi-objective particle swarm optimisation (MOPSO), emissions are reduced by charging penalties based on time. By using the model predictive control with pseudocode (M) [23], authors use a battery storage system with solar panels to reduce cost during peak hours. Authors provide a solution which is based on load scheduling and hybrid switch controlling to provide sustainable energy to consumers [24]. It also increased system efficiency and reduced cost of electricity concerning the demand of the customers. Using real-time pricing the consumers are forced to shift its loads towards the wind energy generation to reduce operational cost and per unit electricity cost [25]. An EV user behaviour simulator is introduced, which works in combination with an innovative smart distribution, locational and marginal price based on operation, to understand the influence of the dynamic energy pricing on both demand and supply side. The purpose of doing so is to understand the affect of dynamic pricing on the operation of the smart grid and the electric vehicle (EV) charging cost [26]. Consumer inconvenience caused by DR programs is reduced by mixed-integer linear programming (MILP) algorithm [27]. Using DSLM with the concept of load shifting technique, the author reduced overall peak load demand [28]. By shifting and load scheduling using a fuzzy logic controller with energy management algorithm (EMA), renewable energy generation from wind is increased by 2.5% and solar is increased by 2%. In addition, the fuel cell fuel consumption is reduced up to 4% annually [29]. Based on the operational history of industrial air separation units, the author in [30] presents a dynamic optimisation-based DR scheduling framework. The authors in [31] minimise heating ventilation air conditioning (HVAC) power intake using model-predictive-control (MPC) in peak hours without causing thermal convenience to the consumer and optimise the scheduling of battery which results in the decrease of monthly electricity bill. In generation uncertainty, flexible demand plays an essential role in the improvement of energy demand following generation and thus balancing the energy to some extent [32]. The response of load from DSLM will make the demand of the consumers more predictable and deterministic in near time for smart grids which is based on closed-loop systems with techniques like mild modified intrusive genetic algorithm (MMIGA) and cloud based infrastructure (CBI) [33,34,35]. In smart meters, the agents of the DSLM system can decrease the electricity bills of consumers at peak hours [36]. Authors with the help of a home energy management system, optimise the energy consumed by the appliances in a smart home [37]. Appliances are classified based on its operation priority to the consumer as elastic, inelastic, controllable, uncontrollable, interruptible, uninterruptible, delayable, etc. [38,39,40,41,42]. The related work in terms of techniques, models, objectives, results, and limitations is summerized in Table 1.

3. Existing Work and Proposed System Model

The performance of the integral controller (I), PI controller, PID controller and integral derivative controller (ID) are discussed whose parameters are tuned through the genetic algorithm (GA) through which generation is controlled [9]. The results are taken separately and then compared in terms of undershooting, overshooting and settling time of the deviations. Results have been taken with SMC for the same scenario which is better than the classical controllers. The generation from multiple source generation and DR of the consumer are discussed [43]. Here, the fractional-order classical PI and PID controllers are used for tracing the generation by demand of consumers under uncertain conditions. Although the demand traced the generation, there is a clear gap between both of them. In addition, a PI controller [14] is used for balancing the error or the mismatch between the generation and the consumers’ demand. Consumers’ demand is adjusted according to generation. The gap between the demand and generation [43] has become narrower [14] but the demand traced the generation after an overshoot for the first 5.5 h. The STSMC is unquestionably robust and accurate when deployed for stabilising nonlinear-systems. The STSMC has attracted the researcher community and gained a considerable research interest in the area of control. The results of various types of SMC are discussed in detail in the literature [44]. The Lyapunov function is proposed for SMC for the case when it is affected by bounded external perturbations and estimated the global finite time of stability [45,46]. Additionally, a global non-smooth Lyapunov function is proposed for SMC which is based on the combination of global exponential and finite-time stability of switched systems [47]. Related discussions for the SMC on the similar topics can also be found [48,49,50]. A step by step SMC is used for an application in robotics and aerospace [51,52].

3.1. Overview of Fractional Order Proportional Integral (FOPI) Controller

The replacement of the integral and derivative operators of the classical PI controller leads to a controller called fractional order PI controller. The application of real order for the integral and derivative operators is the significant foundation of fractional calculus. Numerous descriptions exist in the literature for the FO derivative, but an FOPI controller proposed for the closed-loop elastic demand control is employed [43]. In addition, for the other versions of classical controllers, replacing the operators for the integrals and derivative will lead to the formation of fractional order controller for the respective controller. Block diagram of using FOPI controller in simulations for closed-loop demand control is illustrated in Figure 1.
The transfer function for the version of FOPI controller commonly written as:
C F O P I ( s ) = K p + K i s λ
where, K p is the proportional gain coefficient, K i is the integral gain coefficient and the parameter λ is the fractional integrator order. A fourth order integer order (FOIO) approximation of FO integration by adopting the well known Continued Fractional Expansion (CFE) method [43].

3.2. Overview of Proportional Integral Derivative (PID) Controller

The PID control loop mechanism is the best possible solution for minimising the online and unknown faults in real time operations. Applications of the PID controller in industry is to access the single fine grained measurements for the improvement of the closed-loop operations. Tuning of the coefficients of PID controller is a challenging step for the researcher and in itself has a wide area of research. For simplicity of the controller, we used the coefficients’ values used for tuning the coefficients of the PID controller [43]. Block diagram of using PID controller in simulations for closed-loop demand control is illustrated in Figure 2.
C ( t ) = K p e ( t ) + K i 0 t e ( t ) d t + K d d e ( t ) d t
PIDs have 3 coefficients; K p , K i and K d . Where K p is the proportional gain constant, K i is the integral gain constant, K d is the derivative gain constant and e is the error defined as the difference between the set-point and the process variable value. The relation of I/O of an ideal relation for the PID controller in s domain is given as:
C P I D ( s ) = K p e + K i e 1 s + K d e s

3.3. Overview of Proportional Integral (PI) Controller

In closed-loop industrial processes, the combination of proportional and integral gains is the most widely used classical controller which plays vital role in balancing of level, flow, pressure and other such like industrial process variables that do not involve too much delays. While balancing the industrial plant problems, the PI controller still has problems that inherit with the controller actions. Usually there is high overshoot, initial value and a greater response time of using PI controller for a larger load demand. The author used a PI controller for elastic demand control [14]. There is an overshoot for the first 5.5 h in consumers’ demand which results in the lack of supply of energy at the consumers’ end. PI controller takes long stabilisation time with overshoot while dealing high variations in the system which effects the system stability at the start of process. A conventional PI controller has 2 gain coefficients, K p and K i . K p is known as the proportional coefficient while K i is the integral coefficient of the PI controller. The relation of I/O of a PI controller can be written as:
C P I ( s ) = K p e + K i e 1 s
where e is the error signal in negative feedback closed-loop system. Block diagram of using PI controller in simulations for closed-loop demand control is illustrated in Figure 3.

3.4. Overview of Fractional Order Proportional Derivative (FOPD) Controller

A specific form of the most common fractional order PID control where I and fractional operator of I is equal to zero which forms a fractional order proportional derivative controller. The relation of I/O for the FOPD controller is commonly written as;
C F O P D ( s ) = K p + K d s α
where K p is the proportional coefficient and K d is derivative coefficient value of FOPD controller having α as fractional operator. Block diagram of using FOPD controller in simulations for closed-loop demand control is illustrated in Figure 4.

3.5. Super Twisting Sliding Mode Controller Proposed for Closed-Loop Elastic Demand Control

The STSMC algorithm is used for the control of the uncertainty of the linear plants to determine the robustness [53,54]. STSMC u ( t ) is given as follows:
C S T S M C ( t ) = K 1 e + K 2 ( | e | ) s i g n ( e ) + v
v = K 3 s i g n ( e )
where, e is the error signal, K 1 , K 2 , K 3 are the parameters of the STSMC and sign is a function used to reduce the chattering phenomenon in STSMC. These parameters are tuned for the purpose to obtain optimal results.
One of the applications of STSMC is controlling nonlinear uncertain systems. STSMC has 3 coefficients; K 1 is the proportional control design constant, K 2 should be ranging between [0 1] and K 3 is the integral control design constant. As in this case, there is an inverse relationship between the price and demand of the system that is why the values of K 1 and K 3 should be negative, to gain energy balance.

4. Proposed System Model

The purpose of this work is to set up tuning rules for achieving an a priori nominative settling time for planar systems. The feedback of the system is formed by using the STSMC to estimate one of the states. States which are estimated and measured, are then used by the STSMC for tuning in the presence of external disruption. We propose STSMC in this work because of its robustness and accuracy. The proposed STSMC technique narrows down the gap and the demand traces the generation profile in an optimal manner. This work is the continuation of our earlier conference paper [55]. With the increase in population, the energy demand has drastically increased. To cope with this increased electricity demand, the distribution system operator provides DR programs. In literature, various DR programs exist like price-based DR programs, and incentives-based DR programs to motivate consumers to take part in demand side management [5]. In this work, we use dynamic energy pricing which is one of the price-based DR programs. Energy must be supplied for operations in real-time in case there is a change in generation from the supply side. Therefore, we have to control the demand of consumers according to generation to ensure the supply of energy in intermittent conditions. The proposed model is shown in Figure 5. It comprises of the supply side, dynamic price generation server and DSLM.
The supply for the proposed model is fluctuating renewable energy that will be supplied from a local renewable energy grid station with a utility bulk power supply which is used as a backup source. This bulk electricity from utility will be supplied when the generation from renewable energy is deficient. The renewable energy supply profile values are taken from [56] as shown in Figure 6, which is increased from kWh to MWh because the smart microgrid considered in this work is serving highly dense residential, commercial and industrial sector, where consumers demand is high and required more energy. In addition, generation values were increased to MWh level for fair evaluation of our proposed model and scenario built for the simulation purpose. Wind and solar energies have taken for the production of renewable energy at the local microgrid along with bulk utility supply from transmission lines. The dynamic price generation server comprises of the following main components;
  • A power system that consists of generation, transmission lines and distribution system.
  • A communication system between the supply side and the demand side. This communication is done through power lines, modems, routers, wireless technologies, etc.
  • An STSMC which originates a price signal based on the mismatch between the instant demand and generation.
The error signal feeding in to STSMC can be expressed through Equation (8);
e = G ( t ) D o ( t )
where G(t) is the instant generation and Do(t) is the instant demand of the consumer which feedback to the system again numerically given by the mismatch between the instant demand and the instant generation known as error (e) into the STSMC.
The following equation is taken as elastic DR model function with time constant τ of consumer load response [14].
τ d D o ( t ) d t + D o ( t ) = D ( p )
In Equation (9), Do(t) refers to the demand of consumers at any instant of time and D(p) refers to the price DR function of a market which is taken here as piece-wise-linear function. There is also a delay L P in broadcasting the price signal to the DSLM system’s agents at the demand side and its response to the price signal. Dynamic electricity pricing and the DR to it will make the demand of consumer easy to predict in smart grid for the short term.
It is the basic principle of the market that when the price of something increases automatically, the demand of it decreases drastically. Based on this principle of the market, this whole system is designed for elastic demand control. The price demand model is designed in such a way that it has a high demand D H of a consumer which has to be provided and low demand D L that is provided from the utility bulk energy system. Price-based demand model consists of the following properties;
1.
There are always limited consumers to which the electricity has to be supplied. We assume that for a low price P L of electricity there must be D H of the consumer. Therefore, DSLM shifts all the load of consumers to that point where electricity price is low. At ( P L , D H ) the demand elasticity deteriorates as defined in Figure 7.
2.
As there are critical loads, electricity must be supplied to them even at a high price P H . Therefore, the demand of consumers will be low at this point ( P H , D L ) and demand elasticity also deteriorates at this point.
3.
In the range between P H and P L , demand condition is elastic. When the pricing signal is between these two points, the demand of consumers will depend upon the pricing signal. The elasticity of demand in this region is determined as shown in Equation (10);
E l a s t i c D e m a n d = L o w D e m a n d ( D L ) H i g h D e m a n d ( D H )
In Equation (10), the elastic demand value ranges between 0 and 1. Value close to zero indicates that there is elasticity in the demand. Values close to 1 means that there is no elasticity in consumer demand. In [14], the following piece-wise-linear function for price-based DR is estimated by considering Figure 7;
D ( p ) = D H p < 0.35 ( D H D L ) ( P L P H ) ( p P L ) D L p > P H P L p P H
By taking Laplace transform of Equation (9), we obtain Equation (12) for the instant demand of the consumers which is composed of the elastic demand function and transfer function;
D o ( s ) = D ( p ) 1 τ s + 1
The price varying first-order dynamic equation for the overall demand of consumers’ response of electricity market models is the above equation. There are uncertain conditions sometimes at the demand side where the demand increases or decreases abruptly. In these cases, the grid can reduce uncertainty and make the DR of consumer easy to predict. In simulations, this uncertainty factor was added through generating random numbers in the overall DR to make the simulation more realistic and similar to operations taking place in smart grids. Figure 13 shows overall renewable energy generation profile.

5. Simulations and Discussion

For simulations, MATLAB/Simulink is used for creating the overall environment for the proposed model and to implement the closed-loop elastic demand control. The block diagram of the simulations is shown in Figure 8. STSMC is used to adjust the prices of electricity in the local market. This controller has 3 control design coefficients and is configured to get the DR of the consumer. There are 3 gains of STSMC: K1, K2 and K3. K1 is the proportional control design, K2 should be between 0 and 1 and K3 is the integral control design constant.

5.1. Step Response Analysis

The step response of the closed-loop elastic demand control for energy market simulation is demonstrated in Figure 9 using various coefficients. Step response of the system is considered for the sharp rise and fall in the generation. For getting the DR of the system, whenever, there is a sharp rise or sharp fall in the generation which is due to fluctuating renewable energy, we have to get DR of the proposed model in the form of a step generation signal. For this purpose, the step generation signal is passed through the STSMC and we get the demand and price response through various coefficients of the STSMC. Figure 10 and Figure 11 show the block diagram of the simulation formulated for getting demand and price response from the various generation input to the closed-loop system. The MATLAB/Simulink simulation model consists of a delay L P = 36 s, piece-wise-linear price demand function, and time constant as τ = 1 h.
As a result of the inverse relationship between demand and price, the coefficients K1 and K3 of the STSMC are tuned negative. K2 will be between 0 and 1. Figure 9 shows the result of demand and price response of the system using various coefficient values of STSMC. Demand and price response, which we get through changing the coefficients of STSMC, which are according to our desired output, are used later on in the simulation environment which is created for the whole scenario shown in Figure 5. In Table 2, coefficient values used for PI, FOPI, PID, FOPD and STSMC controllers are presented. The coefficients’ values of PI, FOPI and PID controllers were taken from [14,43] and for STSMC, we have selected those coefficients’ values which give better response as shown in Figure 9.
For the response of demand and price to a step generation signal as an input using the STSMC, classical and fractional order controllers are shown in Figure 10. PI controller, which has gain coefficients K P and K I , where K P is the proportional gain and K I is the integral gain of the PI controller. The coefficient values for PI controller are taken negatively because of the inverse proportion between demand and price of electricity [14]. Thus, values of K P = −1 and K I = −2 are taken. The results from the STSMC, classical and fractional order controllers mapped to a step generation signal validate that STSMC is more robust and accurate having lesser transient response, whereas other controllers overshoot at the start of the simulations.

5.2. Scenario: Demand and Price Response of the System

In this section, there is a scenario created for closed-loop elastic demand control for which the MATLAB/Simulink model is formulated. The block diagram for the simulations is shown in Figure 11. In the simulation scenario, the energy generation profile is composed of wind and solar energy from renewable energy generation local grid D o M A X as well as bulk utility supply from the transmission system ( T S ) of the grid. Energy from ( T R ) and ( T S ) can be written as Equation (13);
D o = T R + T S
where D o is the local demand and is considered the elastic demand. There is also a high demand ( D H ) and a low demand ( D L ) in a scenario for which the price response and DR are approximated through the piecewise linear function as mentioned in the Equation (11). The supply from the grid and renewable energy generation can be conceived as to make up for the electricity shortages when the demand of consumers is low. However, there will also be critical loads to which the electricity has to be supplied even in the inefficient hours when there is zero renewable energy generation from the local grid. Therefore, the minimum local demand can be planned as shown in Equation (14);
D o M I N T R + T S
To avoid the excessive energy generation and to cut down the expenses of the production of energy, there is a limit which is equivalent to the maximum demand of the consumer that cannot be exceeded during the supply of energy. This can be represented as shown in Equation (15);
T R + T S = D o M A X
For the maximum efficiency and reliable utilisation of the renewable energy generation, the overall generation and minimum and maximum local demand of the consumer can be planned as shown in Equation (16);
D o M I N T R + T S D o M A X
In Equation (11), for the piece-wise linear-demand function, the upper bound is denoted by D o M A X and the lower bound of the demand is considered as D o M I N , respectively. Now, for the low demand or critical loads when there is no supply from renewable energy local grid, then the supply to the consumer can be planned as D o M I N = ( T S ), to ensure uninterrupted supply to the consumer. For the continuous supply from the renewable energy local grid, the D o M A X of the consumer is planned as D o M A X = ( T R ) +( T S ). Now, to meet the requirement of the consumer and to cut down the additional expenses of the operational costs, the renewable energy generation for this scenario can be planned as in Equation (17);
T R = D o M A X D o M I N
Equation (17) refers to the renewable energy generation for the closed-loop elastic demand control. For the formulation of piece-wise-linear function for the closed-loop elastic demand model, the price of the electricity and demand of the consumer for 24 h is taken from [53] and has been scaled to MWh level and shown in Figure 12. The price and demand data are combined time independently and a data set was formed ( P i , D i ) for i = 1, 2, 3, ..., 24. When this data set is formed in [54], the values which are not in accordance with our piece-wise linear-demand function are excluded through Equation (18):
d D ( t ) d t d p ( t ) d t < 0
The elastic demand control of the system is estimated to price using a piece-wise-linear function. The demand function of the system is as follows in Equation (19):
D ( t ) = 90 p < 0.35 4.93 p + 91.72 0.35 p 4 72 p > 4
In Equation (12), for the high price of energy there will be low demand of the consumer and also for the low price the consumer will try to use much energy and the demand will be high. This piece-wise-linear function is formulated keeping in mind the general principle of energy market.
This piece-wise demand function is designed for the closed-loop elastic DR and states that when the price of electricity is low, then there will be high demand of consumers and when the price of the electricity is high, then the demand of the consumer is low, depending on the price signal coming from the STSMC. The piece-wise-linear function formed for the price DR is shown in Figure 13.
Equation (19) is used as the price demand model in the overall simulation of the system. In Equation (19), the D o M A X = 90, which will be supplied to the consumer when the price signal P L is below or equal to 0.35 and for the price signal P H higher than 4, then the demand of the consumer will be D o M I N = 72 according to the piece-wise linear-demand function. The T R can be planned as T R = 90 MWh−72 MWh. As 72 MWh of energy is supplied from the transmission lines and the overall demand is 90 MWh, so the T R can be planned as 18 MWh which is produced at local microgrid and numerically shown in Equation (15). The overall DR of the system is represented numerically in Equation (12).

5.2.1. Closed-Loop Elastic Demand Control Using PI Controller

PI controllers have 2 control coefficients K p and K i . The values for the coefficients were given manually and both the values were kept negative because of the inverse relation between demand and price of energy. Figure 14a shows 60 h of simulation result, in which generation is being traced by the demand of consumer. Figure 14b shows the price of energy which is regulated to the smart meters at the consumer end through which DSLM adjust the load of consumer and increases and decreases the demand according to the pricing signal regulated by the PI controller.
Getting response for the system by using PI controller, there is a strong tendency of getting an overshoot at the start [14]. Although the demand traced the generation effectively, the tracing time is greater as compared to the STSMC. There is an overshoot at the start of the simulation before generation was traced by the demand. This overshoot at the start can blackout at the consumer end, because of the unavailability of the energy at the start. The DR of the system using the PI controller before the tracing of demand is as high as 90 MWh and the generation in this region is not this much, which means lack of power at the consumer end during the overshoot time which is 5.5 h [14].

5.2.2. Closed-Loop Elastic Demand Control Using Fractional Order PI (FOPI) Controller

A PI controller with additional fraction order operator called λ makes a fractional order PI controller. This FOPI controller is presented for a closed-loop elastic demand control which was a model based system [43]. The DR of the current system by using FOPI gives an overshoot at the start of the simulation even more than the demand controlled by PI controller. Demand of consumer takes longer tracing time which also results in blackout or load-shedding at the consumer end. Figure 15a demonstrates the generation being traced by demand of consumer using FOPI controller. The demand traced down generation after overshoot for the first 7 h. Figure 15b shows the pricing signal which is regulated to the smart meters at the consumers’ end for elastic demand control by FOPI.
Same as the PI controller, the coefficient values for the FOPI are kept negative because of inverse relation between demand and price, whereas the value for λ is taken as 0.8.

5.2.3. Closed-Loop Elastic Demand Control Using PID Controller

Proportional integral derivative (PID) is the widely used classical controller. PID controllers have 3 control coefficients K p , K i and K d , the values of which are kept negative. PID is presented for the closed-loop elastic demand control which is effectively controlled by the PID but with an overshoot and large error between the generation and demand of consumer [43]. The demand followed the generation but with an extra large tracing time as compared with demand controlled by PI and FOPI. Both FOPI and PI outperform the PID controller in tracing the generation. Closed-loop elastic demand control using PID controller having coefficients is shown in Figure 16.

5.2.4. Closed-Loop Elastic Demand Control Using FOPD Controller

When the simulation of the closed-loop elastic demand using the FOPD controller starts, the demand starts tracing the generation with overshooting at the start of the simulation. Although generation started to trace generation, the gap between the generation and demand of consumer can be clearly seen in Figure 17. In Figure 17b, the pricing signal provided by FOPD controller to the demand model is demonstrated. The pricing signal provided by the FOPD controller is less than all the controllers but the error in tracing the generation by demand is very high as compared to other controllers (STSMC, PI, PID and FOPI), which were deployed in the same system for elastic demand control.

5.2.5. Closed-Loop Elastic Demand Control Using STSMC Controller

When the simulation starts, the demand of the consumer is controlled successfully with STSMC by continuously providing a price signal to the elastic demand model. The demand started tracing the renewable energy generation at about 1.8 h after starting the simulation. The tracing time of generation by demand is the lowest among the controllers. i.e., PI, FOPI, PID and FOPD. The demand of consumer traced the renewable energy generation to the end of the simulation. The results of the simulation show that closed-loop elastic demand control with STSMC can successfully trace renewable energy generation without overshooting at the start of the simulation. The demand of the system also does not overshoot at the start of the simulation as in [14,43] by using the classical and fractional order controllers. In order to reduce price volatility, a price limiter function is added next to STSMC which reduces the dynamic price volatility due to uncertainty in the DR. Equation (20) shows the function for price limiter. The upper bound in Equation (20) limits the pricing signal to not feed a pricing signal lower than 0 or negative pricing signal. In addition, the lower bound is for controlling the price to not exceed a specified limit.
P r i c e L i m t e r = 0.1 p < 0 p 12 p > 12 0.1 p 12
The results of the simulation show that closed-loop elastic demand control in conjunction with STSMC can successfully trace the renewable energy generation without overshooting at the start of the simulation.
This whole scenario is discussed in [14], where the closed-loop elastic demand of the consumer is controlled by the PI controller. Moreover, the demand started tracing generation after 5.5 h which is a long time as compared to the tracing time of the STSMC. In our paper, we have deployed STSMC, which is a more robust, accurate and advanced algorithm/controller than the classical controllers and fractional order controllers. Figure 18 shows the DR of the elastic demand control by STSMC. In Figure 19, a clear difference can be seen in the graph where the classical and fractional order controllers overshoots at the start of the simulations, but STSMC started tracing the generation 1.8 h after the start of the simulations. The demand starts from the zero initial value and takes 1.8 h to reach generation, after that the demand does not overshoot and starts tracing generation. Whereas by using PI, FOPI and PID controllers, demand sharply increases, which results in demand overshoot at the beginning of simulations for 6 h. Although the FOPD does not overshoot at the start unlike the other controllers, error in tracing the generation is very high among these controllers. Moreover, the difference between the pricing signal provided by the classical and fractional order controllers can also be seen in Figure 19b. The STSMC provides pricing signal directly at 1.8 h after the start of simulations to quickly control the demand of consumers but the classical and fractional order controller lags in providing the pricing signal, thus results in overshooting of demand.
STSMC outperforms PI, FOPI, PID and FOPD controllers in tracing the generation by the demand of consumer in a renewable energy integrated microgrid. The values of DR of STSMC in comparison with PI, FOPI, PID and FOPD are shown in Table 3, which shows the DR of closed-loop elastic demand controllers for 60 h. Table 4 shows the data of error in tracing the generation for every two hours of simulations for classical, fractional order and STSMC. It can be clearly seen from Table 4 that STSMC outperforms classical as well as fractional order controllers. The coefficient values of the PI controller were kept the same which are used for demand control in [14]. In addition, the coefficient values for the FOPI and PID controller were kept the same as in [43]. The error between the generation and the DR of the deployed controllers in closed-loop elastic demand control simulations is shown in Table 3.
The demand and price response of the closed-loop elastic demand-control model for the triangular waveform as input is shown in Figure 20.

6. Conclusions

This paper employs elastic demand control of a renewable generation integrated microgrid by a closed−loop STSMC. This STSMC regulates the price signal of the DSLM system which plays a major role in the automation of demand control and also making demand more predictable and deterministic. Price signal from STSMC feeds into the DSLM installed in smart meters at consumers’ premises through which the balance of generation and demand of the microgrid is accomplished via closed-loop STSMC. In this paper, the renewable energy integrated microgrid scenario is discussed through which the closed-loop elastic demand of the system is controlled by tuning the coefficients of the STSMC. For simulations, the whole scenario environment is simulated in MATLAB/Simulink. The price-based demand model for the current scenario is obtained from the hourly price and demand data. In addition, conditions of high demand and low demand of the consumer were discussed for electricity import from the bulk utility supply. This was added in simulations to cut down the additional expenses and operational cost in the smart grid. The process of broadcasting the price to the DSLM agents takes time, in order to show effectiveness of the method in the cases of demand uncertainty and system delays. We used price signal-broadcast delay for making simulations for scenario more realistic. System delay was added after STSMC in the system which is equal to 36 s. We observed from the simulations that price-based elastic demand control by STSMC can exhibit the outstanding performance of tracing of renewable energy integrated microgrid generation. Dynamic energy pricing is a key figure in the smart grid to control the demand of consumers in renewable energy market management. Our findings shows that the STSMC, very quickly after just 1.8 h, starts tracing the generation. The classical and fractional order controller overshoots and follows to trace the generation after 6 h which is significantly higher as compared with STSMC. Thus, our proposed method outperforms the existing methods.

Author Contributions

Conceptualisation, T.A.K. and K.U.; methodology, T.A.K.; software, I.K.; validation, T.A.K., K.U. and I.K.; formal analysis, M.U. and A.K.; investigation, Z.S.; resources, Z.S.; data curation, G.H.; writing—original draft preparation, G.H.; writing—review and editing, G.H. and Z.S.; visualisation, A.K.; supervision, G.H. and I.K.; project administration, Z.S. and A.K.; funding acquisition, Z.S., A.K. and A.B.Q. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by Department of Engineering, School of Science & Technology, Nottingham Trent University, Nottingham, UK and University of Engineering and Technology, Mardan.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

SymbolsAbbreviations
τ Time constant (h)
λ Fractional operator in FOPI controller
α Fractional operator in FOPD controller
C(t)Controller function
DoLocal demand (MWh)
D o M I N Local minimum demand (MWh)
D o M A X Local maximum demand (MWh)
Do(t)Instant demand (MWh)
D(p)Piece-wise-price demand function
D L Low demand (MWh)
D H High demand (MWh)
DSLMDemand side load management
DRDemand response
eError (Mismatch between generation and demand
FOPIFraction order proportional integral controller
FOPDFractional order proportional derivative controller
G(t)Overall instant generation (MWh)
K p Proportional coefficient
K i Integral coefficient
K d Derivative coefficient
K i Integral coefficient
L P Delay (sec)
pPricing signal (ECT)
PIProportional integral
PIDProportional integral derivative
P L Low price (ECT)
P H High price (ECT)
STSMCSuper twisting sliding mode controller
SMCSliding mode controller
T R Transmission from local renewable energy system (MWh)
T S Transmission from bulk utility supply (MWh)

References

  1. Nadeem, J.; Hafeez, G.; Iqbal, S.; Alrajeh, N.; Alabed, M.S.; Guizani, M. Energy efficient integration of renewable energy sources in the smart grid for demand side management. IEEE Access 2018, 6, 77077–77096. [Google Scholar]
  2. Ghulam, H.; Wadud, Z.; Khan, I.U.; Khan, I.; Shafiq, Z.; Usman, M.; Khan, M.U.A. Efficient Energy Management of IoT-Enabled Smart Homes Under Price-Based Demand Response Program in Smart Grid. Sensors 2020, 20, 3155. [Google Scholar]
  3. Ghulam, H.; Javaid, N.; Iqbal, S.; Khan, F.A. Optimal Residential Load Scheduling under Utility and Rooftop Photovoltaic Units. Energies 2018, 11, 611. [Google Scholar]
  4. Ghulam, H.; Alimgeer, K.S.; Khan, I. Electric Load Forecasting based on Deep Learning and Optimized by Heuristic Algorithm in Smart Grid. Appl. Energy 2020, 306, 114915. [Google Scholar] [CrossRef]
  5. Ghulam, H.; Islam, N.; Ali, A.; Ahmad, S.; Usman, M.; Alimgeer, K.S. A Modular Framework for Optimal Load Scheduling under Price-Based Demand Response Scheme in Smart Grid. Processes 2019, 7, 499. [Google Scholar]
  6. Ghulam, H.; Alimgeer, K.S.; Wadud, Z.; Khan, I.; Shafiq, Z.; Khan, M.U.A.; Khan, F.A.; Derhab, A. A Novel Accurate and Fast Converging Deep Learning-Based Model for Electrical Energy Consumption Forecasting in a Smart Grid. Energies 2020, 13, 2244. [Google Scholar]
  7. Ghulam, H.; Alimgeer, K.S.; Qazi, A.B.; Khan, I.; Usman, M.; Khan, F.A.; Wadud, Z. A Hybrid Approach for Energy Consumption Forecasting with a New Feature Engineering and Optimization Framework in Smart Grid. IEEE Access 2020. [Google Scholar] [CrossRef]
  8. Preeti, D.; Dogra, S.; Sharma, V.; Pulluri, H.; Gouthamkumar, N.; Rao, U.M. Performance Analysis of Classical Controllers Tuned Using Heuristic Approaches for Frequency Regulation. In Applications of Computing, Automation and Wireless Systems in Electrical Engineering; Springer: Singapore, 2019; pp. 457–465. [Google Scholar]
  9. Preeti, D.; Sharma, V.; Naresh, R. Automatic generation control using disrupted oppositional based gravitational search algorithm optimised sliding mode controller under deregulated environment. IET Gener. Trans. Distrib. 2016, 10, 3995–4005. [Google Scholar]
  10. Weng, Y.P.; Gao, X.W. Data-driven sliding mode control of unknown MIMO nonlinear discrete-time systems with moving PID sliding surface. J. Frankl. Inst. 2017, 354, 6463–6502. [Google Scholar] [CrossRef]
  11. Preeti, D.; Sharma, V.; Naresh, R. Hybridized gravitational search algorithm tuned sliding mode controller design for load frequency control system with doubly fed induction generator wind turbine. Opt. Control. Appl. Methods 2017, 38, 993–1003. [Google Scholar]
  12. Prabhat, K.; Kothari, D.P. Recent philosophies of automatic generation control strategies in power systems. IEEE Trans. Power Syst. 2005, 20, 346–357. [Google Scholar]
  13. Alessandro, P.; Pisano, A.; Usai, E. Parameter tuning and chattering adjustment of super-twisting sliding mode control system for linear plants. In Proceedings of the 2012 12th International Workshop on Variable Structure Systems, Mumbai, India, 12–14 January 2020; pp. 479–484. [Google Scholar]
  14. Asim, K. Closed loop elastic demand control by dynamic energy pricing in smart grids. Energy 2019, 176, 596–603. [Google Scholar]
  15. Duan, Q. A price-based demand response scheduling model in day-ahead electricity market. In Proceedings of the 2016 IEEE Power and Energy Society General Meeting (PESGM), Boston, MA, USA, 17–21 July 2016; pp. 1–5. [Google Scholar]
  16. Liang, D.; Bo, Z.; Yan, Q.; Xu, Y.-J. Optimal control model of electric vehicle demand response based on real—time electricity price. In Proceedings of the 2017 IEEE 2nd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chengdu, China, 15–17 December 2017; pp. 1815–1818. [Google Scholar]
  17. Ghazvini, F.; Ali, M.; Soares, J.; Morais, H.; Castro, R.; Vale, Z. Dynamic pricing for demand response considering market price uncertainty. Energies 2017, 10, 1245. [Google Scholar] [CrossRef] [Green Version]
  18. Hu, F.; Chen, W. One type of smart meter with demand control Local demand response with smart meter. In Proceedings of the 2014 9th IEEE Conference on Industrial Electronics and Applications, Hangzhou, China, 9–11 June 2014; pp. 546–549. [Google Scholar]
  19. Yang, B.; Kun, S.; Li, D.; Xin, Y.; Bin, L.; Li, Y. Research on Power Flexible Load Regulation Technology Based on Demand Response. In Proceedings of the 2018 8th International Conference on Electronics Information and Emergency Communication (ICEIEC), Beijing, China, 15–17 June 2018; pp. 150–153. [Google Scholar]
  20. Sankar, V.; Jishnu, C.; Hareesh, V.; Nair, M.G. Integration of demand response with prioritized load optimization for multiple homes. In Proceedings of the 2017 International Conference on Technological Advancements in Power and Energy (TAP Energy), Kollam, India, 21–23 December 2017; pp. 1–6. [Google Scholar]
  21. Ahmed Maytham, S.; Mohamed, A.; Khatib, T.; Shareef, H.; Homod, R.Z.; Ali, J.A. Real time optimal schedule controller for home energy management system using new binary backtracking search algorithm. Energy Build. 2017, 138, 215–227. [Google Scholar] [CrossRef]
  22. Irfan, M.M.; Siddiq, A.; Tariq, M.O.; Ali, A.; Zahra, A. Economically Effective and Intelligently Responsive Home Energy Management System. Mehran Univ. Res. J. Eng. Technol. 2019, 38, 599–608. [Google Scholar]
  23. Zhou, W.; Tazvinga, H.; Xia, X. Demand side management of photovoltaic-battery hybrid system. Appl. Energy 2015, 148, 294–304. [Google Scholar]
  24. Fuad, U.H.; Hamid, S.; Khan, W.A.; Ali, M.; Rehman, S. Smart Grid Intelligent Energy Management System with Cost Optimization in Power System. In Proceedings of the 2019 Advances in Science and Engineering Technology International Conferences (ASET), Dubai, UAE, 26 March–10 April 2019; pp. 1–6. [Google Scholar]
  25. Paddy, F.; Fitzpatrick, C. Demand side management of industrial electricity consumption: Promoting the use of renewable energy through real-time pricing. Appl. Energy 2014, 113, 11–21. [Google Scholar]
  26. Bruno, C.; Soares, J.; Vale, Z.; Corchado, J.M. Optimal distribution grid operation using DLMP-based pricing for electric vehicle charging infrastructure in a smart city. Energies 2019, 12, 686. [Google Scholar]
  27. Veni, C.C.; Basu, M.; Sunderland, K. Demand Response and Consumer Inconvenience. In Proceedings of the 2019 International Conference on Smart Energy Systems and Technologies (SEST), Porto, Portugal, 9–11 September 2019; pp. 1–6. [Google Scholar]
  28. Pavithra, N.; Priya Esther, B. Priya Esther. Residential demand response using genetic algorithm. In Proceedings of the 2017 Innovations in Power and Advanced Computing Technologies (i-PACT), Vellore, India, 21–22 April 2017; pp. 1–4.
  29. Arabul Keskin, F.; Arabul, A.Y.; Kumru, C.F.; Boynuegri, A.R. Providing energy management of a fuel cell–battery–wind turbine–solar panel hybrid off grid smart home system. Int. J. Hydrogen Energy 2017, 42, 26906–26913. [Google Scholar] [CrossRef]
  30. Calvin, T.; Kumar, A.; Flores-Cerrillo, J.; Baldea, M. Optimal demand response scheduling of an industrial air separation unit using data-driven dynamic models. Comput. Chem. Eng. 2019, 126, 22–34. [Google Scholar]
  31. Vedullapalli Divya, T.; Hadidi, R.; Schroeder, B. Optimal Demand Response in a building by Battery and HVAC scheduling using Model Predictive Control. In Proceedings of the 2019 IEEE/IAS 55th Industrial and Commercial Power Systems Technical Conference (I & CPS), Calgary, AB, Canada, 5–8 May 2019; pp. 1–6. [Google Scholar]
  32. Xue, X.; Wang, S.; Yan, C.; Cui, B. A fast chiller power demand response control strategy for buildings connected to smart grid. Appl. Energy 2015, 137, 77–87. [Google Scholar] [CrossRef]
  33. Ogunjuyigbe, A.S.O.; Monyei, C.G.; Ayodele, T.R. Price based demand side management: A persuasive smart energy management system for low/medium income earners. Sustain. Cities Soc. 2015, 7, 80–94. [Google Scholar] [CrossRef]
  34. Xing, Y.; Wright, D.; Kumar, S.; Lee, G.; Ozturk, Y. Real-time residential time-of-use pricing: A closed-loop consumers feedback approach. In Proceedings of the 2015 Seventh Annual IEEE Green Technologies Conference, New Orleans, LA, USA, 15–17 April 2015; pp. 132–138. [Google Scholar]
  35. Xing, Y.; Wright, D.; Kumar, S.; Lee, G.; Ozturk, Y. Enabling consumer behavior modification through real time energy pricing. In Proceedings of the 2015 IEEE International Conference on Pervasive Computing and Communication Workshops (PerCom Workshops), St. Louis, MO, USA, 23–27 March 2015; pp. 311–316. [Google Scholar]
  36. Alagoz, B.B.; Kaygusuz, A.; Akcin, M.; Alagoz, S. A closed-loop energy price controlling method for real-time energy balancing in a smart grid energy market. Energy 2013, 59, 95–104. [Google Scholar] [CrossRef]
  37. Mohammad, R.; Fotuhi-Firuzabad, M.; Zareipour, H. Home energy management incorporating operational priority of appliances. Int. J. Electr. Power Energy Syst. 2016, 74, 286–292. [Google Scholar]
  38. Kai, M.; Yao, T.; Yang, J.; Guan, X. Residential power scheduling for demand response in smart grid. Int. J. Electr. Power Energy Syst. 2016, 78, 320–325. [Google Scholar]
  39. Man, T.K.; Chan, S. Demand response optimization for smart home scheduling under real-time pricing. IEEE Trans. Smart Grid 2012, 3, 1812–1821. [Google Scholar]
  40. Paterakis Nikolaos, G.; Erdinc, O.; Bakirtzis, A.G.; Catalão, J.P.S. Optimal household appliances scheduling under day-ahead pricing and load-shaping demand response strategies. IEEE Trans. Ind. Inform. 2015, 11, 1509–1519. [Google Scholar] [CrossRef]
  41. Huang, Y.; Mao, S.; Nelms, R.M. Adaptive electricity scheduling in microgrids. IEEE Trans. Smart Grid 2014, 5, 270–281. [Google Scholar] [CrossRef] [Green Version]
  42. Pedrasa Michael Angelo, A.; Spooner, T.D.; MacGill, I.F. Coordinated scheduling of residential distributed energy resources to optimize smart home energy services. IEEE Trans. Smart Grid 2010, 1, 134–143. [Google Scholar] [CrossRef]
  43. Alagoz Baykant, B.; Kaygusuz, A. Dynamic energy pricing by closed-loop fractional-order PI control system and energy balancing in smart grid energy markets. Trans. Inst. Meas. Control. 2016, 38, 565–578. [Google Scholar] [CrossRef]
  44. Levant, A. Sliding order and sliding accuracy in sliding mode control. Int. J. Control. 1993, 58, 1247–1263. [Google Scholar] [CrossRef]
  45. Santiesteban, R.; Fridman, L.; Moreno, J. Finite-time convergence analysis for “twisting” controller via a strict lyapunov function. In Proceedings of the 11th Workshop on Variable Structure Systems, Mexico City, Mexico, 26–28 June 2010; pp. 1–6. [Google Scholar]
  46. Polyakov, A.; Poznyak, A. Lyapunov function design for fifinitetime convergence analysis: “Twisting” controller for second-order sliding mode realization. Automatica 2009, 45, 444–448. [Google Scholar] [CrossRef]
  47. Oza, H.B.; Orlov, Y.V.; Spurgeon, S.K. Settling time estimate for a second order sliding mode controller: A homogeneity approach. In Proceedings of the 18th IFAC World Congress, Milano, Italy, 28 August–2 September 2011. [Google Scholar]
  48. Moreno, J.; Osorio, M. A Lyapunov approach to second-order sliding mode controllers and observers. In Proceedings of the 2008 47th IEEE Conference on Decision and Control, Cancun, Mexico, 9–11 December 2008; pp. 2856–2861. [Google Scholar]
  49. Polyakov, A.; Poznyak, A. Reaching time estimation for “supertwisting” second order sliding mode controller via lyapunov function designing. Autom. Control. IEEE Trans. 2009, 54, 1951–1955. [Google Scholar] [CrossRef]
  50. Orlov, Y.; Aoustin, Y.; Chevallereau, C. Finite time stabilization of a perturbed double integrator—Part I: Continuous sliding mode-based output feedback synthesis. IEEE Trans. Autom. Control. 2010, 56, 3. [Google Scholar] [CrossRef]
  51. Lebastard, V.; Austin, Y.; Plestan, F. Step-by-step sliding mode observer for control of a walking biped robot by using only actuated variables measurement. In Proceedings of the 2005 IEEE/RSJ International Conference on Intelligent Robots and Systems, Edmonton, AT, Canada, 2–6 August 2005; pp. 559–564. [Google Scholar]
  52. Shtessel, Y.B.; Shkolnikov, I.A.; Levant, A. Smooth second-order sliding modes: Missile guidance application. Automatica 2007, 43, 1470–1476. [Google Scholar] [CrossRef]
  53. Niknam, T.; Golestaneh, F.; Malekpour, A. Probabilistic energy and operation management of a microgrid containing wind/photovoltaic/fuel cell generation and energy storage devices based on point estimate method and self-adaptive gravitational search algorithm. Energy 2012, 43, 427–437. [Google Scholar] [CrossRef]
  54. Akcin Murat, B.; Alagoz, B.; Kaygusuz, A. Demand Elasticity Estimation Based on Piecewise Linear Demand Response Modeling of Smart Grid Energy Market. In Proceedings of the ENTECH’15 III, Istanbul, Turkey, 21–22 December 2015. [Google Scholar]
  55. Ahmad Khan, T.; Kalimullah; Hafeez, G.; Khan, I.; Ullah, S.; Waseem, A.; Ullah, Z. Energy Demand Control Under Dynamic Price-based Demand Response Program in Smart Grid. In Proceedings of the 2020 2nd International Conference on Electrical Communication and Computer Engineering (ICECCE-2020), Istanbul, Turkey, 14–15 April 2020; pp. 31–36. [Google Scholar]
  56. Mary, G.; Carter, J.; Alexander, R.; Charnock, G. Getting the most from community generation-an economic and technical model to control small scale renewable community generation and create a local energy economy. In Proceedings of the CIRED 2009-The 20th International Conference and Exhibition on Electricity Distribution, Prague, Czech Republic, 8–11 June 2009; pp. 1–15. [Google Scholar]
Figure 1. Block diagram of simulations using FOPI controller in closed-loop elastic demand control.
Figure 1. Block diagram of simulations using FOPI controller in closed-loop elastic demand control.
Sensors 20 04376 g001
Figure 2. Block diagram of simulations using a proportional integral derivative (PID) controller in using closed-loop elastic demand control.
Figure 2. Block diagram of simulations using a proportional integral derivative (PID) controller in using closed-loop elastic demand control.
Sensors 20 04376 g002
Figure 3. Block diagram of simulations using a proportional integral (PI) controller in closed-loop elastic demand control.
Figure 3. Block diagram of simulations using a proportional integral (PI) controller in closed-loop elastic demand control.
Sensors 20 04376 g003
Figure 4. Block diagram of simulations using a fractional order proportional derivative (FOPD) controller in closed-loop elastic demand control.
Figure 4. Block diagram of simulations using a fractional order proportional derivative (FOPD) controller in closed-loop elastic demand control.
Sensors 20 04376 g004
Figure 5. Schematic diagram for the proposed system model to control the elastic demand of consumers through dynamic pricing in a smart grid.
Figure 5. Schematic diagram for the proposed system model to control the elastic demand of consumers through dynamic pricing in a smart grid.
Sensors 20 04376 g005
Figure 6. Renewable energy generation and supply from bulk utility supply data.
Figure 6. Renewable energy generation and supply from bulk utility supply data.
Sensors 20 04376 g006
Figure 7. Parameters for demand elasticity function.
Figure 7. Parameters for demand elasticity function.
Sensors 20 04376 g007
Figure 8. Simulink block diagram for the proposed model.
Figure 8. Simulink block diagram for the proposed model.
Sensors 20 04376 g008
Figure 9. Demand and price response of the proposed model to step signal for various coefficients K1, K2 and K3 of STSMC: (a) demand response; (b) price response.
Figure 9. Demand and price response of the proposed model to step signal for various coefficients K1, K2 and K3 of STSMC: (a) demand response; (b) price response.
Sensors 20 04376 g009
Figure 10. Demand and price response of the proposed model to step signal for classical and fractional order controllers: (a) demand response; (b) price response.
Figure 10. Demand and price response of the proposed model to step signal for classical and fractional order controllers: (a) demand response; (b) price response.
Sensors 20 04376 g010
Figure 11. Simulink model formulated for the simulations of demand and price response of closed-loop elastic demand control by STSMC.
Figure 11. Simulink model formulated for the simulations of demand and price response of closed-loop elastic demand control by STSMC.
Sensors 20 04376 g011
Figure 12. Demand and price data considered for making demand function: (a) hourly electricity demand; (b) hourly price of electricity.
Figure 12. Demand and price data considered for making demand function: (a) hourly electricity demand; (b) hourly price of electricity.
Sensors 20 04376 g012
Figure 13. Piece-wise-linear function with Pi and Di.
Figure 13. Piece-wise-linear function with Pi and Di.
Sensors 20 04376 g013
Figure 14. Closed-loop elastic demand control using a proportional integral (PI) controller having coefficient values K p = −1 and K p = −2: (a) demand response; (b) price response.
Figure 14. Closed-loop elastic demand control using a proportional integral (PI) controller having coefficient values K p = −1 and K p = −2: (a) demand response; (b) price response.
Sensors 20 04376 g014
Figure 15. Closed-loop elastic demand control using a fractional order proportional integral (FOPI) controller having coefficient values K p = −1, K p = −2 and λ = 0.8: (a) demand response; (b) price response.
Figure 15. Closed-loop elastic demand control using a fractional order proportional integral (FOPI) controller having coefficient values K p = −1, K p = −2 and λ = 0.8: (a) demand response; (b) price response.
Sensors 20 04376 g015
Figure 16. Closed-loop elastic demand control using a proportional integral derivative (PID) controller having coefficient values K p = −1, K p = −2 and K d = −3: (a) demand response; (b) price response.
Figure 16. Closed-loop elastic demand control using a proportional integral derivative (PID) controller having coefficient values K p = −1, K p = −2 and K d = −3: (a) demand response; (b) price response.
Sensors 20 04376 g016
Figure 17. Closed-loop elastic demand control using a fractional order proportional derivative (FOPD) controller having coefficient values K p = −0.2, K p = −0.3 and α = 0.3: (a) demand response; (b) price response.
Figure 17. Closed-loop elastic demand control using a fractional order proportional derivative (FOPD) controller having coefficient values K p = −0.2, K p = −0.3 and α = 0.3: (a) demand response; (b) price response.
Sensors 20 04376 g017
Figure 18. Closed-loop elastic demand control using super twisting sliding mode (STSMC) controller having coefficient values K 1 = −26, K 2 = 0.0000001 and K 3 = −30: (a) demand response; (b) price response.
Figure 18. Closed-loop elastic demand control using super twisting sliding mode (STSMC) controller having coefficient values K 1 = −26, K 2 = 0.0000001 and K 3 = −30: (a) demand response; (b) price response.
Sensors 20 04376 g018
Figure 19. Closed-loop elastic demand control using PI, FOPI, PID and FOPD controllers: (a) demand response; (b) price response.
Figure 19. Closed-loop elastic demand control using PI, FOPI, PID and FOPD controllers: (a) demand response; (b) price response.
Sensors 20 04376 g019
Figure 20. Closed-loop elastic demand control using super twisting sliding mode (STSMC) controller with triangular input having coefficient values K 1 = −26, K 2 = 0.001 and K 3 = −30: (a) demand response; (b) price response.
Figure 20. Closed-loop elastic demand control using super twisting sliding mode (STSMC) controller with triangular input having coefficient values K 1 = −26, K 2 = 0.001 and K 3 = −30: (a) demand response; (b) price response.
Sensors 20 04376 g020
Table 1. Summary of related work in terms of techniques, model, objectives, results and limitations.
Table 1. Summary of related work in terms of techniques, model, objectives, results and limitations.
ReferencesTechniquesModelsObjectivesResultsLimitations
[19]MILPFlexible DR load modelFlexible load control based on DREfficiency, power system adjustment capability and safety of power grid operation enhancedOnly flexible loads are considered
[20]Master controllerAdvanced metering infrastructure with HEMSTo better manage the energy at the consumer sideBased on the categorisation of DR programs proper load management is accomplishedUser discomfort
[21]BBSA and BPSOHEMSTo reduce energy cost, electricity bill and peak loadBBSA gives better results than BPSOPAR is not considered
[22]MOPSO and BILPIntelligently responsive HEMSTo reduce cost and carbon emissionElectricity cost is reduced by 10.25% and also carbon emission is reducedCarbon emission is reduced and operating cost is increased
[23]MPCHybrid system under TOU with power sellingA battery storage system with solar panels to reduce cost in peak hoursBatteries provide power in peak hours and reduce the monthly costPAR consumer comfort is not considered
[24]LSHSIntelligent energy management system (IEMS)Load scheduling at consumer end with increasing efficiencyThe system is optimisedSystem complexity and user discomfort increased
[27]MILPHEMSTo reduce consumer inconvenience caused by DR programsIncreased energy efficiency within domestic environmentDid not considered uncertainty in DR
[28]GADSLM using load-shifting conceptTo reduce overall peak load demand and operational costReduction in power demand and cost of the utilitiesCost reduced but ignored consumers’ comfort
[29]EMA and Fuzzy logic controllerHEMSElectricity and fuel cost reduction with increasing efficiency and lifetime of fuel cellEnergy efficiency of solar, wind and fuel cell increasedDid not considered carbon emission reduction
[30]MPCDynamic optimisation- based DR scheduling framework and low-order Hammerstein Wiener modelEnergy management and electricity cost reductionElectricity cost reducedConsidered price forecast but didn’t considered DR uncertainty
[31]MPCBESS and HVAC SchedulingTo optimally use battery storageElectricity cost reducedPAR and carbon emission not considered
[33,34,35]MMIGA, CBIPersuasive smart energy management system (PSEMS)Prediction of consumers’ demand in SGWith closed-loop DR programs, demand becomes more deterministic and predictableUncertainty in demand is not considered
[36]PID controllerDynamic demand responsive generation managementTo decrease the electricity bills of consumers and operational costOperational and electricity bill reducedElectricity cost reduced and user discomfort increased
[37]MILPPrice-based HEMSOptimise the energy consumption by scheduling of appliances in smart homeElectricity cost reducedSystem complexity Increased
Table 2. Coefficients and fractional operator values for different controller used for all simulations.
Table 2. Coefficients and fractional operator values for different controller used for all simulations.
PIFOPIPIDFOPDSTSMC
K P K I K P K I λ K P K I K d K P K d α K 1 K 2 K 3
−1−2−0.1−1.20.8−0.01−0.2−0.01−0.2−0.30.3−260.001−30
Table 3. Comparison DR of the closed-loop STSMC with PI [14], FOPI [43], PID [43] and FOPI demand response in tracing the generation.
Table 3. Comparison DR of the closed-loop STSMC with PI [14], FOPI [43], PID [43] and FOPI demand response in tracing the generation.
DR of Closed-Loop Elastic Demand Control by Different Controllers.
Time (hours)Generation (MW)DR (PI)DR (FOPI)DR (PID)DR (FOPD)DR (STSMC)
275.1187.9187.9174.9676.0876.10
479.1287.4784.5698.2081.5979.71
682.0482.2984.3981.6484.9282.08
883.1182.9883.4480.2485.7183.05
1088.0387.8288.0184.5289.3087.50
1289.6489.6389.7790.6690.7289.61
1489.0889.1189.3789.4790.3589.22
1685.9686.2586.8888.3688.3986.06
1883.0683.2983.7985.1586.4383.08
2076.3476.4376.5079.8682.1076.13
2274.5774.5974.8474.6480.9374.63
2474.0173.9874.1473.7080.6874.13
2675.2375.1175.1174.2581.4375.11
2879.5679.1278.7776.3784.0679.04
3082.1182.1382.4981.5986.2382.09
3283.2483.1283.0583.0986.7583.04
3488.1588.0287.9084.5190.3687.55
3689.7089.6989.5990.4091.6489.60
3889.0189.0889.1689.5290.9789.03
4085.9986.3686.9088.3688.9486.09
4283.1483.3683.7685.2086.8783.10
4476.4076.4976.4779.9982.4976.15
4674.5974.6174.7974.6981.2474.64
4874.0173.9874.0873.7080.9574.13
5075.1975.0675.0274.2381.6575.10
5279.4478.9978.6076.3084.1979.01
5482.0182.1882.5681.4886.4582.10
5683.2183.0882.9883.0986.9183.03
5888.1287.9687.8184.4590.5687.53
6089.6789.6689.5390.2791.8689.60
Table 4. Error comparison in tracing the generation by demand of consumer using PI [14], FOPI [43], PID [43], FOPD and STSMC.
Table 4. Error comparison in tracing the generation by demand of consumer using PI [14], FOPI [43], PID [43], FOPD and STSMC.
Time (hours)Generation (MW)PIFOPIPIDFOPDSTSMC
275.11−12.8000−12.80000.1500−0.9700−0.9900
479.12−8.3500−5.4400−19.0800−2.4700−0.5900
682.04−0.2500−2.35000.4000−2.8800−0.0400
883.110.1300−0.33002.8700−2.60000.0600
1088.030.21000.02003.5100−1.27000.5300
1289.640.0100−0.1300−1.0200−1.08000.0300
1489.08−0.0300−0.2900−0.3900−1.2700−0.1400
1685.96−0.2900−0.9200−2.4000−2.4300−0.1000
1883.06−0.2300−0.7300−2.0900−3.3700−0.0200
2076.34−0.0900−0.1600−3.5200−5.76000.2100
2274.57−0.0200−0.2700−0.0700−6.3600−0.0600
2474.010.0300−0.13000.3100−6.6700−0.1200
2675.230.12000.12000.9800−6.20000.1200
2879.560.44000.79003.1900−4.50000.5200
3082.11−0.0200−0.38000.5200−4.12000.0200
3283.240.12000.19000.1500−3.51000.2000
3488.150.13000.25003.6400−2.21000.6000
3689.700.01000.1100−0.7000−1.94000.1000
3889.01−0.0700−0.1500−0.5100−1.9600−0.0200
4085.99−0.3700−0.9100−2.3700−2.9500−0.1000
4283.14−0.2200−0.6200−2.0600−3.73000.0400
4476.40−0.0900−0.0700−3.5900−6.09000.2500
4674.59−0.0200−0.2000−0.1000−6.6500−0.0500
4874.010.0300−0.07000.0600−6.9400−0.1200
5075.190.13000.17000.9600−6.46000.0900
5279.440.45000.84003.1400−4.75000.4300
5482.01−0.1700−0.55000.5300−4.4400−0.0900
5683.210.13000.23000.1200−3.70000.1800
5888.120.16000.31003.6700−2.44000.5900
6089.670.01000.1400−0.6000−2.19000.0700

Share and Cite

MDPI and ACS Style

Khan, T.A.; Ullah, K.; Hafeez, G.; Khan, I.; Khalid, A.; Shafiq, Z.; Usman, M.; Qazi, A.B. Closed-Loop Elastic Demand Control under Dynamic Pricing Program in Smart Microgrid Using Super Twisting Sliding Mode Controller. Sensors 2020, 20, 4376. https://doi.org/10.3390/s20164376

AMA Style

Khan TA, Ullah K, Hafeez G, Khan I, Khalid A, Shafiq Z, Usman M, Qazi AB. Closed-Loop Elastic Demand Control under Dynamic Pricing Program in Smart Microgrid Using Super Twisting Sliding Mode Controller. Sensors. 2020; 20(16):4376. https://doi.org/10.3390/s20164376

Chicago/Turabian Style

Khan, Taimoor Ahmad, Kalim Ullah, Ghulam Hafeez, Imran Khan, Azfar Khalid, Zeeshan Shafiq, Muhammad Usman, and Abdul Baseer Qazi. 2020. "Closed-Loop Elastic Demand Control under Dynamic Pricing Program in Smart Microgrid Using Super Twisting Sliding Mode Controller" Sensors 20, no. 16: 4376. https://doi.org/10.3390/s20164376

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop