A New Energy Management Technique for PV / Wind / Grid Renewable Energy System

An intelligent energy management system (IEMS) for maintaining the energy sustainability in renewable energy systems (RES) is introduced here. It consists of wind and photovoltaic (PV) solar panels are established and used to test the proposed IEMS. Since the wind and solar sources are not reliable in terms of sustainability and power quality, a management system is required for supplying the load power demand. The power generated by RES is collected on a common DC bus as a renewable green power pool to be used for supplying power to loads. The renewable DC power bus is operated in a way that there is always a base power available for permanent loads.Then the additional power requirement is supplied from either wind or PV or both depending upon the availability of these power sources. The decision about operating these systems is given by an IEMS with fuzzy logic decision maker proposed in this study. Using the generated and required power information from the wind/PV and load sides, the fuzzy reasoning based IEMS determines the amount of power to be supplied from each or both sources. Besides, the IEMS tracks the maximum power operating point of the wind energy system.


Introduction
In today's world, the increasing need for energy and the factors, such as increasing energy costs, limited reserves, and environmental pollution, leads the renewable energy to be the most attractive energy source.Since these sources have unlimited supply and they do not cause environmental pollution, they are studied extensively lately and utilized more and more every day.Governments put in new legislations and feed-in-tariffs to encourage the investors to install new renewable energy utilization sites [1][2][3] and studies on this topic are supported by many foundations.
Renewable energy sources consist of solar energy, wind energy, geothermal energy, and wave energy which are considered to be endless since they exist naturally and they always renew themselves [4].It is one of the important topics that researchers and scientist work on to obtain energy from these sources and use this energy by transforming it into the form of electrical energy.
Solar and wind energies have a distinguished place among these energy types.There are wind and sun everywhere on earth; therefore, there is more intense study on these sources.The aim is not only to obtain the energy but also to turn the energy to proper values, manage the existent energy, and terminate the harmonics.While managing all these, lowering the cost of the system in every step is taken into consideration.Today, producing electrical energy from these renewable sources appears to be the main objective [5][6][7].
The combined operation of these systems is far more complex than operating them separately.In a system with only solar or wind energy, just one element is controlled.In a hybrid scheme, both sources are controlled individually and simultaneously depending upon the operating conditions and energy demand.During low sunlight conditions, photovoltaic (PV) solar panel cannot supply consistent power.Similarly, wind turbine will not work in conditions without wind.In this case, the required energy must have the structure to make up the lack of energy in conditions when this system 2 International Journal of Photoenergy does not work regularly or the composition produces less energy than the requirement.Power management assures that the system works efficiently while preventing the lack of energy in loads.Here it is aimed at obtaining clean and sustainable energy in stable frequency and definite voltage.While or after obtaining the energy, harmonics must be definitely controlled.
Power management is important to assure both economical and efficient work of the system in combined usage of renewable energy sources.Variable weather conditions, day-night conditions, and rapid change in voltages make this necessary.Power management can be achieved by using maximum power point tracking (MPPT) [8] devices in order to determine the most efficient operating point of a system in a particular weather condition and by switching the systems so that they become active to support each other dynamically.It is important to keep the backup batteries full in times when there is neither sun nor wind.Without backup batteries there will be no energy in the system.In this case, for instance, it is computerized control mechanism's duty to link the system to the grid, connect the generator or determine, and manage the related situations.
Nowadays renewable energy sources are structured in two ways as grid connected and standalone.Renewable energy sources as solar energy and wind energy can be used to feed loads far from the grid especially the home type ones.However, there are problems in these types of systems when there is no sun or wind.Users become fully powerless after the batteries are flat which are used as backup systems.An alternative situation to this is to connect the loads to the grid if they are close to it, in conditions that there is no sun or wind and the batteries are empty [9].
In literature review, it can be seen that there are many researches which include wind turbine and PV solar panels used together [10,11] and the loads are fed with the energy obtained and power management conducted [12][13][14].The main aim here is to gain maximum power according to environmental conditions and whether the obtained energy is to be fed by wind energy system (WES) or by PV solar panels systems according to changing load conditions.Similar to wind turbines and PV solar panels, there are several studies related to energy management and power flow in electrical power systems and other energy generation units [15][16][17].
Energy sources such as PV solar panels, wind turbines, fuel cell, and diesel generator can be used both as standalone or hybrid.There are many studies and utilizations such as wind/PV [10,11], wind/fuel cell [18], PV/battery [19], wind/battery [20], PV/wind/fuel cell [21], PV/fuel cell [22], PV/wind/battery [23], and PV/grid [24].The studies aim to increase power quality, ensure energy sustainability, and stabilize the amplitude and frequency of the voltage on the load side on a definite value.Besides, the energy management occupies an important part of the studies related to renewable energy utilization schemes [13].Energy management in renewable energy systems deals with both source and user side control issues to keep the overall system running smoothly [25,26].
In addition to this, MPPT is one of the important parts of the work, because IEMS calculates maximum power in WEC system.There are various methods which produce MPPT to obtain maximum power from RES.It is tried to run the system continuously at this point by defining the maximum power point with more efficient controls of power electronics converters.While there are studies for calculation of instantaneous generated power decided according to measurements of the environmental conditions, studies which focus on the efficient controls are conducted for similarly used engines to produce maximum power production.It is aimed that the wind turbines work with maximum efficiency [27][28][29][30][31][32][33].In this study, there is an MPPT designed in a different way from these methods.Here, smart control software continuously and accurately calculates the maximum power that can be obtained from the wind turbine.MPPT is an important part of IEMS.Moreover, it is different than the other methods which include expensive control and measurement methods in that it is much cheaper and simpler.
In this study, a power management system will feed the loads from a hybrid power generation system consisting of PV solar panels, WES and grid.WES consists of a different and new MPPT method.The hybrid system is connected to a common DC bus, which is used as a power pool for sustainability.PV system is also connected to a backup battery unit to be charged for emergency usage when additional power is needed.In addition to the source side, the load side management is also very important for the renewable energy systems and also considered in this study.
Besides, energy management software can rapidly and continuously respond without being bounded to environmental conditions, which keep continuously some amount of power in reserve and during instantaneous load changes control the system efficiently.This study is different from the others in its being efficient management approach and having different, cheaper, and simpler peak power point tracking.

System Description and Methodology
The overall scheme of the proposed hybrid renewable power management system is given in Figure 1.The system consists of PV and wind power generating units and a utility grid as hybrid electrical sources.These three generating units are connected to a DC power pool over the required converters.A backup battery group is also connected to PV system in order to store the extra generated solar power when all generated power from the PV is not delivered to the load.AC load types are considered in the system and they are connected to AC power bus, which is fed from the common DC power pool.Data collected from source side and load side is transferred to a computer to be evaluated for decision making process of the power management system.
The power management algorithm (PMA) is developed to operate both photovoltaic energy system (PVES) and wind energy system (WES) at the maximum power they can generate under various environmental conditions while maintaining power supply demand of the load side at required amount.Therefore the power management includes maximum power point tracing of PVES and WES, energy storage, utility connection, and load switching.Besides, the power quality issues such as harmonic elimination, voltage sags, voltage increments, frequency deviations, and voltage magnitude are included in the management system.It is obvious that there are too many inputs and parameters into the management decision algorithms.A fuzzy logic based decision making algorithm is developed and used for this multi-input, multiobjective system.
2.1.PV System.PVES is modeled using the well-known characteristic equation of PV cell.The voltage-current equation of a PV cell is based on photocurrent of a P-N junction semiconductor.The photocurrent is a function of solar irradiation and changes with the sunlight.The voltage across the connection terminal of the P-N device varies as a function of the photocurrent.When there is a path across the terminals of the P-N device, which is the photovoltaic cell, external current flows through this path, if there is a load on the path then through the load.The maximum value of this external current, or, in other words, load current, is the short circuit current and assumed to be equal to the generated photocurrent.It is observed that as the cell current increased, the cell gets heated resulting in a decreased terminal voltage.Therefore, considering this voltage decrement and reverse saturation current of the P-N diode, the terminal voltage of a single PV cell is written as in The PV power generation part of the system. is then obtained by connecting the PV modules in series and in parallel yielding the PV arrays [24].
The power flow path from PV power generation unit to the load is shown in Figure 2. Four PV modules connected 2 in series and 2 series branches in parallel are used here to get an array with 42 volts and 5 amperes maximum under good weather conditions.
PV array and battery groups are connected to each other with a device including a battery charging regulator and maximum power point tracker.When the sunlight is not sufficient, the batteries step in and supply the necessary power to the loads.The MPPT is used to transfer the maximum generated power from the PV array and charge the batteries if any power is left after feeding the load.This unit is MOTECH PV4830 MPPT charge controller.The batteries are also charged from the DC power bus when the sunlight is insufficient.A battery charge regulator with 12/24/36/48 V and 30 A is used as a charging interface device.Total peak power generated by the PV array under good weather conditions is about 320 Wp.Since the value of the generated voltage from the PV array changes depending upon sunlight, a DC chopper (19∼72 V DC input voltage) is used to keep the DC voltage from the PV panels at 48 V.This chopper is boost converter.The diode that is used after the chopper is located in order to protect the chopper.It is a kind of electronic fuse.It is a diode that prevents reverse current flow with a high current.This is the magnitude of the DC bus voltage, which is inverted to 220 V, 50 Hz AC voltage by a boost-up inverter.In this scheme, the current and voltage data from the loads are measured and transferred to the computer, besides the input voltage and output current of the chopper to be used in decision making process.

Wind Turbine Emulator and WES.
The wind turbines convert the mechanical energy that is produced by the wind to electrical energy.To use this electrical energy a voltage and a frequency regulation has been needed.The model of the wind turbine is developed by the basis of the steady state power characteristics of the turbine.
Calculations of induction machines are completed in - axis frame.Figure 3 shows the depictions of axis frames.Here we can obtain After the necessary conversions are completed, - axis frame equivalent of the machine is obtained as shown in Angular frequency   is as shown below: Here   represents the angular frequency of stator fluxes and   represents rotor fluxes angular frequency and  angular speed of machine shaft, also represented by and   is synchrony speed. is shown in And   is as in Here   represents the stator flux value.The relation between flux and current in - axis frame is as in ( 9) and ( 12): The state-space model according to (0, , ) stator and rotor axis frames of the system can be seen in ( 13) and ( 17) [34]: ) Consider the following symbols: The WES emulator is established by coupling two squirrel cage asynchronous machines together as seen in Figure 4.The power of the machine to be used as the prime mover for representing the wind turbine is selected as 5 kW and the power of the other machine used as the generator is selected as 3 kW so that the generator can also be operated at overpower conditions to expand the analysis of the operating cases.
The machine on the left is a prime mover representing the wind turbine and is controlled with a / speed controller.Depending on the wind speed, the output voltage of the generator, the second machine from the left, changes between International Journal of Photoenergy   320 V and 400 V. Three phase voltage magnitudes obtained from the generator are reduced to a lower level using a step down transformer with a ratio of 380 V/36 V. Therefore, transformer output voltages change between 30 V and 38 V.
The output voltage magnitude of 3-phase full bridge diode rectifier is calculated as in where   is rectifier output voltage (V) and   MAX is the maximum value of single phase voltage (V).Full bridge rectifier output voltage changes from 40,5 V to 51 V.A DC chopper is used to convert this variable voltage to a 48 V constant DC to be connected to common DC bus, which has a 48 V constant DC voltage.The reactive power to generate energy at this point is supplied with a condenser group.Later on, this three-phase voltage which is rectified is sent through a chopper and it is brought to 48 V value and connected to common DC bus.Then an inverter is used to convert this 48 V voltage to 230 V/50 Hz alternating voltage and the loads are fed.Here the current and voltage information on the loads and copper input voltage and output current is measured and these values are transferred to the computer.

Grid Connection.
The proposed renewable energy scheme consists of two-type operating conditions.The first case described in previous sections is the one supplying power to individual loads where the utility grid is not available or not connected.The second case deals with utility connected renewable energy scheme as shown in Figure 5. Hence power generated from each power generation system is collected in 48 V direct current bus.
As shown in Figure 4, the utility voltage is converted to 48 V DC constant value to be connected to 48 V common DC bus as it is done for wind and PV systems.
Data collected from various parts of the system is transferred to the computer and used for control and decision making processes.The interfacing between the real system and the computer is established by NI USB 6259 data acquisition card.

Power Management and Sustainability.
The electrical power generated by renewable sources such as wind and solar power is affected by environmental conditions resulting in problems in load part.When there is no sun or the weather is cloudy, the power amount to be generated by solar energy changes.Accordingly, wind does not blow at the same speed all the time; it is discontinuous.Henceforth, energy amount to be generated from these sources are variable.
In particular in low powered applications, for instance, while supplying energy to a house from these sources, it is a problematic situation to have a power cutoff while watching a TV.Power sources must be efficiently operated in order to avoid such situations.
Proposed PMA and decision making process are developed to prevent problems like voltage sags and discontinuities that occur due to either weather changes or sudden load changes.The intelligent decision making algorithm manages the energy storage and usage switching patterns so that energy sustainability is guaranteed.
General block diagram of the power management scheme is given in Figure 6.The total generated power from the wind is used as the primary supply power, which is used to supply base load power.As long as the wind power is sufficient, the secondary power system is kept off and additional generated power is stored.When the wind power is less than the required load power then the secondary power system, which is solar and/or utility grid, is activated.The service order of the secondary power system goes as solar PV, storage, and utility grid.Since the utility grid requires additional payment, it is put at the end of the list and the priority is given to the wind and PV arrays [35].The load power is calculated as in 2.5.Power Management System Design.In order to solve sustainability and power quality problems, the power transfer from the renewable sources to load must be managed in a proper way.Therefore a PMA system has been designed to prevent power discontinuity and overvoltage and undervoltage operations so that the loads operate properly.The power management system is automated in an efficient way by switching on or off the sources and backup units.For example, if the wind power is sufficient enough to feed the load, then there is no need for the auxiliary sources of PV, backup batteries, and the utility.If the wind power decreases, the gap is filled by PV first, then batteries, and then the utility.The overgenerated power is stored and used only when needed.
The overall energy generation system established experimentally can be seen in Figure 7.In this system, the electrical power is generated by wind generator and PV solar panels.The utility is reserved as an auxiliary source to be used when needed.The power from the PV system is used to supply power to the load when the wind power is not sufficient and to charge the batteries when there is sufficient wind and sun power.Data collected from various parts of the overall system is transferred to the computer to be analyzed.
The main objective of employing a power management algorithm in power systems where the renewable energy is the priority supply is to have the power ready to be used and feed the load continuously.For this reason, the peak power value from both WES and PV solar panels must be calculated.MPPT device used for PV solar panels handles this duty on its own.Therefore, there is no need to calculate the peak power calculation in PV solar panels.MOTECH PV4830 MPPT charge controller calculates MPP by itself.However, the peak power value to be obtained from WES must be defined.The priority supply is WES in this system.At the same time, since the changing environmental conditions affect the amount of energy to be produced, power management is planned to avoid this effect by leaving a base power in the system.The base power is the power that must be supplied all the time for the loads with nonstop operating behaviors.The base power in the proposed system is defined as 300 W, which can be easily changed inside the software if desired.The system is designed to feed maximum 1 kW, which is more than three times the base power.If the environmental conditions are sufficient, which means there is enough sun and wind, wind energy generation system and PV solar panels generation system produce the maximum power they can, and the installed power can rise over 2 kW value.The main operational principle of the system is summarized as follows.
(1) Initially the system is started with both solar and wind energy in service.
(2) After the transients are over and measurements are done, WES or PV solar panels system will be kept working according to load condition.If the environmental conditions are not suitable for PV solar panels or WES to operate individually, both will operate.When the present condition does not meet the energy requirements of the load, grid will.
(3) If WES can handle the load power requirement alone, it will operate.PV solar panels will be used to charge the batteries only.
(4) If WES does not generate sufficient power, PV solar panels will engage and both will operate together.If both are insufficient, then the grid will engage.
(5) If there is no wind, PV solar panels will feed the loads.(6) When there is no sun and the batteries are empty or the battery cannot feed the loads with its actual power amount, the grid will begin to operate.These steps bring up the importance of the following: (1) the operating time of each unit, (2) turnoff time of each unit, (3) the amount of load at present conditions.
Since only the wind energy will operate constantly, these lists of rules are processed by taking the measurements from wind energy system into consideration.
(1) 300 W power will be supplied as the permanent power in the system.The wind turbine emulator is operated at various speeds in order to represent the generated wind  power properly.The emulator has been set up so that the generated power will not be sufficient with the base power under a speed of 35 Hz.During this condition, solar energy will automatically begin to operate.
(2)  DC/DC  chopper input voltage value is different in asynchronous motor driver frequencies.For instance, when the load power is 500 W, the generated voltage becomes 47.3 V at 44 Hz and 45.4 V at 43 Hz.It will decrease other value down to 31.5 V at 37 Hz.The relationship between voltage and frequency is used to estimate the operating frequency.
(3) Considering both  DC/DC  and  DC/DC  values, asynchronous motor driver frequency, power dissipated at that moment, and maximum load values at that driver frequency can be detected.This case is also used to determine switch on or switch off times of PV solar panels.It should not be forgotten that 300 W power will always be in the system as the base power to be supplied.
(4) Similarly when the PV solar panels are on, the generated voltage from the PV panels to the chopper decreases as load power increases.Using the measured values from this operating case, it is possible to find out how much power should be generated by the panels to feed the load.Chopper input voltage value will decrease as the batteries discharge.The batteries are assumed to be insufficient to feed the load when their voltage drops down below 21 V.If the sunlight is not enough to generate the required power to the load, the batteries also will not be usable with an output voltage less than 21 V.
(5) While PV solar panels are feeding the loads, after the WES begins to operate, some of the required power is supplied from WES.If WES can supply all of the load power, then PV solar panels are switched to charge the batteries.
(6) It is important to get measurements of these operating cases continuously in order to respond immediately in sudden load changes.The base power demand is 300 W. If a sudden load change increases over 300 W, the system is disconnected.For example, when the load power is 500 W when WES can give maximum 500 W, PV solar panels must operate so that in a 300 W sudden load increase the loads can be fed without the system failure.This action is taken to prevent system shutdown in power changes resulting from sudden charges according to the environmental conditions at the time.
(7) The grid connection is established when neither the sun nor the wind are sufficient enough to supply 300 W base power demand.
Flow diagram of power management program is given in Figure 8.

Fuzzy Logic Reasoning (FLR) and Calculation of Peak
Wind Power.Fuzzy logic has so many applications in industry.Fuzzy logic reasoning (FLR) algorithms are generally used in fuzzy decision makers (FDM), which find applications in systems that require a conclusion from uncertain input data.Since the wind conditions are not certain and are not easily predictable, the power generated by the wind energy system becomes uncertain including the maximum generated power as well.Therefore a fuzzy reasoning algorithm is developed to determine the maximum power generated by WES.The fuzzy reasoning applied to determine the maximum power of the WES is represented in Figure 9. Fuzzy decision maker's MATLAB/Simulink model is given in Figure 10.
A FDM usually gets fuzzy inputs and evaluates them in the rule base system, which is set up earlier representing the input-output relations of the uncertain system in terms of fuzzy membership functions and fuzzy rules (FR).The FR is the evaluation of the rules to yield fuzzy conclusions from fuzzy inputs-fuzzy rules interactions, if the input variables are crisp.Certain input values are rated here.Thus, these values can be included in a value range that can be used by the controller and then it can be expressed verbally.In addition, it becomes a member of a group that has clear boundaries.Then they are fuzzified to fuzzy values.Similarly if the output is required as crisp value, then the concluded fuzzy outputs are converted to crisp values by the process called defuzzification.
In this study, the input values to the FDM are the current and voltage measured from the WES.The generated rules are used to relate the input voltage and current with the power of the WES depending upon the wind speed conditions.FR algorithm in the FDM is used to obtain maximum power generation from WES for uncertain and unpredictable speed conditions.The designed FR based FDM is modeled in Matlab/Simulink environment as shown in Figure 10.The maximum wind power value is determined by FDM using chopper's input voltage  DC/DC  and the output current is  DC/DC  .The wind turbine, a 3-phase transformer, a 3-phase bridge rectifier, and a DC/DC converter are all assumed as a whole system.All of the calculations are based on the values of  DC/DC  and  DC/DC  .Since the chopper output voltages are kept constant at 48 V DC, the main variable at the output terminals of the choppers or at common DC bus is the current at the output terminals of the choppers.The output current of the chopper used to control the voltage of WES is the variable that reflects the changes on WES power.Therefore the active power generated by the WES is obtained from where 48 V is the chopper output voltage.All of the MPPT calculations are based on the values of  DC/DC  and  DC/DC  .As the wind speed changes, produced power values change.Therefore, current and voltage values that belong to system have changed too.These changes are followed with the chopper and its values  DC/DC  and  DC/DC  .By following these two values the peak power value of the system's present speed value has been determined in this way.Those loading experiments were made for all wind speed values first, and then power for each speed was determined and transferred to the controller by blurring them.Controller uses abovementioned experience and control the system properly.It is a kind of expert system behavior.
The online data collected and transferred to computer is used to determine the amount of load power demand that supplied from the PV/wind sources.In the meantime the data representing the WES quantities are used by FDM to determine the maximum power generated by the WES for the instant the measurements made.The maximum power values of both WES and PV panels are used in power management part of the study.As seen in Figure 11, the crisp current and voltage values are converted to fuzzy values.Triangle type membership functions are used to represent 7 fuzzy subsets.In the system the current values and voltage values are varying from 3,5 A to 23,5 A (from  1 to  6 ) and from 27 V to 55 V (from  1 to  6 ), respectively.The lower limit of the voltage corresponds to the lower limit of the wind speed.Below the lower limit of the voltage the required energy conversion is not satisfied.Therefore the voltages below 27 V are treated as zero.The output of the FDM is the output power space (from  1 to  6 ) that calculates the maximum power value provided by the WES.The power generated by the WES varies as a function of the wind speed.Therefore the maximum power was obtained from the WES changes depending on the wind speed levels and must be determined for different speed levels as the wind speed changes.Therefore the maximum power surface of the WES is portioned into seven fuzzy subsurfaces as shown in Figure 12 [24].

International Journal of Photoenergy
Experimental test system is seen in Figures 13 and 14.
In WES, MPTT is implemented as software.There is not any electronic intervention to the generator.In addition to this, there is not any added hardware.For this reason, it is different from other MPTT systems.

Test and Results
In Figure 15, the system consisting of WES and PV solar panels and without energy management software can be seen.
(b) Fuzzy subsets of voltages Figure 13: Appearance of experimental system on one side.
The system fully operates in free mode.There is neither supervision nor a control mechanism.
As the first operating case, the system is analyzed when both wind and PV solar panels are on without applying any power management.For this case, chopper input voltage,   , in WES, chopper output current,   , PV solar panel voltage,   , to the chopper input, chopper output current,   , load voltage,   , and load current,   , can be seen in Figures 16-18.
It can be seen that when a load power of 800 W is on, WES and PV system together cannot feed the loads from 40 s to 70 s and from 86 s to 89 s, since they could not operate properly.Besides, the load voltage decreases down to 0 sometimes instead of remaining at the required value of 220 V.Although there is enough power generated in the system, power discontinuities occur.Actually the power generated PV solar panels can be used to eliminate the power discontinuities due to changes in wind speed by applying proper power management algorithms.In this case, a decision making system is needed to control the system and make decisions in order to avoid lack of power discontinuity on loads.
The proposed power management algorithm is realized in MATLAB/Simulink environment using dynamic operational blocks library as shown in Figure 19.
The Simulink diagram in Figure 18 consists of the following subsystems: R I ok: wind system current, R V ok: wind system voltage, R P ok: wind system power, G V ok: PV system voltage, G I ok: PV system current, Y P ok: loads power, Pwind Max: calculated maximum wind power, Grid Switch: grid system switch (on/off), PV Switch: PV system switch (on/off).Figure 20 shows current, voltage, and power changes of WES for operating case 2 in which, the load power is changed arbitrarily in different time periods resulting in changes in the quantities of WES.It can be observed that WES is always active, yet, because of wind speed and powers extracted, the power amount transferred to the system changes.

International Journal of Photoenergy
Current, voltage, and power changes for PV system during case 2 can be seen in Figure 21.PV power is supplied to the load between the durations  = 20-75 s and  = 88-100 s.The changes of current, voltage, and power from the utility grid are given in Figure 22.The grid transfers energy to the loads during the time interval of  = 45-68 s.
Current, voltage and power changes on the load terminals can be seen in Figure 23.The load amount changes constantly.There is a power consumption varying between 0 W and 900 W. 100 W lamps are used as load.Voltage on the load is 220 V. Varying amounts of current are taken from the energy generation system according to the load condition.In Figure 24, variation of the power generated by WES is given.A fuzzy logic reasoning (FLR) algorithm is employed to manage this power.
In Figures 25 and 26, it can be observed that PV and grid system operates and switch on and off.During the time interval of  = 41-68 s the PV system is on while during the time interval of  = 45-58 s the utility grid system feeds the loads.Both systems operate for short time periods from time to time depending upon the sudden changes.
In Figure 27, we can see the details of voltage change on the loads.Wave shape is very close to sine.Distortions are observed since data is generally taken from voltage detector.
Between Figures 28 and 37, an asynchronous motor is added to lamps which are used as load and the system is restarted and then the results are drawn.Thus, by adding resistive load and also inductive load to the system, the behavior of the system under different load conditions is examined in detail.
The current, voltage, and power value changes from WES can be seen in Figure 28.The magnitude of the generated voltage is very low in time interval from 50 s to 70 s due to high reduction in wind speed.
Time variations of voltage, current, and power of PV system are given in Figure 29.PV solar panels operate especially in period from 45 s to 70 s.PV solar panels are active during this period because WES is not sufficient enough to generate the required load power.
Figure 30 shows the variations of voltage, current, and power of the utility grid.During the period from 45 s to 75 s the utility grid supplies power to the loads since both wind and PV systems are off or they do not generate required power due to low speed and/or low sunlight.
Current, voltage, and power changes on the load can be seen in Figure 31.Asynchronous motor load is always kept operating.During the time interval of  = 3-18 s, 200 W lamps are added to the system as loads in addition to the asynchronous motor.Later, in period  = 27-85 s, the lamps are turned off leaving only the asynchronous motors as the load.Meanwhile, wind speed is changed constantly.
Load voltage is kept at 220 V, while the load current varies according to load condition.
The maximum power drawn from the WES is given in Figure 32.The generated power by WES is high around 900-950 W when the wind speed is high and it is low around 200 W when the wind speed is lower during the period from 50 s to 70 s.
The on and off switching instances of PV solar panels and utility grid system are shown Figures 33 and 34, respectively.In period of  = 40-70 s, PV panels are on and, in period of  = 43-70 s, the grid system is on.They are turned on in order to support WES so that the loads will not be lacking of energy in that time period.
Wave shape details of voltage on the load are given in Figure 35.Although elements like asynchronous motor lead to harmonics, a very clear sine wave with a little amount of distortion is obtained.
The variations of power from wind, PV, and load busses are given in Figure 36 for case 1 where there is neither control nor power management algorithm.Since there is no power management, the load tries to get the power from PV and backup system, which are not sufficient enough to feed the load.Therefore load does not get the required power to operate.
Variations of the power from WES, PV, and utility grid along with load power and available maximum value of the wind power are shown in Figure 37. Proposed power management algorithm (PMA) has been applied for this case.Therefore there is no problem on supplied load power.As load or environmental conditions change, the load power is supplied from the sources in the order of priority use as wind, PV, and utility grid.If the power from the wind is sufficient for the load, the generated PV power is stored in backup batteries.If the wind power is not sufficient, then PV power is connected to complete the required power.If both wind and PV do not generate the required load power, then the utility grid is connected.

Conclusions
An intelligent energy management system (IEMS) for maintaining the energy sustainability in renewable energy systems is presented in this study.A renewable energy system consisting of wind and PV panels is established and used to test the proposed IEMS.Since the wind and PV sources are not reliable in terms of sustainability and power quality, a management system is required for sustainability on the load side.The proposed PMA is used to collect power from renewable sources and utility grid at a common DC bus and feed the loads preventing any power discontinuity.By employing PMA, a base power is always supplied to DC bus to be used by the loads that are operating permanently.Besides, PMA handles the effects of the changes in wind speed, solar irradiation, and amount of the load by operating wind, PV, and utility grid accordingly using intelligent decision making abilities.The proposed intelligent PMA is also used to determine and track the generated and available maximum wind power from WES so that the efficiency of

Symbols
: C e l lo u t p u tc u r r e n t  PH : Photocurrent function of irradiation level and junction of temperature   : Reverse saturation of current of diode   : C e l lo u t p u tv o l t a g e   : Series resistance of cell : E l e c t r o nc h a r g e : B o l t z m a n nc o n s t a n t  pil : Reference cell operating temperature : Curve L o a dc u r r e n t R I ok: Wind system current R V ok: Wind system voltage R P ok: Wind system power G V ok: PV system voltage G I ok: PV system current Y P ok: Loads power Pwind Max: Calculated maximum wind power Grid Switch: Grid system switch (on/off) PV Switch: PV system switch (on/off)  Load : L o a dp o w e r

Figure 1 :
Figure 1: Renewable power generation system and energy management.

Figure 3 :
Figure 3: Phase depiction of components of - axis frame in rotor flux vector.

Figure 4 :
Figure 4: Feeding the loads with power generated from WES model.

Figure 5 :
Figure 5: Grid connection structure in the system.

Figure 6 :
Figure 6: Basic block diagram of power management system.

Figure 8 :Figure 9 :
Figure 8: Simplified flow diagram of power management program.

Figure 14 :
Figure 14: Appearance of experimental system from above.

Figure 17 :
Figure 17: Voltage, current, and power change of PV solar panels for case 1.

InternationalFigure 18 :
Figure 18: Voltage, current, and power change of loads for case 1.
fitting factor  DC/DC  : Chopper input voltage  DC/DC  : Chopper output current   : W E Sc h o p p e ri n p u tv o l t a g e   : WES chopper output current   : P Vs o l a rp a n e l ss y s t e mc h o p p e ri n p u t voltage   : P Vs o l a rp a n e l ss y s t e mc h o p p e ro u t p u t current   : L o a dv o l t a g e   :