원시데이터 수집 시스템
선정목록으로

A New Approach for Grid-Connected Hybrid Renewable Energy System Sizing Considering Harmonic Contents of Smart Home Appliances

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Ayşe Kübra Erenoğlu — Department of Electrical Engineering, Yıldız Technical University, 34220 Esenler-Istanbul, Turkey
  2. Alper Çiçek — Department of Electrical Engineering, Yıldız Technical University, 34220 Esenler-Istanbul, Turkey
  3. Oktay Arıkan — Department of Electrical Engineering, Yıldız Technical University, 34220 Esenler-Istanbul, Turkey
  4. Ozan Erdinç — Department of Electrical Engineering, Yıldız Technical University, 34220 Esenler-Istanbul, Turkey
  5. João P. S. Catalào — INESC TEC and the Faculty of Engineering of the University of Porto, 4200-465 Porto, Portugal
DOI
10.3390/app9183941
저널
Applied Sciences
발행년도
2019
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/app9183941
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W2973707008

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Even renewable energy sources provide several advantages, especially from an environmental point of view, where the world has faced great challenges in the last few decades; several negative issues also exist regarding the integration of renewable resources-based power production units in electric power systems. One of the main problems related to pivotal renewable energy resources such as solar, wind, etc., is their stochastic and uncontrollable nature in terms of power production. Therefore, this stochasticity in the supply side of the power system may pose many challenges for system operators. This issue is also problematic for smaller applications where the stochastic production by a main resource, such as a roof-top photovoltaic system, and load demand may not match perfectly at each time instant and therefore should be compensated by additional resources such as battery-based energy storage systems. Herein, the economic considerations to ensure minimum costs for such a hybrid system design are vital so as to increase the penetration of such systems. Therefore, the optimal sizing and planning of hybrid systems have recently gained increasing importance to enhance power system operation in the context of the smart grid paradigm. From a different perspective, harmonics are one of the most important power quality problems in system operations caused by widespread integration of power electronic loads with non-linear characteristics that should be considered. Thus, a new approach for grid-connected hybrid renewable energy system sizing is provided. In order to determine optimal capacities for photovoltaic (PV) and energy storage system (ESS) units for covering residential consumer demand, a mixed integer linear programming (MILP)-based formulation is presented. The main objective is minimizing total costs of the system consisting of investment, capital and maintenance cost functions. A daily power curve is created accurately with real measurements of non-linear loads considering harmonic contents of smart home appliances in Yildiz Technical University, Istanbul, Turkey. In addition, real radiation and temperature values are used in PV production as well as dynamic pricing schemes for realistic evaluations. Moreover, optimal sizing results are compared for both the harmonic-based power curve and rated power curve in terms of satisfying objective function.

본문 56,469자

본문 펼치기
# _applied_ _sciences_ _Article_ ## A New Approach for Grid-Connected Hybrid Renewable Energy System Sizing Considering Harmonic Contents of Smart Home Appliances Ay¸se Kübra Ereno˘glu <sup>1</sup> , Alper Çiçek <sup>1</sup> , Oktay Arıkan <sup>1</sup> , Ozan Erdinç <sup>1</sup> and João P. S. Catalão <sup>2,</sup> * 1 Department of Electrical Engineering, Yıldız Technical University, 34220 Esenler-Istanbul, Turkey; erenayse@yildiz.edu.tr (A.K.E.); alper_cicek92@hotmail.com (A.C.); oarikan@yildiz.edu.tr (O.A.); oerdinc@yildiz.edu.tr (O.E.) 2 INESC TEC and the Faculty of Engineering of the University of Porto, 4200-465 Porto, Portugal * Correspondence: catalao@fe.up.pt Received: 25 June 2019; Accepted: 9 September 2019; Published: 19 September 2019 [���������](https://www.mdpi.com/2076-3417/9/18/3941?type=check_update&version=2) [�������](https://www.mdpi.com/2076-3417/9/18/3941?type=check_update&version=2) Abstract: Even renewable energy sources provide several advantages, especially from an environmental point of view, where the world has faced great challenges in the last few decades; several negative issues also exist regarding the integration of renewable resources-based power production units in electric power systems. One of the main problems related to pivotal renewable energy resources such as solar, wind, etc., is their stochastic and uncontrollable nature in terms of power production. Therefore, this stochasticity in the supply side of the power system may pose many challenges for system operators. This issue is also problematic for smaller applications where the stochastic production by a main resource, such as a roof-top photovoltaic system, and load demand may not match perfectly at each time instant and therefore should be compensated by additional resources such as battery-based energy storage systems. Herein, the economic considerations to ensure minimum costs for such a hybrid system design are vital so as to increase the penetration of such systems. Therefore, the optimal sizing and planning of hybrid systems have recently gained increasing importance to enhance power system operation in the context of the smart grid paradigm. From a different perspective, harmonics are one of the most important power quality problems in system operations caused by widespread integration of power electronic loads with non-linear characteristics that should be considered. Thus, a new approach for grid-connected hybrid renewable energy system sizing is provided. In order to determine optimal capacities for photovoltaic (PV) and energy storage system (ESS) units for covering residential consumer demand, a mixed integer linear programming (MILP)-based formulation is presented. The main objective is minimizing total costs of the system consisting of investment, capital and maintenance cost functions. A daily power curve is created accurately with real measurements of non-linear loads considering harmonic contents of smart home appliances in Yildiz Technical University, Istanbul, Turkey. In addition, real radiation and temperature values are used in PV production as well as dynamic pricing schemes for realistic evaluations. Moreover, optimal sizing results are compared for both the harmonic-based power curve and rated power curve in terms of satisfying objective function. Keywords: harmonics; hybrid system; optimal sizing; power quality; smart grid 1. Introduction _1.1._ _Motivation and Background_ In the last few decades, the energy demands of the modern world have extraordinarily increased due to technological innovations, rapid urbanization, and growing population [1]. As a natural _Appl._ _Sci._ 2019, _9_ [, 3941; doi:10.3390/app9183941](http://dx.doi.org/10.3390/app9183941) [www.mdpi.com/journal/applsci](http://www.mdpi.com/journal/applsci) _Appl._ _Sci._ 2019, _9_, 3941 2 of 18 consequence, power-electronic-based electrical equipments have started to be utilized more widely on the demand side [2]. The great achievements of semiconductor technology have captured the electronic industry and dominated the market of household appliances. However, all these paved the way for rising concerns about power quality issues in the distribution system due to the non-linear voltage-current characteristics of these appliances [3]. Therefore, it would not be wrong to mark that utility engineers will encounter harmonic problems more than in the past considering this widespread integration. Several domestic loads such as TV, laptop, printer, computer, light-emitting diodes (LEDs), washing machine, dishwasher, etc., have substantial impacts on the harmonic distortion level in the residential scale [4]. In order to quantify the potential effect on power system operation, the index of total harmonic distortion (THD) is defined as “The ratio of the rms of the high order harmonic components to the rms value of the fundamental quantity, represented as a percentage of the fundamental” [5,6]. According to the Institute of Electrical and Electronics Engineers (IEEE) 519-2014 [7], the voltage THD should be less than or equal to a 5% limit in the point of common coupling measurements from 120 V to 69 kV. Therefore, the harmonic contents of residential loads have to be monitored with digital technology thanks to the smart grid paradigm, and power quality requirements should be controlled in terms of satisfying the standards or not. From the other perspective, renewable-based energy sources (RESs), such as photovoltaic (PV), have gained increasing interest worldwide and provide great opportunities in terms of covering residential end-users’ power consumption. Integrating these units paves the way for reducing grid dependence, gas emissions, and losses, thus improving the voltage profile and decreasing investment/operation costs [8–10]. Therefore, massive deployment has been performed for every type of end-user thanks to noteworthy attempts from the government and industrial stakeholders. However, the stochastic nature of RESs can cause significant operational problems [11] in the electrical network that should be dealt with. Energy storage systems play an important role considering this issue in terms of aiding to provide a supply–demand balance and also reduce grid dependence. Load fluctuations as well as power variations have been evaluated comprehensively from the power system planner’s perspective and optimal sizing strategies have been proposed in order to provide economical system design. It is important to emphasize that utilizing all the aforementioned benefits strongly depends on how to optimally determine the installation capacities of the system components. Non-optimization based modeling may result in higher investment costs as well as power losses. _1.2._ _Relevant Literature_ A considerable amount of successful studies have been systematically conducted to improve optimal sizing strategies for a hybrid renewable energy system in order to achieve various objectives. The genetic algorithm [12,13], artificial intelligence [14–19], particle swarm optimization (PSO) [20–22], simulated annealing [16], and analytical modelings [23] are commonly used techniques in the literature to solve complex system planning and operation problems. Among them, Sedighi et al. presented a method for optimal sizing and siting of distributed generation units for the purpose of improving voltage profile and reducing losses as well as THD in distribution networks. Load flows as well as harmonic calculations were taken into consideration in this scheme in which the PSO algorithm was used as a solution technique [20]. Similar to this study [12], the heuristic PSO technique was used in a study by Amanifar and Golshan in [21] to solve optimal distributed generation allocation and sizing problems aiming to minimize investment costs and power losses. A multi-objective distributed generation locating and sizing problem was constructed in a study by Lu et al. in [22] considering the active power loss, harmonic distortion, voltage quality, and voltage sags. Monte Carlo simulation was conducted for fault analysis in order to evaluate the economic losses of the distribution system. Mohanty and Kelapure proposed a methodology for allocating the PV sources in a distribution feeder keeping the voltage THD within permissible limits according to the IEEE-519 standard [24]. Apart from addressing power quality issues, the protection coordination scheme was also taken into account by Rahmani et al. in [12] while providing the optimum distributed _Appl._ _Sci._ 2019, _9_, 3941 3 of 18 generation sizing. The performance analysis was carried out on an IEEE radial test system and comprehensive evaluations were presented in terms of voltage profile, THD, and power losses. Combining energy management strategy with optimum hybrid system sizing was presented in a study by Feroldi and Zumoffen in [13] for the purpose of providing loss of power supply probability requirements with the lowest cost. Historical long-term climate and demand data were used in a genetic algorithm-based methodology to testify the impacts of different weather conditions on system design. Hosseinalizadeh et al. developed a techno-economically optimized hybrid system modeling consisting of a wind turbine, PV, a fuel cell, and energy storage system. In this scheme, solar radiation and average wind velocity were considered for investigating different combined RES architectures under diverse sizing scenarios [25]. From the other perspective, an artificial intelligence-based optimization model was presented in a study by Zhou et al. in [14] for both optimum sizing of hybrid PV–wind system and optimum resource allocation based on load demand. It was aimed to decrease high initial and operation costs of the system with proper management strategies and effective modeling techniques. Paliwal et al. presented an approach for an integrated hybrid power system comprising PV–wind–diesel and ESS aimed at determining the optimal mix of mentioned resources by achieving techno-socio-economic criterion. The developed planning formulation was tested under different combined configurations in order to evaluate the reliability needs considering RES uncertainties [15]. For more detailed information about artificial intelligence based-approaches, the studies [16–19] can be also examined. Askarzadeh developed a novel discrete chaotic harmony search-based simulated annealing algorithm to design an integrated PV–wind–ESS hybrid system optimally in terms of minimizing total annual cost while satisfying the constraints [16]. Escobar et al. proposed an analytical model-based sizing approach for a hybrid PV–wind–hydrogen energy conversion system based on real weather data in order to analyze its feasibility and efficiency [23]. For more information about optimal sizing of hybrid systems, significantly detailed literature surveys on different methodologies, solution techniques, modeling schemes, and discussions are given in [26–32]. The vast majority of studies have also been carried out to investigate the harmonic contents of household appliances and their impacts on system operation. Among them, Neha et al. carried out an experimental analysis for measuring the parameters of THD, displacement power factor (DPF), and transient current of several pieces of equipment by using a multi-function meter in India [33]. Roy and Mather grouped the domestic appliances as lighting, power electronics, resistive, motor, and aggregated loads for establishing a complete bottom-up model to assess voltage stability, harmonics, voltage sag, swells, and unbalance conditions [34]. Also, the load current characteristics were studied in [34]. Harmonic analysis was conducted by Kit et al. in [35] in which the parameters were measured for a desktop computer, fluorescent luminaries, and compact fluorescent lamps and voltage harmonic distortion impacts on current harmonics were also investigated. Grasselli et al. monitored the time-varying harmonic behavior of non-linear residential loads such as a printer, photocopier, cell phone battery charger, and compact fluorescent lamp [36]. Characterization methodology was proposed in [37] for modeling the loads based on their harmonic series composition. Munir et al. in [38], investigated the potential of using PV interface inverters to reduce the effect of harmonics from households. A model for house load and distributed production was created and the model was confirmed by simulations. Egan et al. proposed a model to determine energy consumption with high accuracy for typical Irish dwellings in [39]. However, the effect of harmonic was not taken into consideration in this study. Habib et al. proposed a model to improve the reliability of the power system during a power failure of a shared PV system in [40]. One-year data for the PV system and 10 home consumers for loads were considered. It has been seen that the common use of the PV system makes more profit than the individual use. These aforementioned references with many other studies not referred here have provided valuable contributions to the literature on the optimal sizing strategies of hybrid systems from different _Appl._ _Sci._ 2019, _9_, 3941 4 of 18 points of view. Various methods, solution techniques, and modeling frameworks have been presented for achieving different objectives. Nevertheless, it is important to emphasize that most of the reported techniques for optimal sizing of hybrid systems assume sinusoidal operating conditions which do not take the voltage and current harmonics of the demand side into consideration. _1.3._ _Content, Contributions, and Organization of the Study_ In this paper, a mixed integer linear programming (MILP)-based mathematical modeling concept is proposed to find the optimal size of PV and ESS units for covering grid-connected smart home consumption in an economic fashion. The real measurement is performed for residential appliances considering the harmonic components caused by non-linear loads and afterwards the power consumption curve is obtained accurately. The cost function consisting of capital, investment, and maintenance of PV/ESS, is aimed to be minimized after the optimization procedure, thus satisfying the system’s operational constraints. A dynamic pricing scheme is also incorporated into the methodology to determine energy transactions between home and utility grid. To the best knowledge of the Authors, this study attempts to be the first in terms of covering sizing, harmonic impact, dynamic pricing schemes implementation, and real measurements based on gathered data utilization facts in a single study within the existing literature. The organization of the paper is prepared as follows: Section 2 gives the mathematical background of the proposed optimization problem which is based on MILP with detailed explanations. Section 3 shows the simulation results and the conclusions with possible future studies discussed in Section 4. 2. Methodology _2.1._ _An Overview of the Presented Structure_ The structure of the proposed model is given in Figure 1. In this structure, the smart home has PV and a battery hybrid system. The PV and battery hybrid system both supply energy to the smart home, and even can inject energy to the grid. The smart home can supply energy from the PV system and the battery, and can also buy energy from the grid. The appliances in the smart home consume harmonic loads. In the case of harmonics, more power should be supplied to the load, and this situation changes the system size and operation. Power Plants Neighbour Smart Homes <u>Bus</u> Smart Home PV (1kW x n) 1 2 n Battery (1 kWh x n) 1 2 n Zigbee Other Smart Appliances Figure 1. Proposed structure of smart home with photovoltaic (PV)–battery hybrid system. _Appl._ _Sci._ 2019, _9_, 3941 5 of 18 _2.2._ _Mathematical Formulation_ In this study, MILP model of a smart home containing PV and battery hybrid system is presented. It is aimed to maximize the net present value of the profit obtained by a concept containing a PV–battery hybrid system. In addition, economically optimum PV and battery sizes are calculated in this manner. Herein, the profit is acquired by subtracting the expenses from the income with the objective function given below aiming to maximize the net present value of the profit between incomes and the costs. 2.2.1. Economic-Based Formulation The aim of the problem stated in this study is to maximize total profit and is obtained by subtracting expenses from incomes. The objective function is defined in Equation (1). The aim is to maximize total profit and is obtained by subtracting expenses from incomes. _present_ <sup>_income_</sup> <sup>−</sup> <sup>_V_</sup> _present_ <sup>_out flow_</sup> Max. _TNPV_ = _Vpresent_ <sup>_income_</sup> _present_ <sup>_out flow_</sup> (1) Equation (2) refers to the balance of power at each time _t_ . Herein, the sum of the power bought from the grid, the power used from the PV, and the power used from the battery is equal to the sum of the power consumed on the loads, the power stored in the battery, and power sold to the grid. _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> _t_ <sup>_PV_</sup> <sup>,</sup> <sup>_used_</sup> + _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_used_</sup> _t_ _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> + _P_ <sup>_PV_</sup> <sup>,</sup> <sup>_used_</sup> _t_ _t_ <sup>_bat_</sup> _t_ <sup>,</sup> <sup>_used_</sup> = _P_ <sup>_load_</sup> _t_ <sup>_load_</sup> _t_ + _P_ <sup>_bat_</sup> _t_ <sup>,</sup> <sup>_ch_</sup> _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> (2) <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> + _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ In Equation (3), the power produced in the PV system is equal to the sum of the power consumed in the system and sold to the grid. _nPV_ refers to the number of 1 kW PV system. _P_ <sup>_PV_</sup> <sup>,</sup> <sup>_used_</sup> _t_ <sup>_PV_</sup> <sup>,</sup> <sup>_used_</sup> + _P_ <sup>_PV_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ <sup>_PV_</sup> <sup>,</sup> <sup>_sold_</sup> = _P_ <sup>_PV_</sup> <sup>,</sup> <sup>_prod_</sup> _t_ _t_ <sup>_PV_</sup> _t_ <sup>,</sup> <sup>_prod_</sup> - _nPV_ (3) In addition, Equation (4) expresses that _nPV_, which is the number of PVs of 1 kW, is less than the maximum number of PVs that is predetermined. _nPV_ ≤ _n_ <sup>_max_</sup> _PV_ (4) The power discharged from the battery is either sold to the grid or consumed on loads. This value must also be multiplied by the discharge efficiency. This is described in Equation (5). _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_used_</sup> _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_used_</sup> + _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_sold_</sup> = _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> _t_ _t_ <sup>_bat_</sup> _t_ <sup>,</sup> <sup>_disch_</sup> - η <sup>_disch_</sup> _bat_ (5) _R_ <sup>_disch_</sup> <sup>_disch_</sup> and _R_ <sup>_ch_</sup> _bat_ _bat_ _R_ <sup>_disch_</sup> and _R_ <sup>_ch_</sup> _bat_ _bat_ <sup>in</sup> <sup>Equations</sup> <sup>(6)</sup> <sup>and</sup> <sup>(7)</sup> <sup>indicate</sup> <sup>the</sup> <sup>maximum</sup> <sup>power</sup> <sup>at</sup> <sup>which</sup> <sup>the</sup> <sup>battery</sup> <sup>is</sup> discharged and charged for a 1 kWh unit, respectively. These expressions are multiplied by _nbat_ to determine the power limits for the battery size. _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> _t_ <sup>_disch_</sup> _bat_ - _nbat_ (6) <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> ≤ _R_ <sup>_disch_</sup> _t_ _bat_ _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> _t_ <sup>_ch_</sup> _bat_ <sup>·</sup> <sup>_nbat_</sup> (7) <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> ≤ _R_ <sup>_ch_</sup> _t_ _bat_ As stated in Equation (8), the maximum value is assigned to the number of PV panels with _n_ <sup>_max_</sup> _bat_ to determine the solution constraints of the optimization problem. _nbat_ ≤ _n_ <sup>_max_</sup> _bat_ (8) Equation (9) calculates the energy level of the battery at each time _t_ . According to this equation, the energy level at time _t_ is obtained by power at the time ( _t_ - 1) with collection by the discharge power _Appl._ _Sci._ 2019, _9_, 3941 6 of 18 of the battery or by subtracting the charge power in this interval (( _t_ - 1) to _t_ ). Herein, η <sup>_ch_</sup> _bat_ <sup>is given as</sup> the charging efficiency of the battery. _E_ <sup>_bat_</sup> _t_ <sup>_bat_</sup> _t_ = _E_ <sup>_bat_</sup> ( _t_ <sup>_bat_</sup> ( _t_ −1) <sup>+</sup> <sup>_P_</sup> _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> - η <sup>_ch_</sup> _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> _bat_ <sup>· ∆</sup> <sup>_T_</sup> <sup>−</sup> <sup>_P_</sup> _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> _t_ <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> - ∆ _T_, _t_ - 1 (9) In Equations (10)–(12), the state of energy (SoE) of battery at the initial time, the maximum energy level of battery, and the minimum energy level of battery are defined respectively. _E_ <sup>_bat_</sup> _t_ = _E_ <sup>_bat_</sup> <sup>,</sup> <sup>_ini_</sup> - _nbat_, _t_ = 1 (10) _E_ <sup>_bat_</sup> _t_ ≤ _E_ <sup>_bat_</sup> <sup>,</sup> <sup>_max_</sup> - _nbat_ (11) _E_ <sup>_bat_</sup> _t_ ≥ _E_ <sup>_bat_</sup> <sup>,</sup> <sup>_min_</sup> - _nbat_ (12) Since the battery cannot be charged and discharged at the same time, the _u_ <sup>_bat_</sup> _t_ binary decision variable is defined to prevent this situation. This condition is provided by Equations (13) and (14). Herein, _N_ is defined as a sufficiently big positive number. _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_disch_</sup> _t_ <sup>_bat_</sup> _t_ (13) <sup>_bat_</sup> _t_ <sup>,</sup> <sup>_disch_</sup> ≤ _N_ - _u_ <sup>_bat_</sup> _t_ (14) _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_ch_</sup> ≤ _N_ _t_ �1 − _u_ <sup>_bat_</sup> _t_ The limits of the maximum power that can be withdrawn from the grid and sold to the grid are easily indicated in the Equations (15) and (16), respectively. This is important in terms of grid capacity as the withdrawal of energy from the grid and the sale of energy to the grid cannot be materialized at the same time, therefore _ut_ <sup>_grid_</sup> binary decision variable is defined for this situation. _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> ≤ _P_ <sup>_peak_</sup> <sup>_</sup> <sup>_pwr_</sup> _t_ _t_ <sup>_peak_</sup> _t_ <sup>_</sup> <sup>_pwr_</sup> - _ut_ <sup>_grid_</sup> (15) _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> ≤ _P_ <sup>_peak_</sup> <sup>_</sup> <sup>_pwr_</sup> _t_ _t_ <sup>_peak_</sup> _t_ <sup>_</sup> <sup>_pwr_</sup> - 1 − _ut_ <sup>_grid_</sup> (16) The total power injected into the grid is equal to the sum of the power supplied by the PV and the battery. This is described in Equation (17). _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ <sup>_PV_</sup> <sup>,</sup> <sup>_sold_</sup> + _P_ <sup>_bat_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> = _P_ <sup>_PV_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ <sup>_bat_</sup> _t_ <sup>,</sup> <sup>_sold_</sup> (17) In the case of using PV and battery hybrid system, the change in total electricity cost is explained in Equation (18). _Pt_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> shows the power bought from the grid. _Pt_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> the grid. Furthermore, λ <sup>_buy_</sup> _t_ _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> represents the power sold to <sup>_buy_</sup> _t_ and λ <sup>_sell_</sup> _t_ the grid. Furthermore, λ <sup>_buy_</sup> _t_ and λ <sup>_sell_</sup> _t_ are the unit prices for buying and selling, respectively. The prices vary per hour as _t_ _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> - λ <sup>_sell_</sup> _t_ �∆ _T_ (18) _TCV_ = - _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> _t_ <sup>_grid_</sup> <sup>,</sup> <sup>_buy_</sup> - λ <sup>_buy_</sup> - _P_ <sup>_grid_</sup> <sup>,</sup> <sup>_sold_</sup> _t_ _t_ _t_ The calculation of the cost difference between the situations where the PV and battery hybrid system is considered and the neglected is realized in Equation (19). _V_ <sup>_cost_</sup> <sup>_</sup> <sup>_red_</sup> = _VCB_ - _TCV_ (19) The total value of cash incomes and outflows during the project lifetime (generally considered as 20 years) is calculated respectively in Equations (20) and (21). ( <sup>_<u>Vcost</u>_</sup> <sup>_</sup> <sup>_red_</sup> _dn_ _Vpresent_ <sup>_income_</sup> <sup>=</sup> _n_ ) (20) _Appl._ _Sci._ 2019, _9_, 3941 7 of 18 _V_ <sup>_outcome_</sup> _present_ _present_ = _C_ <sup>_PV_</sup> _cap_ <sup>_bat_</sup> _cap_ <sup>·</sup> <sup>_n_</sup> _bat_ <sup>_PV_</sup> _cap_ <sup>·</sup> <sup>_nPV_</sup> <sup>+</sup> <sup>_Cbat_</sup> _cap_ <sup>�</sup> _<u>n</u>_ _n_ <sup>(</sup> <sup>_<u>CPV</u>_</sup> <sup>,</sup> <sup>_rep_</sup> <sup>,</sup> <sup>_ind_</sup> (21) + <sup>�</sup> _n_ _<u>n</u>_ - _<u>Cn</u>_ <sup>_PV_</sup> <sup>,</sup> <sup>_rep_</sup> - _<u>nPV</u>_ <u>+</u> _<u>C</u>_ <sup>_PV_</sup> _<u>n</u>_ <sup>,</sup> <sup>_main_</sup> - _<u>nPV</u>_ <u>+</u> _<u>Cn</u>_ <sup>_bat_</sup> <sup>,</sup> <sup>_rep_</sup> <sup>,</sup> <sup>_ind_</sup> - _<u>Cn</u>_ <sup>_bat_</sup> <sup>,</sup> <sup>_rep_</sup> - _<u>nbat</u>_ <u>+</u> _<u>Cn</u>_ <sup>_bat_</sup> <sup>,</sup> <sup>_main_</sup> - _<u>nbat</u>_ ) _dn_ <sup>_PV_</sup> <sup>,</sup> <sup>_rep_</sup> <sup>,</sup> <sup>_ind_</sup> 2.2.2. Harmonic Model As was mentioned above, the loads in the smart home caused harmonics and the relevant harmonic model is given below. The instantaneous values for voltage and current are given in Equation (22) and (23), respectively. _vn_ and _in_ are the instantaneous voltage and current of the _n_ . harmonic. Furthermore, _w_ 1 represents the angular frequency for the fundamental component. Lastly, θ _n_ and δ _n_ are phase angles of _n_ voltage and current harmonics. ∞ _n_ =1 _v_ ( _t_ ) = _i_ ( _t_ ) = _vn_ ( _t_ ) = _in_ ( _t_ ) = ∞ _n_ =1 ∞ _n_ =1 ∞ _n_ =1 √2 _Vn_ sin( _n_ ω1 _t_ + θ _n_ ) (22) √2 _In_ sin( _n_ ω1 _t_ + δ _n_ ) (23) The instantaneous active power expression is given in Equation (24). Herein, the active power is obtained by multiplying the current and voltage with the same frequency. Similarly, the reactive power expression is also expressed in Equation (25). _P_ = _Q_ = ∞ _n_ =1 ∞ _n_ =1 _VnIn_ cos(θ _n_ - δ _n_ ) (24) _VnIn_ sin(θ _n_ - δ _n_ ) (25) The effective values of current and voltage are given in Equations (26) and (27), respectively. Herein, the effective value is obtained by taking the square root of the sum of the squares of the fundamental component and other harmonic components. _I_ = _V_ = ~~�~~ <u>�</u> ∞ _n_ =1 ~~�~~ <u>�</u> ∞ _n_ =1 _In_ <sup>2</sup> (26) _Vn_ <sup>2</sup> (27) Equations (26) and (27) results in calculating the apparent power by indicating Equation (28). _S_ = _V_ . _I_ <sup>∗</sup> (28) The apparent power can be obtained from active, reactive, and distortion power types as follows: _S_ <sup>2</sup> = _P_ <sup>2</sup> + _Q_ <sup>2</sup> + _D_ <sup>2</sup> (29) where _D_ distortion power is used to define inactive power for current and voltage at different frequencies. 3. Test and Results The proposed MILP model is tested in the General Algebraic Modeling System (GAMS) v.24.1.3 with the objective of minimizing total cost. The commercial solver CPLEX v.12 by IBM [41] is used as _Appl._ _Sci._ 2019, _9_, 3941 8 of 18 a solution technique to provide optimal sizing of PV and ESS units by taking into consideration the harmonic current and voltage contents of smart home appliances. _3.1._ _Input Data_ Almost every piece of equipment found in a typical Turkish household is available in the smart home laboratory at Yildiz Technical University as indicated in Table 1. The rated powers and normal operating conditions have different characteristics that should be considered. Therefore, the household power consumption curve is provided based on real measurement data including harmonics (up to 50th) as shown in Figure 2. It is assumed that the household consists of a four-person family, where one of the parents working has this daily load profile. The 24 h demand power is extended for obtaining 8760 h for making yearly analysis. During this period, the load varies to include summer, winter, and other seasons. Table 1. Electrical appliances in the smart home. Appliance Rated Power (kW) Appliance Rated Power (kW) Refri ~~gerator~~ ~~0.150~~ ~~Hair straightener~~ ~~0.055~~ I ~~ron~~ ~~2.4~~ ~~Oven~~ ~~2.05~~ Toaster 0.708 Dishwasher 1.7 Kettle 2 Microwave oven 1.18 Hair dryer 1.536 Printer 0.02 LCD-TV 0.09 Air conditioner 1.14 PC desktop 0.05 Washing machine 1.8 PC monitor 0.03 Vacuum cleaner 1.9 LED Lighting 0.035 Laptop 0.03 Figure 2. The power consumption of smart home based on real measurements considering harmonic contents. All appliances are monitored with a professional Fluke Analyzer and the harmonic currents, voltages, THD, and active, reactive and apparent powers are obtained accurately to avoid modeling errors. The Fluke Analyzer can measure and record these values at a desired interval which was selected as three seconds. The power quality measurement of the appliances was experimentally conducted, and real power curve of the smart household was obtained based on the measurements. A representative system establishment for only one appliance can be seen in Figure 3. Some representative appliances are demonstrated with graphs for the sake of clarity for the reader. Figure 4 shows the frequency spectrum of an alternative current (AC) of a washing machine in which the fundamental value is accepted as 100%. It is evidently clear that h3 and h5 are most profound components in the working conditions that cause extra power losses similar to PC desktop-oriented measurements depicted in _Appl._ _Sci._ 2019, _9_, 3941 9 of 18 Figure 5. However, the laptop has different harmonic contents in which h3, h7, and h13 are the dominant values as shown in Figure 6. Figure 3. Harmonic measurement of a washing machine. Figure 4. Current spectrum of the washing machine. Figure 5. Current spectrum of the PC desktop. _Appl._ _Sci._ 2019, _9_, 3941 10 of 18 Figure 6. Current spectrum of the laptop. In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with nPV <mark>to</mark> find optimal sizing capacity of the system design considering harmonic load, ESS capacity, an <mark>d gr</mark> id power transaction under dynamic pricing. Figure 7. PV system power production as normalized in 1 kW. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. _Appl._ _Sci._ 2019, _9_, 3941 11 of 18 Figure 8. Dynamic pricing of buying energy from a grid. The input parameters for PV and ESS, as well as economic rates are indicated in Table 2. The costs of capital, replacement, and maintenance can be changed easily when integrating the system for making sensitivity analysis. The optimal sizing results strongly depend on these values. It should be marked that the sizes of PV and ESS are restricted with upper limits of 5 kW and 4 kWh, respectively. However, the flexible scheme enables these inputs to be changed and applies a bigger system for more comprehensive evaluations. Also, the project lifetime is considered as 20 years in which PV is assumed not to need replacement whilst ESS is changed in every 10 years. This is because it is stated by the manufacturers that the PV system has a lifetime of 20 years. For the battery, this value appears to be 10 years in the technical data generally. Therefore, in this study, it was accepted that the lifetime for PV and battery is 20 and 10 years, respectively. However, it is only an input for the proposed structure. The value can be modified as 3, 5, or 7 years if desired in this flexible architecture. What is important in this study is to explain the mathematical background behind the system and show how the decision-making algorithm is working properly. <u>Table 2.</u> <u>Economic input parameters for PV and ESS units.</u> Input Parameters Value Capital Cost of PV unit ($/kW) 500 Replacement Cost of PV unit ($/kW) 500 Maintenance Cost of PV unit ($/kW] 25 Capital Cost of ESS unit ($/kWh) 90 Replacement Cost of ESS unit ($/kWh) 90 Maintenance Cost of ESS unit ($/kWh) 3 ~~Real Discount Rate~~ ~~0.05~~ Project Lifetime (years) 20 Normally, the harmonic currents and voltages are measured in 3 s time granularity, which is convenient to the relevant standards. However, these relatively small intervals would cause a high computation burden while making a plan for 20 years (project time). Therefore, time granularity is selected as an hour for the optimal sizing procedure. _3.2._ _Simulation Results_ In order to investigate the effectiveness of the proposed MILP-based algorithm, two representative results are compared from different points of view. For the sake of a clearer representation, sample cases for Summer and Winter (May 16, 2013 and January 1, 2013) are both analyzed to evaluate operational behavior of optimization strategies. _Appl._ _Sci._ 2019, _9_, 3941 12 of 18 The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10. Figure 9. Power balance of the proposed hybrid system for a sample winter case. Figure 10. Power balance of the proposed hybrid system for a sample summer case. At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00–20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the _Appl._ _Sci._ 2019, _9_, 3941 13 of 18 hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11. Battery charging and discharging power along with state of energy variation for sample winter case. The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process. Figure 12. The PV system power decomposition for sample winter case. _Appl._ _Sci._ 2019, _9_, 3941 14 of 18 Figure 13. The PV system power decomposition for sample summer case. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid. The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. Figure 14. The decomposition of injected power to the grid with PV and battery for sample winter case. _Appl._ _Sci._ 2019, _9_, 3941 15 of 18 Figure 15. The decomposition of injected power to the grid with PV and battery for sample summer case. From the economical evaluation perspective, the proposed scheme decides the requirement of 4 kWh battery storage system and 0.81 kW PV unit. After optimal sizing strategy, _Vpresent_ <sup>_income_</sup> <sup>is obtained</sup> as $1338.379 while _Vpresent_ <sup>_outcome_</sup> as $1338.379 while _Vpresent_ <sup>_outcome_</sup> <sup>is</sup> <sup>$1171.741.</sup> <sup>Total</sup> <sup>profit</sup> <sup>of</sup> <sup>the</sup> <sup>system</sup> <sup>is</sup> <sup>$166.6377</sup> <sup>when</sup> <sup>considering</sup> harmonic contents of voltage and current based on real measurements. In order to investigate harmonic impacts on optimal configuration planning, the power curve of the smart home is created without harmonic components. After simulation results, $1320.501, $1155.049, and $165.4518 is achieved for _Vpresent_ <sup>_income_</sup> <sup>,</sup> <sup>_V_</sup> _present_ <sup>_outcome_</sup> <sup>,</sup> <sup>and</sup> <sup>total</sup> <sup>profit</sup> <sup>of</sup> <sup>the</sup> <sup>hybrid</sup> <sup>system,</sup> <sup>respectively.</sup> The relevant results are given in Table 3. On the other hand, 0.79 kW PV and 4 kWh battery storage capacity is obtained after simulation results when harmonics are beyond the scope. As a result, it is not wrong to mark that harmonics do not have great effects on sizing strategies especially for one residential end-user. However, as the number of considered households increase, this impact may be far more obvious. Especially if the developed framework can be applied to industrial and commercial end-users which have densely non-linear loads, the impact of sizing can be significantly obvious. Harmonic loads cause the harmonic currents to be drawn from the grid. For this reason, the actual value of current and voltage are rising which increases injected power from the upstream grid. Increased total load requires increasing the sizing of distributed system components. As a result, PV and battery sizes increase comparing both harmonic-based load case study and non-harmonic-based situation. According to the results, it can be concluded that there is no great impact on cost values for two conditions due to only taking one household into account. _present_ <sup>_income_</sup> <sup>,</sup> <sup>_V_</sup> _present_ <sup>_outcome_</sup> ~~Table 3.~~ ~~Comparison of impacts of harmonic and non-harmonic loads in terms of cost.~~ ~~Situations~~ ~~Income Value~~ ~~Outcome Value~~ ~~Value of Total Prof~~ i ~~t of Hybrid Syst~~ em Without Harmonic $1320.501 $1155.049 $165.4518 Inc ~~luded Harmonic~~ ~~$1338.379~~ ~~$1171.741~~ ~~$166.6377~~ 4. Conclusions and Discussion In this study, a MILP model was proposed for sizing a PV and battery hybrid system for a grid connected smart home. Compared to the other existing studies in the area, the harmonic load situation was taken into account in this study and the optimum size of PV and battery was determined for this situation. It should be underlined once again that the study was realized under real power, current, voltage, and harmonics of smart home appliances in Yildiz Technical University, Istanbul, Turkey. Several case studies based on real measurements for the hybrid system and the loads were conducted to assess the impacts of the proposed methodology. The appliance level harmonic components were _Appl._ _Sci._ 2019, _9_, 3941 16 of 18 considered to have a bottom-up approach for the cumulative impacts of non-linear loads based harmonic components. The impacts of harmonic were found to be at lower levels for an assessment based on just a single household. However, the increase of the number of households and especially consideration of different end-user types such as commercial and industrial with high levels of non-linear loads will show far more clearly the impacts of harmonic components on sizing purposes. Herein, this study can be a starting point for the relevant literature to consider harmonic components within such studies and the smart home-based residential case can here be assumed just as an example for more dominant industrial and commercial load-based sizing studies. Therefore, in addition to the proposed work, the consideration of different end-user types, the consideration of harmonic filtering benefit and cost, and the load shifting possibility via an energy management system can be listed as possible future directions of the study both for the Authors of this work and other researchers in the area. Author Contributions: A.K.E. and A.Ç. mainly contributed by realizing the relevant implementations regarding the formulization and experimental data gathering, and wrote the main parts of the paper. O.A. and O.E. provided the main idea, and coordinated the overall study. J.P.S.C. contributed by overall technical suggestions through the research steps and also contributed to the writing of the final research paper. Funding: J.P.S. Catalão acknowledges the support by FEDER funds through COMPETE 2020 and by Portuguese funds through FCT, under POCI-01-0145-FEDER-029803 (02/SAICT/2017). Conflicts of Interest: The authors declare no conflict of interest. References 1. Alkan, B.; Uzun, B.; Ereno˘glu, A.; Erdinç, O.; Catalão, J.P.S. Scenario based analysis of an ev parking lot equipped with a roof-top pv unit within distribution systems. In Proceedings of the 2018 International Conference on Smart Energy Systems and Technologies (SEST), Sevilla, Spain, 18 October 2018. [[CrossRef]](http://dx.doi.org/10.1109/SEST.2018.8495891) 2. Zheng, G.; Xu, Y. Intelligent harmonic instrument for household appliances based on FFT and newton interpolation algorithm. In Proceedings of the 2009 IEEE International Conference on Intelligent Computing and Intelligent Systems, Shanghai, China, 28 December 2009; pp. 812–815. [[CrossRef]](http://dx.doi.org/10.1109/ICICISYS.2009.5358032) 3. Farrag, M.E.; Haggag, A.; Farooq, H.; Ali, W. Analysis and mitigation of harmonics caused by air conditioners in a distribution system. In Proceedings of the 2017 Nineteenth International Middle East Power Systems Conference (MEPCON), Cairo, Egypt, 19–21 December 2017; pp. 702–707. [[CrossRef]](http://dx.doi.org/10.1109/MEPCON.2017.8301258) 4. Rawa, M.J.; Thomas, D.W.; Sumner, M. Experimental measurements and computer simulations of home appliances loads for harmonic studies. In Proceedings of the 2014 UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, Cambridge, UK, 26–28 March 2014; pp. 340–344. [[CrossRef]](http://dx.doi.org/10.1109/UKSim.2014.12) 5. De Capua, C.; Romeo, E. A smart THD meter performing an original uncertainty evaluation procedure. _IEEE Trans Instrum._ _Meas._ 2007, _56_, 1257–1264. [[CrossRef]](http://dx.doi.org/10.1109/TIM.2007.899895) 6. Farooq, H.; Qian, K.; Farrag, M.E.; Allan, M.; Zhou, C. Power quality analysis of distribution systems incorporating high penetration level of EV battery chargers. In Proceedings of the 2011 21st Int. Conf. Electricity Distribution, Frankfurt, Germany, 6–9 June 2011; pp. 1–4. 7. IEEE 519 Working Group. IEEE Recommended Practices and Requirements for Harmonic Control in Electrical Power Systems. _IEEE Stand._ 2014, 519–2014. [[CrossRef]](http://dx.doi.org/10.1109/IEEESTD.2014.6826459) 8. Hung, D.Q.; Mithulananthan, N. Multiple distributed generator placement in primary Distribution networks for loss reduction. _IEEE Trans._ _Ind._ _Electron._ 2013, _60_, 1700–1708. [[CrossRef]](http://dx.doi.org/10.1109/TIE.2011.2112316) 9. Aman, M.M.; Jasmon, G.B.; Mokhlis, H.; Bakar, A.H.A. Optimal placement and sizing of a DG based on a new power stability index and line losses. _Int._ _J. Elect._ _Power Energy Syst._ 2012, _43_, 1296–1304. [[CrossRef]](http://dx.doi.org/10.1016/j.ijepes.2012.05.053) 10. Naderi, E.; Seifi, H.; Sepasian, M.S. A dynamic approach for distribution system planning considering distributed generation. _IEEE Trans._ _Power Del._ 2012, _27_, 1313–1322. [[CrossRef]](http://dx.doi.org/10.1109/TPWRD.2012.2194744) 11. Ereno˘glu, A.K; ¸Sengör, I.; Erdinç, O.; Ta¸scıkarao˘glu, A.; Catal <sup>˙</sup> ão, J.P.S. Economic Operation of a Micro-Grid Considering Demand Side Flexibility and Common ESS Availability. In Proceedings of the 2018 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe), Sarajevo, Bosnia-Herzegovina, 13 December 2018. _Appl._ _Sci._ 2019, _9_, 3941 17 of 18 12. Rahmani, R.; Niaki, A.A.; Ahmadi, H.; Sadeghi, S.H.H. Optimal Sizing of DGs for Voltage Profile Improvement and Loss Reduction Considering Harmonic Limits and Protection Coordination. In Proceedings of the 26th Iran Conf Electr Eng ICEE 2018, Mashhad, Iran, 8–10 May 2018; pp. 1148–1153. [[CrossRef]](http://dx.doi.org/10.1109/ICEE.2018.8472609) 13. Feroldi, D.; Zumoffen, D. Sizing methodology for hybrid systems based on multiple renewable power sources integrated to the energy management strategy. _Int._ _J. Hydrog._ _Energy_ 2014, _39_, 8609–8620. [[CrossRef]](http://dx.doi.org/10.1016/j.ijhydene.2014.01.003) 14. Zhou, W.; Lou, C.; Li, Z.; Lu, L.; Yang, H. Current status of research on optimum sizing of stand-alone hybrid solar-wind power generation systems. _Appl._ _Energy_ 2010, _87_, 380–389. [[CrossRef]](http://dx.doi.org/10.1016/j.apenergy.2009.08.012) 15. Paliwal, P.; Patidar, N.P.; Nema, R.K. Determination of reliability constrained optimal resource mix for an autonomous hybrid power system using Particle Swarm Optimization. _Renew._ _Energy_ 2014, _63_, 194–204. [[CrossRef]](http://dx.doi.org/10.1016/j.renene.2013.09.003) 16. Askarzadeh, A. A discrete chaotic harmony search-based simulated annealing algorithm for optimum design of PV/wind hybrid system. _Sol._ _Energy_ 2013, _97_, 93–101. [[CrossRef]](http://dx.doi.org/10.1016/j.solener.2013.08.014) 17. Merei, G.; Berger, C.; Sauer, D.U. Optimization of an off-grid hybrid PV-Wind-Diesel system with different battery technologies using genetic algorithm. _Sol._ _Energy_ 2013, _97_, 460–473. [[CrossRef]](http://dx.doi.org/10.1016/j.solener.2013.08.016) 18. Kumar, R.; Gupta, R.A.; Bansal, A.K. Economic analysis and power management of a stand-alone wind/photovoltaic hybrid energy system using biogeography based optimization algorithm. _Swarm Evol. Comput._ 2013, _8_, 33–43. [[CrossRef]](http://dx.doi.org/10.1016/j.swevo.2012.08.002) 19. Arabali, A.; Ghofrani, M.; Etezadi-Amoli, M.; Fadali, M.S.; Baghzouz, Y. GeneticAlgorithm-Based Optimization Approach for Energy Management. _IEEE Trans Power Deliv._ 2013, _28_, 162–170. [[CrossRef]](http://dx.doi.org/10.1109/TPWRD.2012.2219598) 20. Sedighi, M.; Igderi, A.; Parastar, A. Sitting and sizing of distributed generation in distribution network to improve of several parameters by PSO algorithm. In Proceedings of the 2010 9th Int Power Energy Conf IPEC 2010, Singapore, Singapore, 27–29 October 2010; pp. 1083–1087. [[CrossRef]](http://dx.doi.org/10.1109/IPECON.2010.5696977) 21. Amanifar, O.; Golshan, M.E.H. Optimal Profile, generation placement and sizing for loss and THD reduction and voltage and, improvement in distribution systems using particle swarm optimization sensitivity analysis. In Proceedings of the 16th Elactrical Power Distribution Conference, Bandar Abbas, Iran, 16 June 2011; Volume 3, pp. 47–53. 22. Lu, H.; Xu, Y.; Yang, J. Study of distributed generation locating and sizing considering power quality. In Proceedings of the 2015 IEEE 2nd Int Futur Energy Electron Conf IFEEC 2015, Taibei, Taiwan, 1–4 November 2015; pp. 1–6. [[CrossRef]](http://dx.doi.org/10.1109/IFEEC.2015.7361602) 23. Escobar, B.; Hernández, J.; Barbosa, R.; Verde-Gómez, Y. Analytical model as a tool for the sizing of a hydrogen production system based on renewable energy: The Mexican Caribbean as a case of study. _Int._ _J._ _Hydrog._ _Energy_ 2013, _38_, 12562–12569. [[CrossRef]](http://dx.doi.org/10.1016/j.ijhydene.2012.11.018) 24. Mohanty, M.; Kelapure, S. Aggregated rooftop PV sizing in distribution feeder considering harmonic distortion limit. In Proceedings of the 2016 Natl Power Syst Conf NPSC 2016, Bhubaneswar, India, 19–21 December 2016; pp. 1–6. [[CrossRef]](http://dx.doi.org/10.1109/NPSC.2016.7858977) 25. Hosseinalizadeh, R.; Shakouri, G.H.; Amalnick, M.S.; Taghipour, P. Economic sizing of a hybrid (PV-WT-FC) renewable energy system (HRES) for stand-alone usages by an optimization-simulation model: Case study of Iran. _Renew._ _Sustain._ _Energy Rev._ 2016, _54_, 139–150. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2015.09.046) 26. Anoune, K.; Bouya, M.; Astito, A.; Abdellah, A.B. Sizing methods and optimization techniques for PV-wind based hybrid renewable energy system: A review. _Renew._ _Sustain._ _Energy Rev._ 2018, _93_, 652–673. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2018.05.032) 27. Al Busaidi, A.S.; Kazem, H.A.; Al-Badi, A.H.; Farooq Khan, M. A review of optimum sizing of hybrid PV-Wind renewable energy systems in oman. _Renew._ _Sustain._ _Energy Rev._ 2016, _53_, 185–193. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2015.08.039) 28. Fadaee, M.; Radzi, M.A.M. Multi-objective optimization of a stand-alone hybrid renewable energy system by using evolutionary algorithms: A review. _Renew._ _Sustain._ _Energy Rev._ 2012, _16_, 3364–3369. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2012.02.071) 29. Upadhyay, S.; Sharma, M.P. A review on configurations, control and sizing methodologies of hybrid energy systems. _Renew._ _Sustain._ _Energy Rev._ 2014, _38_, 47–63. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2014.05.057) 30. Chauhan, A.; Saini, R.P. A review on Integrated Renewable Energy System based power generation for stand-alone applications: Configurations, storage options, sizing methodologies and control. _Renew._ _Sustain._ _Energy Rev._ 2014, _38_, 99–120. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2014.05.079) 31. Singh, GK. Solar power generation by PV (photovoltaic) technology: A review. _Energy_ 2013, _53_, 1–13. [[CrossRef]](http://dx.doi.org/10.1016/j.energy.2013.02.057) _Appl._ _Sci._ 2019, _9_, 3941 18 of 18 32. Khatib, T.; Mohamed, A.; Sopian, K. A review of photovoltaic systems size optimization techniques. _Renew. Sustain._ _Energy Rev._ 2013, _22_, 454–465. [[CrossRef]](http://dx.doi.org/10.1016/j.rser.2013.02.023) 33. Neha, C.K.; Hegde, M.; Aher, V.; Hegde, V. Effect of home appliances on power quality of conventional grid. In Proceedings of the 2016 Int Conf Circuits, Control Commun Comput I4C 2016, Bangalore, India, 4–6 October 2016; pp. 1–6. [[CrossRef]](http://dx.doi.org/10.1109/CIMCA.2016.8053260) 34. Roy, J.; Mather, B. Study of voltage-dependent harmonic characteristics of residential appliances. In Proceedings of the 2019 IEEE Texas Power Energy Conf TPEC 2019, College Station, TX, USA, 7–8 February 2019; pp. 1–6. [[CrossRef]](http://dx.doi.org/10.1109/TPEC.2019.8662188) 35. Kit, M.Y.; Tse, C.N.; Lau, W.H. A study on the effects of voltage distortion on current harmonics generated by modern smps driven home appliances in smart grid network. In Proceedings of the 9th IET International Conference on Advances in Power System Control, Operation and Management (APSCOM 2012), Hong Kong, China, 30 September 2013; p. 85. [[CrossRef]](http://dx.doi.org/10.1049/cp.2012.2136) 36. Grasselli, U.; Lamedica, R.; Prudenzi, A. Time-varying harmonics of single-phase nonlinear appliances. In Proceedings of the 2002 IEEE Power Eng Soc Winter Meet Conf Proc (Cat No02CH37309), New York, NY, USA, 27–31 January 2002; Volume 2, pp. 1066–1071. [[CrossRef]](http://dx.doi.org/10.1109/pesw.2002.985174) 37. Bonet, A.M.; Ortega, M.A.; Escrivá, G.E.; Bel, C.Á.; Domijan, A. Characterization methodology for in-home loads based on harmonics. In Proceedings of the 1st IEEE-PES/IAS Conf Sustain Altern Energy, SAE 2009—Proc 2009, Valencia, Spain, 28–30 September 2009; pp. 1–6. [[CrossRef]](http://dx.doi.org/10.1109/SAE.2009.5534881) 38. Munir, M.S.; Li, Y.W. Residential Distribution System Harmonic Compensation Using PV Interfacing Inverter. _IEEE Trans._ _Smart Grid_ 2013, _4_, 816–827. [[CrossRef]](http://dx.doi.org/10.1109/TSG.2013.2238262) 39. Egan, J.; Finn, D.; Soares, P.H.D.; Baumann, V.A.R.; Aghamolaei, R.; Beagon, P.; Neu, O.; Pallonetto, F.; O’Donnell, J. Definition of a useful minimal-set of accurately-specified input data for Building Energy Performance Simulation. _Energy Build._ 2018, _165_, 172–183. [[CrossRef]](http://dx.doi.org/10.1016/j.enbuild.2018.01.012) 40. Habib, A.H.; Disfani, V.R.; Kleissl, J.; de Callafon, R.A. Optimal Energy Storage Sizing and Residential Load Scheduling to Improve Reliability in Islanded Operation of Distribution Grids. In Proceedings of the 2017 American Control Conference, Seattle, WA, USA, 24 May 2017. 41. CPLEX 12 Solver Description. Available online: [http://www.gams.com/dd/docs/solvers/cplex.pdfg](http://www.gams.com/dd/docs/solvers/cplex.pdfg) (accessed on 10 June 2019). 42. Tsui, K.M.; Chan, S.C. Demand response optimization for smart home scheduling under real-time pricing. _IEEE Trans._ _Smart Grid_ 2012, _3_, 1812–1821. [[CrossRef]](http://dx.doi.org/10.1109/TSG.2012.2218835) © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution [(CC BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)

섹션 본문 115문단 · 95,627자

(제목 없음)

1Even renewable energy sources provide several advantages, especially from an environmental point of view, where the world has faced great challenges in the last few decades; several negative issues also exist regarding the integration of renewable resources-based power production units in electric power systems. One of the main problems related to pivotal renewable energy resources such as solar, wind, etc., is their stochastic and uncontrollable nature in terms of power production. Therefore, this stochasticity in the supply side of the power system may pose many challenges for system operators. This issue is also problematic for smaller applications where the stochastic production by a main resource, such as a roof-top photovoltaic system, and load demand may not match perfectly at each time instant and therefore should be compensated by additional resources such as battery-based energy storage systems. Herein, the economic considerations to ensure minimum costs for such a hybrid system design are vital so as to increase the penetration of such systems. Therefore, the optimal sizing and planning of hybrid systems have recently gained increasing importance to enhance power system operation in the context of the smart grid paradigm. From a different perspective, harmonics are one of the most important power quality problems in system operations caused by widespread integration of power electronic loads with non-linear characteristics that should be considered. Thus, a new approach for grid-connected hybrid renewable energy system sizing is provided. In order to determine optimal capacities for photovoltaic (PV) and energy storage system (ESS) units for covering residential consumer demand, a mixed integer linear programming (MILP)-based formulation is presented. The main objective is minimizing total costs of the system consisting of investment, capital and maintenance cost functions. A daily power curve is created accurately with real measurements of non-linear loads considering harmonic contents of smart home appliances in Yildiz Technical University, Istanbul, Turkey. In addition, real radiation and temperature values are used in PV production as well as dynamic pricing schemes for realistic evaluations. Moreover, optimal sizing results are compared for both the harmonic-based power curve and rated power curve in terms of satisfying objective function.

Motivation and Background

2In the last few decades, the energy demands of the modern world have extraordinarily increased due to technological innovations, rapid urbanization, and growing population [1]. As a natural consequence, power-electronic-based electrical equipments have started to be utilized more widely on the demand side [2]. The great achievements of semiconductor technology have captured the electronic industry and dominated the market of household appliances. However, all these paved the way for rising concerns about power quality issues in the distribution system due to the non-linear voltage-current characteristics of these appliances [3]. Therefore, it would not be wrong to mark that utility engineers will encounter harmonic problems more than in the past considering this widespread integration. Several domestic loads such as TV, laptop, printer, computer, light-emitting diodes (LEDs), washing machine, dishwasher, etc., have substantial impacts on the harmonic distortion level in the residential scale [4]. In order to quantify the potential effect on power system operation, the index of total harmonic distortion (THD) is defined as "The ratio of the rms of the high order harmonic components to the rms value of the fundamental quantity, represented as a percentage of the fundamental" [5,6]. According to the Institute of Electrical and Electronics Engineers (IEEE) 519-2014 [7], the voltage THD should be less than or equal to a 5% limit in the point of common coupling measurements from 120 V to 69 kV. Therefore, the harmonic contents of residential loads have to be monitored with digital technology thanks to the smart grid paradigm, and power quality requirements should be controlled in terms of satisfying the standards or not.

3From the other perspective, renewable-based energy sources (RESs), such as photovoltaic (PV), have gained increasing interest worldwide and provide great opportunities in terms of covering residential end-users' power consumption. Integrating these units paves the way for reducing grid dependence, gas emissions, and losses, thus improving the voltage profile and decreasing investment/operation costs [8][9][10]. Therefore, massive deployment has been performed for every type of end-user thanks to noteworthy attempts from the government and industrial stakeholders. However, the stochastic nature of RESs can cause significant operational problems [11] in the electrical network that should be dealt with. Energy storage systems play an important role considering this issue in terms of aiding to provide a supply-demand balance and also reduce grid dependence. Load fluctuations as well as power variations have been evaluated comprehensively from the power system planner's perspective and optimal sizing strategies have been proposed in order to provide economical system design. It is important to emphasize that utilizing all the aforementioned benefits strongly depends on how to optimally determine the installation capacities of the system components. Non-optimization based modeling may result in higher investment costs as well as power losses.

Relevant Literature

4A considerable amount of successful studies have been systematically conducted to improve optimal sizing strategies for a hybrid renewable energy system in order to achieve various objectives. The genetic algorithm [12,13], artificial intelligence [14][15][16][17][18][19], particle swarm optimization (PSO) [20][21][22], simulated annealing [16], and analytical modelings [23] are commonly used techniques in the literature to solve complex system planning and operation problems.

5Among them, Sedighi et al. presented a method for optimal sizing and siting of distributed generation units for the purpose of improving voltage profile and reducing losses as well as THD in distribution networks. Load flows as well as harmonic calculations were taken into consideration in this scheme in which the PSO algorithm was used as a solution technique [20]. Similar to this study [12], the heuristic PSO technique was used in a study by Amanifar and Golshan in [21] to solve optimal distributed generation allocation and sizing problems aiming to minimize investment costs and power losses. A multi-objective distributed generation locating and sizing problem was constructed in a study by Lu et al. in [22] considering the active power loss, harmonic distortion, voltage quality, and voltage sags. Monte Carlo simulation was conducted for fault analysis in order to evaluate the economic losses of the distribution system. Mohanty and Kelapure proposed a methodology for allocating the PV sources in a distribution feeder keeping the voltage THD within permissible limits according to the IEEE-519 standard [24]. Apart from addressing power quality issues, the protection coordination scheme was also taken into account by Rahmani et al. in [12] while providing the optimum distributed generation sizing. The performance analysis was carried out on an IEEE radial test system and comprehensive evaluations were presented in terms of voltage profile, THD, and power losses.

6Combining energy management strategy with optimum hybrid system sizing was presented in a study by Feroldi and Zumoffen in [13] for the purpose of providing loss of power supply probability requirements with the lowest cost. Historical long-term climate and demand data were used in a genetic algorithm-based methodology to testify the impacts of different weather conditions on system design. Hosseinalizadeh et al. developed a techno-economically optimized hybrid system modeling consisting of a wind turbine, PV, a fuel cell, and energy storage system. In this scheme, solar radiation and average wind velocity were considered for investigating different combined RES architectures under diverse sizing scenarios [25].

7From the other perspective, an artificial intelligence-based optimization model was presented in a study by Zhou et al. in [14] for both optimum sizing of hybrid PV-wind system and optimum resource allocation based on load demand. It was aimed to decrease high initial and operation costs of the system with proper management strategies and effective modeling techniques. Paliwal et al. presented an approach for an integrated hybrid power system comprising PV-wind-diesel and ESS aimed at determining the optimal mix of mentioned resources by achieving techno-socio-economic criterion.

8The developed planning formulation was tested under different combined configurations in order to evaluate the reliability needs considering RES uncertainties [15]. For more detailed information about artificial intelligence based-approaches, the studies [16][17][18][19] can be also examined.

9Askarzadeh developed a novel discrete chaotic harmony search-based simulated annealing algorithm to design an integrated PV-wind-ESS hybrid system optimally in terms of minimizing total annual cost while satisfying the constraints [16]. Escobar et al. proposed an analytical model-based sizing approach for a hybrid PV-wind-hydrogen energy conversion system based on real weather data in order to analyze its feasibility and efficiency [23].

10For more information about optimal sizing of hybrid systems, significantly detailed literature surveys on different methodologies, solution techniques, modeling schemes, and discussions are given in [26][27][28][29][30][31][32].

11The vast majority of studies have also been carried out to investigate the harmonic contents of household appliances and their impacts on system operation. Among them, Neha et al. carried out an experimental analysis for measuring the parameters of THD, displacement power factor (DPF), and transient current of several pieces of equipment by using a multi-function meter in India [33]. Roy and Mather grouped the domestic appliances as lighting, power electronics, resistive, motor, and aggregated loads for establishing a complete bottom-up model to assess voltage stability, harmonics, voltage sag, swells, and unbalance conditions [34]. Also, the load current characteristics were studied in [34]. Harmonic analysis was conducted by Kit et al. in [35] in which the parameters were measured for a desktop computer, fluorescent luminaries, and compact fluorescent lamps and voltage harmonic distortion impacts on current harmonics were also investigated. Grasselli et al. monitored the time-varying harmonic behavior of non-linear residential loads such as a printer, photocopier, cell phone battery charger, and compact fluorescent lamp [36]. Characterization methodology was proposed in [37] for modeling the loads based on their harmonic series composition. Munir et al. in [38], investigated the potential of using PV interface inverters to reduce the effect of harmonics from households. A model for house load and distributed production was created and the model was confirmed by simulations. Egan et al. proposed a model to determine energy consumption with high accuracy for typical Irish dwellings in [39]. However, the effect of harmonic was not taken into consideration in this study. Habib et al. proposed a model to improve the reliability of the power system during a power failure of a shared PV system in [40]. One-year data for the PV system and 10 home consumers for loads were considered. It has been seen that the common use of the PV system makes more profit than the individual use.

12These aforementioned references with many other studies not referred here have provided valuable contributions to the literature on the optimal sizing strategies of hybrid systems from different points of view. Various methods, solution techniques, and modeling frameworks have been presented for achieving different objectives. Nevertheless, it is important to emphasize that most of the reported techniques for optimal sizing of hybrid systems assume sinusoidal operating conditions which do not take the voltage and current harmonics of the demand side into consideration.

Content, Contributions, and Organization of the Study

13In this paper, a mixed integer linear programming (MILP)-based mathematical modeling concept is proposed to find the optimal size of PV and ESS units for covering grid-connected smart home consumption in an economic fashion. The real measurement is performed for residential appliances considering the harmonic components caused by non-linear loads and afterwards the power consumption curve is obtained accurately. The cost function consisting of capital, investment, and maintenance of PV/ESS, is aimed to be minimized after the optimization procedure, thus satisfying the system's operational constraints. A dynamic pricing scheme is also incorporated into the methodology to determine energy transactions between home and utility grid. To the best knowledge of the Authors, this study attempts to be the first in terms of covering sizing, harmonic impact, dynamic pricing schemes implementation, and real measurements based on gathered data utilization facts in a single study within the existing literature.

14The organization of the paper is prepared as follows: Section 2 gives the mathematical background of the proposed optimization problem which is based on MILP with detailed explanations. Section 3 shows the simulation results and the conclusions with possible future studies discussed in Section 4.

An Overview of the Presented Structure

15The structure of the proposed model is given in Figure 1. In this structure, the smart home has PV and a battery hybrid system. The PV and battery hybrid system both supply energy to the smart home, and even can inject energy to the grid. The smart home can supply energy from the PV system and the battery, and can also buy energy from the grid. The appliances in the smart home consume harmonic loads. In the case of harmonics, more power should be supplied to the load, and this situation changes the system size and operation.

16Appl. Sci. 2019, 9, x FOR PEER REVIEW 4 of 18

Content, Contributions, and Organization of the Study

17In this paper, a mixed integer linear programming (MILP)-based mathematical modeling concept is proposed to find the optimal size of PV and ESS units for covering grid-connected smart home consumption in an economic fashion. The real measurement is performed for residential appliances considering the harmonic components caused by non-linear loads and afterwards the power consumption curve is obtained accurately. The cost function consisting of capital, investment, and maintenance of PV/ESS, is aimed to be minimized after the optimization procedure, thus satisfying the system's operational constraints. A dynamic pricing scheme is also incorporated into the methodology to determine energy transactions between home and utility grid. To the best knowledge of the Authors, this study attempts to be the first in terms of covering sizing, harmonic impact, dynamic pricing schemes implementation, and real measurements based on gathered data utilization facts in a single study within the existing literature.

18The organization of the paper is prepared as follows: Section 3 gives the mathematical background of the proposed optimization problem which is based on MILP with detailed explanations. Section 4 shows the simulation results and the conclusions with possible future studies discussed in Section 5.

An Overview of the Presented Structure

19The structure of the proposed model is given in Figure 1. In this structure, the smart home has PV and a battery hybrid system. The PV and battery hybrid system both supply energy to the smart home, and even can inject energy to the grid. The smart home can supply energy from the PV system and the battery, and can also buy energy from the grid. The appliances in the smart home consume harmonic loads. In the case of harmonics, more power should be supplied to the load, and this situation changes the system size and operation.

Mathematical Formulation

20In this study, MILP model of a smart home containing PV and battery hybrid system is presented. It is aimed to maximize the net present value of the profit obtained by a concept containing a PV-battery hybrid system. In addition, economically optimum PV and battery sizes are calculated in this manner. Herein, the profit is acquired by subtracting the expenses from the income with the objective function given below aiming to maximize the net present value of the profit between incomes and the costs.

Economic-Based Formulation

21The aim of the problem stated in this study is to maximize total profit and is obtained by subtracting expenses from incomes. The objective function is defined in Equation (1). The aim is to maximize total profit and is obtained by subtracting expenses from incomes.

22Equation (2) refers to the balance of power at each time t. Herein, the sum of the power bought from the grid, the power used from the PV, and the power used from the battery is equal to the sum of the power consumed on the loads, the power stored in the battery, and power sold to the grid. P grid,buy t

23In Equation (3), the power produced in the PV system is equal to the sum of the power consumed in the system and sold to the grid. n PV refers to the number of 1 kW PV system.

24In addition, Equation (4) expresses that n PV , which is the number of PVs of 1 kW, is less than the maximum number of PVs that is predetermined.

25The power discharged from the battery is either sold to the grid or consumed on loads. This value must also be multiplied by the discharge efficiency. This is described in Equation (5).

26R disch bat and R ch bat in Equations (6) and (7) indicate the maximum power at which the battery is discharged and charged for a 1 kWh unit, respectively. These expressions are multiplied by n bat to determine the power limits for the battery size.

27As stated in Equation (8), the maximum value is assigned to the number of PV panels with n max bat to determine the solution constraints of the optimization problem.

28Equation (9) calculates the energy level of the battery at each time t. According to this equation, the energy level at time t is obtained by power at the time (t − 1) with collection by the discharge power of the battery or by subtracting the charge power in this interval ((t − 1) to t). Herein, η ch bat is given as the charging efficiency of the battery.

29In Equations (10)- (12), the state of energy (SoE) of battery at the initial time, the maximum energy level of battery, and the minimum energy level of battery are defined respectively.

30Since the battery cannot be charged and discharged at the same time, the u bat t binary decision variable is defined to prevent this situation. This condition is provided by Equations (13) and (14). Herein, N is defined as a sufficiently big positive number.

31The limits of the maximum power that can be withdrawn from the grid and sold to the grid are easily indicated in the Equations (15) and (16), respectively. This is important in terms of grid capacity as the withdrawal of energy from the grid and the sale of energy to the grid cannot be materialized at the same time, therefore u grid t binary decision variable is defined for this situation.

32The total power injected into the grid is equal to the sum of the power supplied by the PV and the battery. This is described in Equation (17).

33In the case of using PV and battery hybrid system, the change in total electricity cost is explained in Equation (18). P grid,buy t shows the power bought from the grid. P grid,sold t represents the power sold to the grid. Furthermore, λ buy t and λ sell t are the unit prices for buying and selling, respectively. The prices vary per hour as

34The calculation of the cost difference between the situations where the PV and battery hybrid system is considered and the neglected is realized in Equation (19).

35The total value of cash incomes and outflows during the project lifetime (generally considered as 20 years) is calculated respectively in Equations (20) and (21). As was mentioned above, the loads in the smart home caused harmonics and the relevant harmonic model is given below. The instantaneous values for voltage and current are given in Equation (22) and (23), respectively. v n and i n are the instantaneous voltage and current of the n. harmonic. Furthermore, w 1 represents the angular frequency for the fundamental component. Lastly, θ n and δ n are phase angles of n voltage and current harmonics.

36The instantaneous active power expression is given in Equation (24). Herein, the active power is obtained by multiplying the current and voltage with the same frequency. Similarly, the reactive power expression is also expressed in Equation (25).

37The effective values of current and voltage are given in Equations (26) and (27), respectively. Herein, the effective value is obtained by taking the square root of the sum of the squares of the fundamental component and other harmonic components.

38Equations (26) and (27) results in calculating the apparent power by indicating Equation (28).

39The apparent power can be obtained from active, reactive, and distortion power types as follows:

40where D distortion power is used to define inactive power for current and voltage at different frequencies.

Test and Results

41The proposed MILP model is tested in the General Algebraic Modeling System (GAMS) v.24.1.3 with the objective of minimizing total cost. The commercial solver CPLEX v.12 by IBM [41] is used as a solution technique to provide optimal sizing of PV and ESS units by taking into consideration the harmonic current and voltage contents of smart home appliances.

Input Data

42Almost every piece of equipment found in a typical Turkish household is available in the smart home laboratory at Yildiz Technical University as indicated in Table 1. The rated powers and normal operating conditions have different characteristics that should be considered. Therefore, the household power consumption curve is provided based on real measurement data including harmonics (up to 50th) as shown in Figure 2. It is assumed that the household consists of a four-person family, where one of the parents working has this daily load profile. The 24 h demand power is extended for obtaining 8760 h for making yearly analysis. During this period, the load varies to include summer, winter, and other seasons. All appliances are monitored with a professional Fluke Analyzer and the harmonic currents, voltages, THD, and active, reactive and apparent powers are obtained accurately to avoid modeling errors. The Fluke Analyzer can measure and record these values at a desired interval which was selected as three seconds. The power quality measurement of the appliances was experimentally conducted, and real power curve of the smart household was obtained based on the measurements. A representative system establishment for only one appliance can be seen in Figure 3. Some representative appliances are demonstrated with graphs for the sake of clarity for the reader. Figure 4 shows the frequency spectrum of an alternative current (AC) of a washing machine in which the fundamental value is accepted as 100%. It is evidently clear that h 3 and h 5 are most profound components in the working conditions that cause extra power losses similar to PC desktop-oriented measurements depicted in Figure 5. However, the laptop has different harmonic contents in which h 3 , h 7 , and h 13 are the dominant values as shown in Figure 6. All appliances are monitored with a professional Fluke Analyzer and the harmonic currents, voltages, THD, and active, reactive and apparent powers are obtained accurately to avoid modeling errors. The Fluke Analyzer can measure and record these values at a desired interval which was selected as three seconds. The power quality measurement of the appliances was experimentally conducted, and real power curve of the smart household was obtained based on the measurements. A representative system establishment for only one appliance can be seen in Figure 3. Some representative appliances are demonstrated with graphs for the sake of clarity for the reader. Figure 4 shows the frequency spectrum of an alternative current (AC) of a washing machine in which the fundamental value is accepted as 100%. It is evidently clear that h 3 In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. The input parameters for PV and ESS, as well as economic rates are indicated in Table 2. The costs of capital, replacement, and maintenance can be changed easily when integrating the system for making sensitivity analysis. The optimal sizing results strongly depend on these values. It should be marked that the sizes of PV and ESS are restricted with upper limits of 5 kW and 4 kWh, respectively. However, the flexible scheme enables these inputs to be changed and applies a bigger system for more comprehensive evaluations. Also, the project lifetime is considered as 20 years in which PV is assumed not to need replacement whilst ESS is changed in every 10 years. This is because it is stated by the manufacturers that the PV system has a lifetime of 20 years. For the battery, this value appears to be 10 years in the technical data generally. Therefore, in this study, it was accepted that the lifetime for PV and battery is 20 and 10 years, respectively. However, it is only an input for the proposed structure. The value can be modified as 3, 5, or 7 years if desired in this flexible architecture. What is important in this study is to explain the mathematical background behind the system and show how the decision-making algorithm is working properly. Normally, the harmonic currents and voltages are measured in 3 s time granularity, which is convenient to the relevant standards. However, these relatively small intervals would cause a high computation burden while making a plan for 20 years (project time). Therefore, time granularity is selected as an hour for the optimal sizing procedure.

Simulation Results

43In order to investigate the effectiveness of the proposed MILP-based algorithm, two representative results are compared from different points of view. For the sake of a clearer representation, sample cases for Summer and Winter (May 16, 2013 and January 1, 2013) are both analyzed to evaluate operational behavior of optimization strategies. The input parameters for PV and ESS, as well as economic rates are indicated in Table 2. The costs of capital, replacement, and maintenance can be changed easily when integrating the system for making sensitivity analysis. The optimal sizing results strongly depend on these values. It should be marked that the sizes of PV and ESS are restricted with upper limits of 5 kW and 4 kWh, respectively. However, the flexible scheme enables these inputs to be changed and applies a bigger system for more comprehensive evaluations. Also, the project lifetime is considered as 20 years in which PV is assumed not to need replacement whilst ESS is changed in every 10 years. This is because it is stated by the manufacturers that the PV system has a lifetime of 20 years. For the battery, this value appears to be 10 years in the technical data generally. Therefore, in this study, it was accepted that the lifetime for PV and battery is 20 and 10 years, respectively. However, it is only an input for the proposed structure. The value can be modified as 3, 5, or 7 years if desired in this flexible architecture. What is important in this study is to explain the mathematical background behind the system and show how the decision-making algorithm is working properly. Normally, the harmonic currents and voltages are measured in 3 s time granularity, which is convenient to the relevant standards. However, these relatively small intervals would cause a high computation burden while making a plan for 20 years (project time). Therefore, time granularity is selected as an hour for the optimal sizing procedure.

44In order to investigate the effectiveness of the proposed MILP-based algorithm, two representative results are compared from different points of view. For the sake of a clearer representation, sample cases for Summer and Winter (May 16, 2013 and January 1, 2013) are both analyzed to evaluate operational behavior of optimization strategies.

45The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10.

46Appl. Sci. 2019, 9, x FOR PEER REVIEW 12 of 18 The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10. At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10. At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11. Battery charging and discharging power along with state of energy variation for sample winter case.

47The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process. The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process.

48Appl. Sci. 2019, 9, x FOR PEER REVIEW 13 of 18 Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11. Battery charging and discharging power along with state of energy variation for sample winter case.

49The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

50The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

51The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

52The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. From the economical evaluation perspective, the proposed scheme decides the requirement of 4 kWh battery storage system and 0.81 kW PV unit. After optimal sizing strategy, is obtained as $1338.379 while is $1171.741. Total profit of the system is $166.6377 when considering harmonic contents of voltage and current based on real measurements.

53In order to investigate harmonic impacts on optimal configuration planning, the power curve of the smart home is created without harmonic components. After simulation results, $1320.501, $1155.049, and $165.4518 is achieved for , , and total profit of the hybrid system, respectively. The relevant results are given in Table 3. On the other hand, 0.79 kW PV and 4 kWh battery storage capacity is obtained after simulation results when harmonics are beyond the scope. As a result, it is not wrong to mark that harmonics do not have great effects on sizing strategies especially for one residential end-user. However, as the number of considered households increase, this impact may be far more obvious. Especially if the developed framework can be applied to industrial and commercial end-users which have densely non-linear loads, the impact of sizing can be significantly obvious. Harmonic loads cause the harmonic currents to be drawn from the grid. For this reason, the actual value of current and voltage are rising which increases injected power from the upstream grid. Increased total load requires increasing the sizing of distributed system components. As a result, PV and battery sizes increase comparing both harmonic-based load case study and non-harmonic-based situation. According to the results, it can be concluded that there is no great impact on cost values for two conditions due to only taking one household into account.

Conclusions and Discussion

54In this study, a MILP model was proposed for sizing a PV and battery hybrid system for a grid connected smart home. Compared to the other existing studies in the area, the harmonic load situation was taken into account in this study and the optimum size of PV and battery was determined for this situation. It should be underlined once again that the study was realized under real power, current, voltage, and harmonics of smart home appliances in Yildiz Technical University, Istanbul, Turkey. Several case studies based on real measurements for the hybrid system and the loads were conducted to assess the impacts of the proposed methodology. The appliance level From the economical evaluation perspective, the proposed scheme decides the requirement of 4 kWh battery storage system and 0.81 kW PV unit. After optimal sizing strategy, V income present is obtained as $1338.379 while V outcome present is $1171.741. Total profit of the system is $166.6377 when considering harmonic contents of voltage and current based on real measurements.

55In order to investigate harmonic impacts on optimal configuration planning, the power curve of the smart home is created without harmonic components. After simulation results, $1320.501, $1155.049, and $165.4518 is achieved for V income present , V outcome present , and total profit of the hybrid system, respectively. The relevant results are given in Table 3. On the other hand, 0.79 kW PV and 4 kWh battery storage capacity is obtained after simulation results when harmonics are beyond the scope. As a result, it is not wrong to mark that harmonics do not have great effects on sizing strategies especially for one residential end-user. However, as the number of considered households increase, this impact may be far more obvious. Especially if the developed framework can be applied to industrial and commercial end-users which have densely non-linear loads, the impact of sizing can be significantly obvious. Harmonic loads cause the harmonic currents to be drawn from the grid. For this reason, the actual value of current and voltage are rising which increases injected power from the upstream grid. Increased total load requires increasing the sizing of distributed system components. As a result, PV and battery sizes increase comparing both harmonic-based load case study and non-harmonic-based situation. According to the results, it can be concluded that there is no great impact on cost values for two conditions due to only taking one household into account.

56In this study, a MILP model was proposed for sizing a PV and battery hybrid system for a grid connected smart home. Compared to the other existing studies in the area, the harmonic load situation was taken into account in this study and the optimum size of PV and battery was determined for this situation. It should be underlined once again that the study was realized under real power, current, voltage, and harmonics of smart home appliances in Yildiz Technical University, Istanbul, Turkey. Several case studies based on real measurements for the hybrid system and the loads were conducted to assess the impacts of the proposed methodology. The appliance level harmonic components were considered to have a bottom-up approach for the cumulative impacts of non-linear loads based harmonic components.

57The impacts of harmonic were found to be at lower levels for an assessment based on just a single household. However, the increase of the number of households and especially consideration of different end-user types such as commercial and industrial with high levels of non-linear loads will show far more clearly the impacts of harmonic components on sizing purposes. Herein, this study can be a starting point for the relevant literature to consider harmonic components within such studies and the smart home-based residential case can here be assumed just as an example for more dominant industrial and commercial load-based sizing studies.

58Therefore, in addition to the proposed work, the consideration of different end-user types, the consideration of harmonic filtering benefit and cost, and the load shifting possibility via an energy management system can be listed as possible future directions of the study both for the Authors of this work and other researchers in the area.

Motivation and Background

59In the last few decades, the energy demands of the modern world have extraordinarily increased due to technological innovations, rapid urbanization, and growing population [1]. As a natural consequence, power-electronic-based electrical equipments have started to be utilized more widely on the demand side [2]. The great achievements of semiconductor technology have captured the electronic industry and dominated the market of household appliances. However, all these paved the way for rising concerns about power quality issues in the distribution system due to the non-linear voltage-current characteristics of these appliances [3]. Therefore, it would not be wrong to mark that utility engineers will encounter harmonic problems more than in the past considering this widespread integration. Several domestic loads such as TV, laptop, printer, computer, light-emitting diodes (LEDs), washing machine, dishwasher, etc., have substantial impacts on the harmonic distortion level in the residential scale [4]. In order to quantify the potential effect on power system operation, the index of total harmonic distortion (THD) is defined as "The ratio of the rms of the high order harmonic components to the rms value of the fundamental quantity, represented as a percentage of the fundamental" [5,6]. According to the Institute of Electrical and Electronics Engineers (IEEE) 519-2014 [7], the voltage THD should be less than or equal to a 5% limit in the point of common coupling measurements from 120 V to 69 kV. Therefore, the harmonic contents of residential loads have to be monitored with digital technology thanks to the smart grid paradigm, and power quality requirements should be controlled in terms of satisfying the standards or not.

60From the other perspective, renewable-based energy sources (RESs), such as photovoltaic (PV), have gained increasing interest worldwide and provide great opportunities in terms of covering residential end-users' power consumption. Integrating these units paves the way for reducing grid dependence, gas emissions, and losses, thus improving the voltage profile and decreasing investment/operation costs [8][9][10]. Therefore, massive deployment has been performed for every type of end-user thanks to noteworthy attempts from the government and industrial stakeholders. However, the stochastic nature of RESs can cause significant operational problems [11] in the electrical network that should be dealt with. Energy storage systems play an important role considering this issue in terms of aiding to provide a supply-demand balance and also reduce grid dependence. Load fluctuations as well as power variations have been evaluated comprehensively from the power system planner's perspective and optimal sizing strategies have been proposed in order to provide economical system design. It is important to emphasize that utilizing all the aforementioned benefits strongly depends on how to optimally determine the installation capacities of the system components. Non-optimization based modeling may result in higher investment costs as well as power losses.

Relevant Literature

61A considerable amount of successful studies have been systematically conducted to improve optimal sizing strategies for a hybrid renewable energy system in order to achieve various objectives. The genetic algorithm [12,13], artificial intelligence [14][15][16][17][18][19], particle swarm optimization (PSO) [20][21][22], simulated annealing [16], and analytical modelings [23] are commonly used techniques in the literature to solve complex system planning and operation problems.

62Among them, Sedighi et al. presented a method for optimal sizing and siting of distributed generation units for the purpose of improving voltage profile and reducing losses as well as THD in distribution networks. Load flows as well as harmonic calculations were taken into consideration in this scheme in which the PSO algorithm was used as a solution technique [20]. Similar to this study [12], the heuristic PSO technique was used in a study by Amanifar and Golshan in [21] to solve optimal distributed generation allocation and sizing problems aiming to minimize investment costs and power losses. A multi-objective distributed generation locating and sizing problem was constructed in a study by Lu et al. in [22] considering the active power loss, harmonic distortion, voltage quality, and voltage sags. Monte Carlo simulation was conducted for fault analysis in order to evaluate the economic losses of the distribution system. Mohanty and Kelapure proposed a methodology for allocating the PV sources in a distribution feeder keeping the voltage THD within permissible limits according to the IEEE-519 standard [24]. Apart from addressing power quality issues, the protection coordination scheme was also taken into account by Rahmani et al. in [12] while providing the optimum distributed generation sizing. The performance analysis was carried out on an IEEE radial test system and comprehensive evaluations were presented in terms of voltage profile, THD, and power losses.

63Combining energy management strategy with optimum hybrid system sizing was presented in a study by Feroldi and Zumoffen in [13] for the purpose of providing loss of power supply probability requirements with the lowest cost. Historical long-term climate and demand data were used in a genetic algorithm-based methodology to testify the impacts of different weather conditions on system design. Hosseinalizadeh et al. developed a techno-economically optimized hybrid system modeling consisting of a wind turbine, PV, a fuel cell, and energy storage system. In this scheme, solar radiation and average wind velocity were considered for investigating different combined RES architectures under diverse sizing scenarios [25].

64From the other perspective, an artificial intelligence-based optimization model was presented in a study by Zhou et al. in [14] for both optimum sizing of hybrid PV-wind system and optimum resource allocation based on load demand. It was aimed to decrease high initial and operation costs of the system with proper management strategies and effective modeling techniques. Paliwal et al. presented an approach for an integrated hybrid power system comprising PV-wind-diesel and ESS aimed at determining the optimal mix of mentioned resources by achieving techno-socio-economic criterion.

65The developed planning formulation was tested under different combined configurations in order to evaluate the reliability needs considering RES uncertainties [15]. For more detailed information about artificial intelligence based-approaches, the studies [16][17][18][19] can be also examined.

66Askarzadeh developed a novel discrete chaotic harmony search-based simulated annealing algorithm to design an integrated PV-wind-ESS hybrid system optimally in terms of minimizing total annual cost while satisfying the constraints [16]. Escobar et al. proposed an analytical model-based sizing approach for a hybrid PV-wind-hydrogen energy conversion system based on real weather data in order to analyze its feasibility and efficiency [23].

67For more information about optimal sizing of hybrid systems, significantly detailed literature surveys on different methodologies, solution techniques, modeling schemes, and discussions are given in [26][27][28][29][30][31][32].

68The vast majority of studies have also been carried out to investigate the harmonic contents of household appliances and their impacts on system operation. Among them, Neha et al. carried out an experimental analysis for measuring the parameters of THD, displacement power factor (DPF), and transient current of several pieces of equipment by using a multi-function meter in India [33]. Roy and Mather grouped the domestic appliances as lighting, power electronics, resistive, motor, and aggregated loads for establishing a complete bottom-up model to assess voltage stability, harmonics, voltage sag, swells, and unbalance conditions [34]. Also, the load current characteristics were studied in [34]. Harmonic analysis was conducted by Kit et al. in [35] in which the parameters were measured for a desktop computer, fluorescent luminaries, and compact fluorescent lamps and voltage harmonic distortion impacts on current harmonics were also investigated. Grasselli et al. monitored the time-varying harmonic behavior of non-linear residential loads such as a printer, photocopier, cell phone battery charger, and compact fluorescent lamp [36]. Characterization methodology was proposed in [37] for modeling the loads based on their harmonic series composition. Munir et al. in [38], investigated the potential of using PV interface inverters to reduce the effect of harmonics from households. A model for house load and distributed production was created and the model was confirmed by simulations. Egan et al. proposed a model to determine energy consumption with high accuracy for typical Irish dwellings in [39]. However, the effect of harmonic was not taken into consideration in this study. Habib et al. proposed a model to improve the reliability of the power system during a power failure of a shared PV system in [40]. One-year data for the PV system and 10 home consumers for loads were considered. It has been seen that the common use of the PV system makes more profit than the individual use.

69These aforementioned references with many other studies not referred here have provided valuable contributions to the literature on the optimal sizing strategies of hybrid systems from different points of view. Various methods, solution techniques, and modeling frameworks have been presented for achieving different objectives. Nevertheless, it is important to emphasize that most of the reported techniques for optimal sizing of hybrid systems assume sinusoidal operating conditions which do not take the voltage and current harmonics of the demand side into consideration.

Content, Contributions, and Organization of the Study

70In this paper, a mixed integer linear programming (MILP)-based mathematical modeling concept is proposed to find the optimal size of PV and ESS units for covering grid-connected smart home consumption in an economic fashion. The real measurement is performed for residential appliances considering the harmonic components caused by non-linear loads and afterwards the power consumption curve is obtained accurately. The cost function consisting of capital, investment, and maintenance of PV/ESS, is aimed to be minimized after the optimization procedure, thus satisfying the system's operational constraints. A dynamic pricing scheme is also incorporated into the methodology to determine energy transactions between home and utility grid. To the best knowledge of the Authors, this study attempts to be the first in terms of covering sizing, harmonic impact, dynamic pricing schemes implementation, and real measurements based on gathered data utilization facts in a single study within the existing literature.

71The organization of the paper is prepared as follows: Section 2 gives the mathematical background of the proposed optimization problem which is based on MILP with detailed explanations. Section 3 shows the simulation results and the conclusions with possible future studies discussed in Section 4.

An Overview of the Presented Structure

72The structure of the proposed model is given in Figure 1. In this structure, the smart home has PV and a battery hybrid system. The PV and battery hybrid system both supply energy to the smart home, and even can inject energy to the grid. The smart home can supply energy from the PV system and the battery, and can also buy energy from the grid. The appliances in the smart home consume harmonic loads. In the case of harmonics, more power should be supplied to the load, and this situation changes the system size and operation.

73Appl. Sci. 2019, 9, x FOR PEER REVIEW 4 of 18

Content, Contributions, and Organization of the Study

74In this paper, a mixed integer linear programming (MILP)-based mathematical modeling concept is proposed to find the optimal size of PV and ESS units for covering grid-connected smart home consumption in an economic fashion. The real measurement is performed for residential appliances considering the harmonic components caused by non-linear loads and afterwards the power consumption curve is obtained accurately. The cost function consisting of capital, investment, and maintenance of PV/ESS, is aimed to be minimized after the optimization procedure, thus satisfying the system's operational constraints. A dynamic pricing scheme is also incorporated into the methodology to determine energy transactions between home and utility grid. To the best knowledge of the Authors, this study attempts to be the first in terms of covering sizing, harmonic impact, dynamic pricing schemes implementation, and real measurements based on gathered data utilization facts in a single study within the existing literature.

75The organization of the paper is prepared as follows: Section 3 gives the mathematical background of the proposed optimization problem which is based on MILP with detailed explanations. Section 4 shows the simulation results and the conclusions with possible future studies discussed in Section 5.

An Overview of the Presented Structure

76The structure of the proposed model is given in Figure 1. In this structure, the smart home has PV and a battery hybrid system. The PV and battery hybrid system both supply energy to the smart home, and even can inject energy to the grid. The smart home can supply energy from the PV system and the battery, and can also buy energy from the grid. The appliances in the smart home consume harmonic loads. In the case of harmonics, more power should be supplied to the load, and this situation changes the system size and operation.

Mathematical Formulation

77In this study, MILP model of a smart home containing PV and battery hybrid system is presented. It is aimed to maximize the net present value of the profit obtained by a concept containing a PV-battery hybrid system. In addition, economically optimum PV and battery sizes are calculated in this manner. Herein, the profit is acquired by subtracting the expenses from the income with the objective function given below aiming to maximize the net present value of the profit between incomes and the costs.

Economic-Based Formulation

78The aim of the problem stated in this study is to maximize total profit and is obtained by subtracting expenses from incomes. The objective function is defined in Equation (1). The aim is to maximize total profit and is obtained by subtracting expenses from incomes.

79Equation (2) refers to the balance of power at each time t. Herein, the sum of the power bought from the grid, the power used from the PV, and the power used from the battery is equal to the sum of the power consumed on the loads, the power stored in the battery, and power sold to the grid. P grid,buy t

80In Equation (3), the power produced in the PV system is equal to the sum of the power consumed in the system and sold to the grid. n PV refers to the number of 1 kW PV system.

81In addition, Equation (4) expresses that n PV , which is the number of PVs of 1 kW, is less than the maximum number of PVs that is predetermined.

82The power discharged from the battery is either sold to the grid or consumed on loads. This value must also be multiplied by the discharge efficiency. This is described in Equation (5).

83R disch bat and R ch bat in Equations (6) and (7) indicate the maximum power at which the battery is discharged and charged for a 1 kWh unit, respectively. These expressions are multiplied by n bat to determine the power limits for the battery size.

84As stated in Equation (8), the maximum value is assigned to the number of PV panels with n max bat to determine the solution constraints of the optimization problem.

85Equation (9) calculates the energy level of the battery at each time t. According to this equation, the energy level at time t is obtained by power at the time (t − 1) with collection by the discharge power of the battery or by subtracting the charge power in this interval ((t − 1) to t). Herein, η ch bat is given as the charging efficiency of the battery.

86In Equations (10)- (12), the state of energy (SoE) of battery at the initial time, the maximum energy level of battery, and the minimum energy level of battery are defined respectively.

87Since the battery cannot be charged and discharged at the same time, the u bat t binary decision variable is defined to prevent this situation. This condition is provided by Equations (13) and (14). Herein, N is defined as a sufficiently big positive number.

88The limits of the maximum power that can be withdrawn from the grid and sold to the grid are easily indicated in the Equations (15) and (16), respectively. This is important in terms of grid capacity as the withdrawal of energy from the grid and the sale of energy to the grid cannot be materialized at the same time, therefore u grid t binary decision variable is defined for this situation.

89The total power injected into the grid is equal to the sum of the power supplied by the PV and the battery. This is described in Equation (17).

90In the case of using PV and battery hybrid system, the change in total electricity cost is explained in Equation (18). P grid,buy t shows the power bought from the grid. P grid,sold t represents the power sold to the grid. Furthermore, λ buy t and λ sell t are the unit prices for buying and selling, respectively. The prices vary per hour as

91The calculation of the cost difference between the situations where the PV and battery hybrid system is considered and the neglected is realized in Equation (19).

92The total value of cash incomes and outflows during the project lifetime (generally considered as 20 years) is calculated respectively in Equations (20) and (21). As was mentioned above, the loads in the smart home caused harmonics and the relevant harmonic model is given below. The instantaneous values for voltage and current are given in Equation (22) and (23), respectively. v n and i n are the instantaneous voltage and current of the n. harmonic. Furthermore, w 1 represents the angular frequency for the fundamental component. Lastly, θ n and δ n are phase angles of n voltage and current harmonics.

93The instantaneous active power expression is given in Equation (24). Herein, the active power is obtained by multiplying the current and voltage with the same frequency. Similarly, the reactive power expression is also expressed in Equation (25).

94The effective values of current and voltage are given in Equations (26) and (27), respectively. Herein, the effective value is obtained by taking the square root of the sum of the squares of the fundamental component and other harmonic components.

95Equations (26) and (27) results in calculating the apparent power by indicating Equation (28).

96The apparent power can be obtained from active, reactive, and distortion power types as follows:

97where D distortion power is used to define inactive power for current and voltage at different frequencies.

Test and Results

98The proposed MILP model is tested in the General Algebraic Modeling System (GAMS) v.24.1.3 with the objective of minimizing total cost. The commercial solver CPLEX v.12 by IBM [41] is used as a solution technique to provide optimal sizing of PV and ESS units by taking into consideration the harmonic current and voltage contents of smart home appliances.

Input Data

99Almost every piece of equipment found in a typical Turkish household is available in the smart home laboratory at Yildiz Technical University as indicated in Table 1. The rated powers and normal operating conditions have different characteristics that should be considered. Therefore, the household power consumption curve is provided based on real measurement data including harmonics (up to 50th) as shown in Figure 2. It is assumed that the household consists of a four-person family, where one of the parents working has this daily load profile. The 24 h demand power is extended for obtaining 8760 h for making yearly analysis. During this period, the load varies to include summer, winter, and other seasons. All appliances are monitored with a professional Fluke Analyzer and the harmonic currents, voltages, THD, and active, reactive and apparent powers are obtained accurately to avoid modeling errors. The Fluke Analyzer can measure and record these values at a desired interval which was selected as three seconds. The power quality measurement of the appliances was experimentally conducted, and real power curve of the smart household was obtained based on the measurements. A representative system establishment for only one appliance can be seen in Figure 3. Some representative appliances are demonstrated with graphs for the sake of clarity for the reader. Figure 4 shows the frequency spectrum of an alternative current (AC) of a washing machine in which the fundamental value is accepted as 100%. It is evidently clear that h 3 and h 5 are most profound components in the working conditions that cause extra power losses similar to PC desktop-oriented measurements depicted in Figure 5. However, the laptop has different harmonic contents in which h 3 , h 7 , and h 13 are the dominant values as shown in Figure 6. All appliances are monitored with a professional Fluke Analyzer and the harmonic currents, voltages, THD, and active, reactive and apparent powers are obtained accurately to avoid modeling errors. The Fluke Analyzer can measure and record these values at a desired interval which was selected as three seconds. The power quality measurement of the appliances was experimentally conducted, and real power curve of the smart household was obtained based on the measurements. A representative system establishment for only one appliance can be seen in Figure 3. Some representative appliances are demonstrated with graphs for the sake of clarity for the reader. Figure 4 shows the frequency spectrum of an alternative current (AC) of a washing machine in which the fundamental value is accepted as 100%. It is evidently clear that h 3 In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. In order to obtain optimal PV sizing for covering the mentioned demand, real-time measured hourly average power generation data are utilized in the system which was normalized to 1 kW base value in 2013 as shown in Figure 7. Further, 1 kW was accepted as the base power production for PV unit and was multiplied with n PV to find optimal sizing capacity of the system design considering harmonic load, ESS capacity, and grid power transaction under dynamic pricing. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. On the other hand, it is assumed that the initial SoE of ESS and deep-discharging limit are 0.5 and 0.25 of the relevant maximum battery energy storage capacity, respectively. The charging and discharging efficiencies are also considered as 0.95. When on-site generation is capable of meeting the household demand, the available energy can also be sold to the grid or charge the ESS according to the objective function. A dynamic pricing scheme has an important impact on these axioms due to profit maximization-based optimization model. The buying prices and variation can be seen in Figure 8 based on real-time measurements from the smart meter of a residential end-user [42]. Since the sizing values are determined for a 20-year period, the pricing data is repeated to obtain 8760 h yearly data as similar to the demand curve. The input parameters for PV and ESS, as well as economic rates are indicated in Table 2. The costs of capital, replacement, and maintenance can be changed easily when integrating the system for making sensitivity analysis. The optimal sizing results strongly depend on these values. It should be marked that the sizes of PV and ESS are restricted with upper limits of 5 kW and 4 kWh, respectively. However, the flexible scheme enables these inputs to be changed and applies a bigger system for more comprehensive evaluations. Also, the project lifetime is considered as 20 years in which PV is assumed not to need replacement whilst ESS is changed in every 10 years. This is because it is stated by the manufacturers that the PV system has a lifetime of 20 years. For the battery, this value appears to be 10 years in the technical data generally. Therefore, in this study, it was accepted that the lifetime for PV and battery is 20 and 10 years, respectively. However, it is only an input for the proposed structure. The value can be modified as 3, 5, or 7 years if desired in this flexible architecture. What is important in this study is to explain the mathematical background behind the system and show how the decision-making algorithm is working properly. Normally, the harmonic currents and voltages are measured in 3 s time granularity, which is convenient to the relevant standards. However, these relatively small intervals would cause a high computation burden while making a plan for 20 years (project time). Therefore, time granularity is selected as an hour for the optimal sizing procedure.

Simulation Results

100In order to investigate the effectiveness of the proposed MILP-based algorithm, two representative results are compared from different points of view. For the sake of a clearer representation, sample cases for Summer and Winter (May 16, 2013 and January 1, 2013) are both analyzed to evaluate operational behavior of optimization strategies. The input parameters for PV and ESS, as well as economic rates are indicated in Table 2. The costs of capital, replacement, and maintenance can be changed easily when integrating the system for making sensitivity analysis. The optimal sizing results strongly depend on these values. It should be marked that the sizes of PV and ESS are restricted with upper limits of 5 kW and 4 kWh, respectively. However, the flexible scheme enables these inputs to be changed and applies a bigger system for more comprehensive evaluations. Also, the project lifetime is considered as 20 years in which PV is assumed not to need replacement whilst ESS is changed in every 10 years. This is because it is stated by the manufacturers that the PV system has a lifetime of 20 years. For the battery, this value appears to be 10 years in the technical data generally. Therefore, in this study, it was accepted that the lifetime for PV and battery is 20 and 10 years, respectively. However, it is only an input for the proposed structure. The value can be modified as 3, 5, or 7 years if desired in this flexible architecture. What is important in this study is to explain the mathematical background behind the system and show how the decision-making algorithm is working properly. Normally, the harmonic currents and voltages are measured in 3 s time granularity, which is convenient to the relevant standards. However, these relatively small intervals would cause a high computation burden while making a plan for 20 years (project time). Therefore, time granularity is selected as an hour for the optimal sizing procedure.

101In order to investigate the effectiveness of the proposed MILP-based algorithm, two representative results are compared from different points of view. For the sake of a clearer representation, sample cases for Summer and Winter (May 16, 2013 and January 1, 2013) are both analyzed to evaluate operational behavior of optimization strategies.

102The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10.

103Appl. Sci. 2019, 9, x FOR PEER REVIEW 12 of 18 The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10. At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in The power balance of the hybrid system comprising of the power drawn from the grid (buy), the power injected to the grid (sell), battery charging and using values, PV-used power, and electricity demand of end-user are depicted in Figures 9 and 10 for winter and summer days, respectively. At the beginning of the evaluated period, it is seen that the injected power to the grid has increased and reached the maximum value during 01:00 and 02:00 for the winter case. The SoE of the battery is 4 kWh (initial SOE) and it is utilized in selling power as well as covering demand. However, the demand should be provided by only a grid due to low SOE and low buying electricity prices in summer cases as shown in Figure 10. At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in At 03:00 and 05:00, the charging power of the battery increases for both case studies due to lower demand and relatively low electricity prices. The power consumption rises at 17:00-20:00, which is to be covered by one of the optimally sized sources for decreasing the total costs. As also seen in Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11. Battery charging and discharging power along with state of energy variation for sample winter case.

104The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process. The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process.

105Appl. Sci. 2019, 9, x FOR PEER REVIEW 13 of 18 Figure 11, the battery presents a good opportunity leading to the possibility of charging at low-priced periods and discharging at peak-demand periods. Therefore, it can be indicated that the existence of a battery in the hybrid system provides operational flexibility and the charging/discharging periods of this dynamic component are determined by the developed algorithm considering objective function maximization. Figure 11. Battery charging and discharging power along with state of energy variation for sample winter case.

106The PV power production begins at nearly 08:00, reaches its maximum value (0.16 kW) at 12:00 and finishes at 18:00 for the winter case as illustrated in Figure 12. It is evidently clear that the amount of PV production is not enough for even supplying of the load consumption and as a result injecting power to the grid is zero. On the other hand, the summer case starts earlier than the winter case at 07:00, reaches nearly 0.8 kW value at 14:00 and ends at 21:00 as shown in Figure 13. The battery discharging is utilized to meet the high power consumption at 11:00 without transferring power from the grid due to relatively higher prices. Therefore, the algorithm gives a signal to utilize distributed generation instead of the grid after an economical decision-making process. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

107The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

108The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. During the period from 12:00 to 16:00, even though a certain part of the demanded power can be matched with battery apart from PV, the system decides to use the energy of battery even after 17:00 as the buying prices are becoming higher in peak a period that makes sense to explain this condition. However, it is not right to say the same things for the summer case. Within these periods, high power generation supplies the demand and charges the battery as well as injects available power to the grid.

109The ever-increasing power consumption of a smart home especially for 17:00, 19:00, and 20:00 causes discharging power to increase for the purpose of decreasing transferred power from the grid due to high electricity prices. It is strongly encouraged to utilize distributed generation as much as possible instead of utility grid. In the winter case, the charged battery (at 03:00 and 05:00) is discharged and SOE decreases at the depth-of discharge level (1kWh). After 21:00, PV output power becomes zero and battery does not have enough energy to be discharged. Therefore, the demand is covered only by the grid. In order to simplify interpretation of the results for the considered winter and summer, Figures 14 and 15 are depicted to clearly show the decomposition of the injected power. From the economical evaluation perspective, the proposed scheme decides the requirement of 4 kWh battery storage system and 0.81 kW PV unit. After optimal sizing strategy, is obtained as $1338.379 while is $1171.741. Total profit of the system is $166.6377 when considering harmonic contents of voltage and current based on real measurements.

110In order to investigate harmonic impacts on optimal configuration planning, the power curve of the smart home is created without harmonic components. After simulation results, $1320.501, $1155.049, and $165.4518 is achieved for , , and total profit of the hybrid system, respectively. The relevant results are given in Table 3. On the other hand, 0.79 kW PV and 4 kWh battery storage capacity is obtained after simulation results when harmonics are beyond the scope. As a result, it is not wrong to mark that harmonics do not have great effects on sizing strategies especially for one residential end-user. However, as the number of considered households increase, this impact may be far more obvious. Especially if the developed framework can be applied to industrial and commercial end-users which have densely non-linear loads, the impact of sizing can be significantly obvious. Harmonic loads cause the harmonic currents to be drawn from the grid. For this reason, the actual value of current and voltage are rising which increases injected power from the upstream grid. Increased total load requires increasing the sizing of distributed system components. As a result, PV and battery sizes increase comparing both harmonic-based load case study and non-harmonic-based situation. According to the results, it can be concluded that there is no great impact on cost values for two conditions due to only taking one household into account.

Conclusions and Discussion

111In this study, a MILP model was proposed for sizing a PV and battery hybrid system for a grid connected smart home. Compared to the other existing studies in the area, the harmonic load situation was taken into account in this study and the optimum size of PV and battery was determined for this situation. It should be underlined once again that the study was realized under real power, current, voltage, and harmonics of smart home appliances in Yildiz Technical University, Istanbul, Turkey. Several case studies based on real measurements for the hybrid system and the loads were conducted to assess the impacts of the proposed methodology. The appliance level From the economical evaluation perspective, the proposed scheme decides the requirement of 4 kWh battery storage system and 0.81 kW PV unit. After optimal sizing strategy, V income present is obtained as $1338.379 while V outcome present is $1171.741. Total profit of the system is $166.6377 when considering harmonic contents of voltage and current based on real measurements.

112In order to investigate harmonic impacts on optimal configuration planning, the power curve of the smart home is created without harmonic components. After simulation results, $1320.501, $1155.049, and $165.4518 is achieved for V income present , V outcome present , and total profit of the hybrid system, respectively. The relevant results are given in Table 3. On the other hand, 0.79 kW PV and 4 kWh battery storage capacity is obtained after simulation results when harmonics are beyond the scope. As a result, it is not wrong to mark that harmonics do not have great effects on sizing strategies especially for one residential end-user. However, as the number of considered households increase, this impact may be far more obvious. Especially if the developed framework can be applied to industrial and commercial end-users which have densely non-linear loads, the impact of sizing can be significantly obvious. Harmonic loads cause the harmonic currents to be drawn from the grid. For this reason, the actual value of current and voltage are rising which increases injected power from the upstream grid. Increased total load requires increasing the sizing of distributed system components. As a result, PV and battery sizes increase comparing both harmonic-based load case study and non-harmonic-based situation. According to the results, it can be concluded that there is no great impact on cost values for two conditions due to only taking one household into account.

113In this study, a MILP model was proposed for sizing a PV and battery hybrid system for a grid connected smart home. Compared to the other existing studies in the area, the harmonic load situation was taken into account in this study and the optimum size of PV and battery was determined for this situation. It should be underlined once again that the study was realized under real power, current, voltage, and harmonics of smart home appliances in Yildiz Technical University, Istanbul, Turkey. Several case studies based on real measurements for the hybrid system and the loads were conducted to assess the impacts of the proposed methodology. The appliance level harmonic components were considered to have a bottom-up approach for the cumulative impacts of non-linear loads based harmonic components.

114The impacts of harmonic were found to be at lower levels for an assessment based on just a single household. However, the increase of the number of households and especially consideration of different end-user types such as commercial and industrial with high levels of non-linear loads will show far more clearly the impacts of harmonic components on sizing purposes. Herein, this study can be a starting point for the relevant literature to consider harmonic components within such studies and the smart home-based residential case can here be assumed just as an example for more dominant industrial and commercial load-based sizing studies.

115Therefore, in addition to the proposed work, the consideration of different end-user types, the consideration of harmonic filtering benefit and cost, and the load shifting possibility via an energy management system can be listed as possible future directions of the study both for the Authors of this work and other researchers in the area.

참고문헌 38건

  1. A review of optimum sizing of hybrid PV–Wind renewable energy systems in oman Renewable and Sustainable Energy Reviews · Elsevier BV · 2015 10.1016/j.rser.2015.08.039
  2. Demand Response Optimization for Smart Home Scheduling Under Real-Time Pricing IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2012 10.1109/tsg.2012.2218835
  3. Genetic-Algorithm-Based Optimization Approach for Energy Management IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2012 10.1109/tpwrd.2012.2219598
  4. Experimental Measurements and Computer Simulations of Home Appliances Loads for Harmonic Studies 2014 10.1109/uksim.2014.12
  5. Current status of research on optimum sizing of stand-alone hybrid solar–wind power generation systems Applied Energy · Elsevier BV · 2009 10.1016/j.apenergy.2009.08.012
  6. Economic analysis and power management of a stand-alone wind/photovoltaic hybrid energy system using biogeography based optimization algorithm Swarm and Evolutionary Computation · Elsevier BV · 2012 10.1016/j.swevo.2012.08.002
  7. Multi-objective optimization of a stand-alone hybrid renewable energy system by using evolutionary algorithms: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2012 10.1016/j.rser.2012.02.071
  8. Residential Distribution System Harmonic Compensation Using PV Interfacing Inverter IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2013 10.1109/tsg.2013.2238262
  9. A review on configurations, control and sizing methodologies of hybrid energy systems Renewable and Sustainable Energy Reviews · Elsevier BV · 2014 10.1016/j.rser.2014.05.057
  10. Intelligent harmonic instrument for household appliances based on FFT and newton interpolation algorithm 2009 10.1109/icicisys.2009.5358032
  11. Optimization of an off-grid hybrid PV–Wind–Diesel system with different battery technologies using genetic algorithm Solar Energy · Elsevier BV · 2013 10.1016/j.solener.2013.08.016
  12. Multiple Distributed Generator Placement in Primary Distribution Networks for Loss Reduction IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2011 10.1109/tie.2011.2112316
  13. Solar power generation by PV (photovoltaic) technology: A review Energy · Elsevier BV · 2013 10.1016/j.energy.2013.02.057
  14. A review on Integrated Renewable Energy System based power generation for stand-alone applications: Configurations, storage options, sizing methodologies and control Renewable and Sustainable Energy Reviews · Elsevier BV · 2014 10.1016/j.rser.2014.05.079
  15. Analytical model as a tool for the sizing of a hydrogen production system based on renewable energy: The Mexican Caribbean as a case of study International Journal of Hydrogen Energy · Elsevier BV · 2012 10.1016/j.ijhydene.2012.11.018
  16. A discrete chaotic harmony search-based simulated annealing algorithm for optimum design of PV/wind hybrid system Solar Energy · Elsevier BV · 2013 10.1016/j.solener.2013.08.014
  17. Determination of reliability constrained optimal resource mix for an autonomous hybrid power system using Particle Swarm Optimization Renewable Energy · Elsevier BV · 2013 10.1016/j.renene.2013.09.003
  18. Sizing methodology for hybrid systems based on multiple renewable power sources integrated to the energy management strategy International Journal of Hydrogen Energy · Elsevier BV · 2014 10.1016/j.ijhydene.2014.01.003
  19. Economic sizing of a hybrid (PV–WT–FC) renewable energy system (HRES) for stand-alone usages by an optimization-simulation model: Case study of Iran Renewable and Sustainable Energy Reviews · Elsevier BV · 2015 10.1016/j.rser.2015.09.046
  20. A Dynamic Approach for Distribution System Planning Considering Distributed Generation IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2012 10.1109/tpwrd.2012.2194744
  21. A Smart THD Meter Performing an Original Uncertainty Evaluation Procedure IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2007 10.1109/tim.2007.899895
  22. Time-varying harmonics of single-phase nonlinear appliances 2000 IEEE Power Engineering Society Winter Meeting. Conference Proceedings (Cat. No.00CH37077) · 2003 10.1109/pesw.2002.985174
  23. Optimal placement and sizing of a DG based on a new power stability index and line losses International Journal of Electrical Power & Energy Systems · Elsevier BV · 2012 10.1016/j.ijepes.2012.05.053
  24. A review of photovoltaic systems size optimization techniques Renewable and Sustainable Energy Reviews · Elsevier BV · 2013 10.1016/j.rser.2013.02.023
  25. Study of distributed generation locating and sizing considering power quality 2015 10.1109/ifeec.2015.7361602
  26. A study on the effects of voltage distortion on current harmonics generated by modern smps driven home appliances in smart grid network 2012 10.1049/cp.2012.2136
  27. Sitting and sizing of Distributed Generation in distribution network to improve of several parameters by PSO algorithm 2010 Conference Proceedings IPEC · 2010 10.1109/ipecon.2010.5696977
  28. Characterization methodology for in-home loads based on harmonics 2009 10.1109/sae.2009.5534881
  29. Aggregated rooftop PV sizing in distribution feeder considering harmonic distortion limit 2016 10.1109/npsc.2016.7858977
  30. Optimal energy storage sizing and residential load scheduling to improve reliability in islanded operation of distribution grids 2022 American Control Conference (ACC) · 2017 10.23919/acc.2017.7963564
  31. Effect of home appliances on power quality of conventional grid 2016 10.1109/cimca.2016.8053260
  32. Analysis and mitigation of harmonics caused by air conditioners in a distribution system 2017 10.1109/mepcon.2017.8301258
  33. Definition of a useful minimal-set of accurately-specified input data for Building Energy Performance Simulation Energy and Buildings · Elsevier BV · 2018 10.1016/j.enbuild.2018.01.012
  34. Sizing methods and optimization techniques for PV-wind based hybrid renewable energy system: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2018 10.1016/j.rser.2018.05.032
  35. Optimal Sizing of DGs for Voltage Profile Improvement and Loss Reduction Considering Harmonic Limits and Protection Coordination 2018 10.1109/icee.2018.8472609
  36. Scenario Based Analysis of an EV Parking Lot Equipped with a Roof-Top PV Unit within Distribution Systems 2022 International Conference on Smart Energy Systems and Technologies (SEST) · 2018 10.1109/sest.2018.8495891
  37. Economic Operation of a Micro-Grid considering Demand Side Flexibility and Common ESS Availability 2022 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe) · 2018 10.1109/isgteurope.2018.8571861
  38. Study of Voltage-Dependent Harmonic Characteristics of Residential Appliances 2019 10.1109/tpec.2019.8662188