# Design and Development of Adaptive Fuzzy Control System for Power Management in Residential Smart Grid Using Bat Algorithm

- 132 Downloads

## Abstract

An adaptive fuzzy logic control system was designed for the management of power in smart grid. The system was developed using BAT algorithm. This paper analyses the approach of adaptive fuzzy logic system accompanied with bat algorithm in power management of smart grid. The path of carrying information i.e. communication layer between users and the energy provider in smart grid is analyzed. To achieve this, behavior of bats and its algorithm is studied and compared with vectors in adaptive fuzzy logic system and applied in power utility side of smart grid. It helps in indicating peak in load and also helps in prediction of power consumption in users. The offline algorithm is developed, simulated using Matlab 16a and simulation results are evaluated.

## Keywords

Fuzzy logic control system Power management system Smart grid BAT algorithm## Introduction

## Bat Algorithm

As we know, bat has unique abilities such as finding their food and recognizing different types of insects even in a complete darkness [4]. The basic principle is echolocation technique that is by emitting high frequency audio signals and sensing the intensity and strength of the reflected signal [5]. Three idealized rules as in Meta heuristic algorithm are executed by the bat during the short span of its transit.

- i.
All bats produce ultrasonic sound and receive the echo from the obstacles in their path.

- ii.
Bats fly randomly with velocity at position with a fixed frequency, varying wavelength and loudness to search for prey. They can automatically adjust the frequency of their emitted pulses and adjust the rate of pulse emission

- iii.
Although the loudness can vary in many ways, it is assumed that the loudness varies from a positive maximum to a minimum constant value.

_{i}, v

_{i}and f

_{i}respectively. Let f\(_{\min }\) and f\(_{\max }\) are its maximum and minimum frequencies of ultrasonic sound. The instantaneous frequency f

_{i}can be written as

Where \(\beta \epsilon \)[0, 1] is a random vector with uniform distribution.

*𝜖*[0,1] which can adjust depending on the target and it is updated emission rate can be written as

Where A_{i} is the loudness of the sound

The position of bat depends on current velocity of the bat, and then the X_{new} is its updated position, where \(\pounds \) is a random number with uniform distribution [-1, 1].

## Demand Response System Model

_{1,}

*E*

_{2....}

*E*

_{n}). The usage of energy for each user is unpredictable, but somehow the trend during the three slots can be estimated. However machine learning and stochastic signal processing technique can be adopted in each user determine its required demand information. The normal pattern of user’s power consumption can fed into appropriate machine learning algorithm to extract the demand information of the users. In order to provide to provide required energy of user n is

Here x^{k} is power consumption level and E_{n} is energy requirement level for n number of users. In each time slot the power can be classified into maximum and minimum value as M_{n} and m_{n} respectively. Total energy requirement is whereas this tends to be a problem for energy provider to find out demand information of all users. Depending on Price the loads can be classified into Price inelastic and elastic loads. Price inelastic loads are loads with fixed consumption level e.g. Refrigerator which provides energy for all time. There is no way of adjusting loads. While elastic load are flexible loads e.g. Charging equipment’s, AC etc. [9]. Pre-determined time slot and consumption level can be assigned for this load task, it will be very helpful in power consumption. In this paper Price elastic loads are considered.

## Utility Function and Cost Function

Utility function serves as intermediate action to participate in multiple whole sale market, including day ahead, real time balancing to provide enough energy to meet demand of N users. In paper [7] each appliance load is calculated and power for time t is drawn out. For each appliance a \(\epsilon \) A_{i} of customer i, we denote q_{i,a}(t) \(\epsilon \) t of power drawn in 24 hours. The cost are always kept on increasing with respect to available energy i.e. cost function are strictly convex. Many researchers are developing algorithms to satisfy the demand response of the user’s and also to reduce the cost function.

### Model Formulation

*….. l*

_{n}and w

_{1}, w

_{2}…w

_{n}represent elements of the learning vector and their associated weights respectively. [8]Therefore, we define the vector L

_{v}as learning vector as follows

_{1}to w

_{n}are weights associated with learning vectors \(l_{1}\ to \ l_{n}\). These adaptive vectors tend to adapt with schedules taking place in system, they are represented as a

_{1}

*a*

_{2}…a

_{k.}. Here depending upon the power usage of user the vectors adapt to it. Let \(\hat {A}\) be corresponding adaptive vector values as follows

Here {A_{v1}, A_{v2……}*A*_{vn}}and {L_{v1}, L_{v2……}*L*_{vn}}shows set of adaptive vectors and its learning vector basis of power usage.

### Applying Adaptive Fuzzy Logic Algorithm with Bat Algorithm

_{v}(6) with update of velocity and location changes into adaptive vector, it helps in calculating power usage of each user. These vectors travel passes through communication layer to every user using Eqs. 1 and 2. Here minimum and maximum frequency levels are assigned randomly Energy provider provides random range of frequency from f\(_{\max }\) and f\(_{\min }\). When vectors reach the user it identifies distance, velocity and frequency for the vector for communication between ECC in smart meter and energy provider. This new values are recorded for further use. The main benefit of going for this algorithm is the signal finds out the optimized path of transmitting signals is extracted through this algorithm. Once vector obtain its new location and velocities then new path is obtained x

_{new}. By which velocity and location is updated after it reaches the destination. The updated velocity is calculated using Eq. 3 and power consumption (7). These set of vectors which are generated in each 24 hours are helpful for energy provider to predict the usage rate for future use. x

_{new}is the new path obtained from adaptive vector. These vectors are further processed by transmitting randomly x

_{rand}. if x

_{rand}is lower than rate of emission then local solution is generated and x

_{best}is extracted out. If x

_{rand}is higher, it is further processed by flying randomly until x

_{new}is lesser than x

_{rand}. The simplified form is shown in flowchart Fig. 2.

_{new}is obtained. When random new solution is less than or equal to pre-defined X

_{best}solution then users consumption level is optimal or else with help these algorithm over usage indication can be send to the user. This flow chart was evaluated as algorithm and executed with simulation code.

### Performance Evaluation

In this section the proposed algorithm is simulated and results are shown in Fig. 3. Here the usage of single user is evaluated. Power usage (in kW) vs time (in hours) here schedule of 24 hours is taken from 12 a.m to 12 a.m of next day are evaluated. In simulation results, power hike is observed in between 5 to 10 a.m. the path obtained through this algorithm transmits information to energy provider, and he transmits information to user about power usage. To reduce the cost function, the users will also participate in demand side to get better results. This algorithm helps in prediction of power usage of every single user .So that user will also be aware of their power consumption. In order to save power during peak time the user/energy provider can take decision to change power source from non-renewable resource to renewable energy source like solar, wind etc., that will help in saving major amount non-renewable resource. For e.g. between 5–10 am and 4–6pm, if the solar power panel with battery acts as power source for a user then major amount of non-renewable resource can be saved.

## Conclusion

This paper presented a new approach of adaptive fuzzy logic system in smart grid using bat algorithm. Here offline algorithm is generated and applied in Matlab 2016a and random values of input are given as frequency and emission rate for vectors and simulation is evaluated as shown in Fig. 3. By which 24 hours power consumption single user schedule is listed out. On comparing to other algorithm these proposed algorithm is helpful in communicating with the user through smart meter to reduce the power consumption whenever there is peak in power takes place. The algorithm is designed in way such that adaptive vectors make use of bat algorithm to find the optimal path of information flow and also gets communicated to user from energy provider. Then it starts to analyze day to day power usage of user and when there is peak in load the indication is given to user and also helps energy provider in predicting for every single user demand through this algorithm.

## Notes

### Acknowledgments

The authors would like to express their sincere thanks to Dr. S R K Prasad (Correspondent, CIT), Dr. R. Prabhakar (Secretary, CIT), Dr. V. Selladurai (Principal, CIT), and Mr. P. Rajiv Rangasamy (Director, CIT) for their help and Encouragement during the course of work. The authors like to thank Dr. Hongbo Liu, Professor Eje Central Lazaro Cardenas, Mexico for useful discussion.

## References

- 1.Momoh J (2012) Text book on ‘Smart grid Fundamentals of Design and Analysis’, 1st edn. Wiley-IEEE Press, New YorkCrossRefGoogle Scholar
- 2.RaisulAlam M, St-Hilaire M, Kunz T (2013) ’A survey on cost saving methods for smart grids’ Published in IEEE International Conference on Smart Energy Grid Engineering (SEGE’13). https://doi.org/10.1109/TII.2015.2414719
- 3.MiroslawLazoryszczak JPP The stability analysis of Bat Algorithm. In: 2017 IEEE international conference on innovations in intelligent systems and applications (INISTA2017). https://doi.org/10.1109/INISTA.2017.8001133
- 4.SankalapArori SS A Conceptual Comparison of Firefly Algorithm, Bat Algorithm and Cuckoo Search. In: 2013 international conference on control, computing, communication and materials (ICCCCM). https://doi.org/10.1109/ICCCCM.2013.6648902
- 5.Yang X-S (2010) A new metaheuristic bat-inspired algorithm. In: Nature inspired cooperative strategies for optimization (NICSO 2010). Springer, pp 65–74. https://doi.org/10.1007/978-3-642-12538-6_6
- 6.Samadi P, Member S, Mohsenian-Rad H, Schober R, Wong VWS (2012) Advanced Demand Side Management for the Future Smart Grid Using Mechanism Design. IEEE Trans Smart Grid 3(3):1170–1180. https://doi.org/10.1109/TSG.2012.2203341 CrossRefGoogle Scholar
- 7.Li N, Chen L, Steven H (2011) Optimal demand Response Based on Utility Maximization in Power Networks. In: Power and energy society general meeting. https://doi.org/10.1109/PES.2011.6039082
- 8.Siamakarzanpour A (2017) ’An adaptive fuzzy logic system for residential energy management in smart grid environment fuzzy logic system for residential energy management in smart grid environments’ Applied Energy (2016), Volume 186, Part 1, pp 68–81. https://doi.org/10.1016/j.apenergy.2016.11.028
- 9.Bahrami S, Wong WS, Huang J An Online Learning Algorithm for Demand Response in Smart Grid. IEEE Trans Smart Grid PP(99):4712–4725. https://doi.org/10.1109/TSG.2017.2667599
- 10.Al-ali AR, Tubaiz NA, Al-Radaideh A, Al-Dmour JA, Murugan L (2012) Smart Grid Controller for Optimizing HVAC Energy Consumption. In: 2012 International conference on computer systems and industrial informatics (ICCSII). https://doi.org/10.1109/ICCSII.2012.6454548