A microgrid is an isolated power system that can manage intelligent distribution power resources, interconnected loads and work in parallel with or independently of the network. In the same mood, electric power can be provided economically while enhancing energy quality and reliability by integrating and improving energy sources. However, the validity of a microgrid network depends on the combination of power sources, size or capacity allocated, and the transmission strategy . Wind energy is a promising technology commonly used in microgrid networks   since winds are a clean energy source that is available everywhere and is available free of charge. Still, it depends to a great extent on on-site meteorology .
To minimize the loss, a microgrid site has a key role. The losses are reduced to a minimum amount by increasing the installed generator’s size  . The selection of the suitable site of distributed generators in the system also plays a leading role in reducing the active power losses , interactive and interactive. In this work, many investigations have different future methods to minimize losses of the system. A Distribution Generator (D.G.) can also reduce the cost of the network upgrade. However, if the location of the distribution generator is not realistic, on the conflicting, may lead to an increased energy loss, so the preparation and scaling distribution generator in The previous size depends on the minimum transmission loss; Send traditional power system, power transmission distribution is managed together, there is no need to compute the cost of losses in each part .
The main features affecting the cost of energy transfer losses are transmission line losses and the generating price. In this situation from the specified energy flow, all generations prices are the same in the traditional power grid, so, the minimum loss of transmission line means almost The minimum cost of transmission losses, but the cost of generating D.G. is much higher than traditional generations, location D.G. measurement may only consider the loss of transmission to increase the transmission cost in the power grid layout, the calculations are optimized with the cost of transmission loss goal function is necessary .
In this work, we proposed a schematic for the loss reduction system; the 4-step loss reduction plan, as described below, includes divided into sections, including analysis of the load flow, acquisition of the voltage profile, control and reduction of losses, and optimization using an approach based on two algorithms are obtained for the placement of D.G., the PSO, and APSO, and monitor the data profile . Finally, the aim of this work is summarized in the Modeling, design, and implementation of optimum operation perform for the smart grid to high-quality performance using a SCADA system.
2. Optimum Location of Distribution Generator
The optimization of the distribution network is mainly from an economic point of view. However, single-objective optimization will ignore the interests of other aspects, and different factors need to be considered in D.G. investment subjects’ decisions. The power region or D.G. investors are more eager to get the maximum benefits. They pay more attention to the investment cost of D.G. As users, they hope to obtain safe and stable electricity, mainly focusing on the quality of power. It can be seen that under the various requirements of power network operation quality and economic benefits, the future direction of reactive power optimization is to comprehensively consider the economy, safety, and power supply reliability of power system operation  , so it is necessary to establish a multi-objective reactive power optimization model to meet the needs of multiple parties.
The control system in standalone micro-grid is under severe compulsion to 1) achieve demand-supply equilibrium in all conditions; 2) control and restore the system frequency and bus voltages to their nominal values whenever a disturbance has happened . The latest trend in standalone micro-grid control is to provide a primary reserve for each D.G. unit, whether it is dispatchable or non-dispatchable. By doing so, every D.G. can participate in frequency control apart from its local bus voltage control during transient conditions, although in the steady state only dispatchable units can account for the frequency restoration . The conventional control system of the synchronous D.G. consists of the turbine reference set point control and excitation system control using P.I. Controllers.
2.1. Accelerating Particle Swarm Optimization Technique (APSO)
Article movement factors consist of two main components: an inevitable element and a random component. Each particle is attracted to the best current position G and the best Site in history, while at the same time tends to transfer arbitrarily. For example, let be the vector location xi and the particles velocity vi of i, respectively, so the following formula calculates the new speed transducer :
When required, the diversity in quality solutions increase, improving the standard PSO uses the best position individual , and the global best . The difference can be simulated by using randomization for using the best individual is mainly. Later, there is no convincingly motive to use the best individuals, except the problem optimization is multimodal and extremely nonlinear . A basic model that can accelerate the meeting of the procedure is to use the globally better only. Thus, in this way of the acceleration of particle swarm optimization  , the velocity vector is generated by the Equation:
where: is outgoing N(0, 1) to replace the next term. To increase the convergence more, we can also write the location update in one step:
Usually, α = 0.1K to 0.5K, where K is the measure of each variable and β selects from 0.1 to 0.7 for suitable in most applications. There is no requirement to accord with the vectors of velocity formation, so be noted that speed does not appear in Equation (5); therefore, APSO is much simpler, and the mechanism is easy to understand. Compared with many standard PSO variables, the APSO uses two exclusive parameters; another improvement in the accelerated PSO system is to reduce randomization while duplicates persist. This means that we can use a monotonous decrease function like:
where: α0, approximately from 0.5 to 1, is the initial value of the random parameter. Here t is the number of duplicates or time steps, and γ is a control parameter . For example, in this application, we will use:
where: t ∈ [0 and tmax] and tmax is the maximum iteration .
2.2. Objective Function
In the power systems, the dispatch of reactive electricity power may have different goals, such as obtaining the best voltage quality and reducing real power losses. Considered the voltage magnitude is |Vi| and |Vj| at buses i and j, respectively so, the power loss as an objective function and described by the formula :
M is the number of branches, while the angle θij is the difference in the phase of voltage angle at bus i and bus j, respectively, and gij represents the branch conductance of impedance between the buses i andj .
There are two constraints dispatch issue of reactive power, equality, and inequality constraints as follows:
1) Equality Constraint: If we suppose the real and imaginary power supplying to bus i are Pgi and Qgj respectively, and the real and imaginary demand load power at bus i are Pdi and Qdi respectively, so The real and imagery power is given by the following formulas :
2) Inequality Constraint: It’s the voltage magnitude range value, tap changing transformer positions value, and injection reactive power to the system. In this paper, and based upon the IEEE 30-bus system’s data, the voltage magnitude values are selected from 0.950 p.u to 1.10 p.u, and the tap changing transformer range is usually from 0.975 to 1.025. The compensator’s injection of reactive power to the system from 0 MVAR to 20 MVAR. The Inequality Constraint is given by the following relations  :
So, the objective function given in equation nine can be expressed by follows:
And the values of voltage magnitude, tap changing transformer, and injection reactive power described as follows  :
3. Systems Understudy
This work examines the possibility of using wind power energy for electricity generation at optimum conditions and a simulation network for IEEE 3 buses. A MATLAB program was used to analyze the system; they allow comparison with different design options.
The proposed technique is performed and verified on the IEEE busbar network for three buses system. The power system network construction is indicated in Figure 1.
3.1. Modelling of Wind Power
The Wind Power depends on :
• amount of air (volume);
• speed of air (velocity);
• mass of air (density) A.
flowing through the area of interest (flux).
The Kinetic Energy definition as:
Figure 1. The IEEE 3 bus system.
The Power is K.E. per unit time :
where is the mass flux and given by:
Fluid mechanics gives the mass flow rate,
where ρ is the air density.
• Therefore, the power proportional to air density, rotor swept area and the velocity cube.
3.2. Efficiency in Extracting Wind Power (Betz Limit & Power Coefficient)
Power Coefficient, Cp, is the ratio of power extracted by the turbine to the total contained in the wind resource ,
• Turbine power output,
The Betz Limit is the maximal possible Cp = 16/27. Thus, 59% efficiency is the BEST a conventional wind turbine can do in extracting power from the wind .
3.3. Power Curve of Wind Turbine
Capacity Factor (C.F.): The fraction of the year the turbine generator is operating at rated (peak) power .
C.F. is based on both the characteristics of the turbine and the site characteristics (typically 0.3 or above for a good site) ENERCON wind energy converters run with a particular storm control feature. An E-82 ENERCON wind energy converters as D.G. with 2.05 MW rated power. Figure 2 illustrates Power-Wind
Figure 2. Power-wind speed characteristics .
speed characteristics for 2.05 MW/E-82 ENERCON wind energy converters, while Figure 3 shows the characteristics of Power Coefficient-Wind speed for its   .
3.4. Selection Particles of APSO
In this work, the particle selected in each technique as the voltage magnitude at slack bus and each P|V| generation bus also taps changing transformer ratio and the injected reactive power to the system. There are three particles: (|V1|, |V2|, and |V3|) no tap changing transformer ratio and no injected reactive power at buses. When the optimization development process begins, each particle position will continuously update until they reach the stop criteria. The minimum inertia weight is selected as 0.45, and the maximum weight limitations are chosen as 0.95. With continuous repetition, the weight value will drop from 0.95 to 0.45.
4. Smart Grids with a Scada System
This section imparts a general practical knowledge of smart grids with the SCADA system applied in this paper. Providing shifts in household consumption away from peak load periods and running flexible applications such as air conditioning directly by power supply companies outside peak load periods. The main equipment used in this work as:
1) Fundamentals of electrical engineering;
2) Complex A.C. technology;
3) Three-phase technology;
4) Measurement technology;
5) Power transmission;
6) Line protection;
7) Power distribution;
8) Power management.
A three-phase power with conductor currents of up to 3 × 5 A can be conveyed, measured, and switched via the double busbar model. Also, the board is a
Figure 3. Power coefficient-wind speed characteristics .
branch/connector, which can be turned on and off via isolators. The subsequent circuit breaker also has a three-phase design and switches the outgoing and incoming power feeders on and off and change busbars.
The isolators and circuit breakers are controlled manually using pushbuttons or using a remote switching device (e.g., PLC, protective relay) via a control input. In addition, the isolators and circuit breakers are equipped with an auxiliary contact via which indicator lights and other signaling devices can be switched. LEDs indicate the switching status. Overcurrent is also indicated by an LED and opens the switches.
Certain switching combinations are interlocked more on this later. Incorrect operations of this kind are signaled visually and acoustically by the models.
Switching can be performed in three different ways:
1) Manually on the device using on/off buttons.
2) Via digital control voltage inputs (max. 30 V DC).
3) Via Ethernet using SCADA system Designer/Viewer.
The modules can be interconnected via the RS485 port and operated via SCADA system Viewer/Designer.
4.1. SCADA Connection Hardware
Before using the SCADA system for the first time, we should make a one-time hardware connection for mutual communication. In some cases, the various devices are connected via different interfaces to the P.C. The configuration for each type of connection is described in the corresponding section of this topic.
4.2. Connection via Ethernet
The following installation instructions explain how to connect devices to the SCADA system via Ethernet. This is important when using a SCADA control computer with network access, the double busbars CO3301-5R/CO3301-5S, and other supported equipment such as the power quality meter CO5127-1S the human-machine interface (HMI) CO3301-5L.
To establish a structured hierarchy of I.P. addresses assigned to each Tableor set of equipment. This makes subsequent setting up much easier.
4.3. Configuration of IP Address for Scada Control Computer
For the I.P. address of the P.C. could use 192.168.168.1, for example, as in Figure 4, with a subnet mask of 255.255.255.0, in this network, then have the addresses 192.168.168.1 to 192.168.168.254 (excluding the P.C.’s I.P. address) available for other equipment.
The SCADA Viewer/Designer now searches the double busbars using all the ports on the computer. The computer and the device to be connected do not have to be configured for a common sub-network, as shown in Figure 5, control of double busbars via SCADA, details of busbars via SCADA.
Figure 4. Assigning a fixed I.P. address.
Figure 5. Details of busbars via SCADA system.
Control panel for isolator Q1;
Control panel for isolator Q2;
Control panel for circuit breaker Q3;
Ethernet connections for measurement and control;
0 V control voltage connection (not a neutral conductor!);
400 V incoming/outgoing busbar feeder.
4.4. Configuration of the SCADA Interface
This work setup permits any required combination of energy sources and consumers to study smart grids’ basic relationships. The voltages and currents are evaluated using the SCADA for Power Lab software converter. Figure 6 shows a basic setup of the ESG 1.1 training station.
5. Simulation Results and Discussion
The practical work is to select the optimum location of the distribution generator on the power system. A three-bus system tested using the Supervisory Control and Data Acquisition (SCADA) program to compare APSO results. The algorithm is done by using APSO by MATLAB.
A three-bus test system was applied to test the optimum power flow and compare the APSO and hand calculation results. The test power system shown in Figure 1 contains three feeders, three generators, three transmission lines, two loads first one resistive, and the second load is inductive. The data of the power system is given in Tables 1-3 shows the load data. The per-unit values are
Figure 6. Basic setup of the ESG 1.1 training station.
Table 1. Bus data three bus test system used.
Table 2. Transmission line data three bus test system used.
Table 3. Load data three bus test system used.
based on 2338.26 VA and 249 V, so the base impedance and current are 24.633 Ω and 5.625 A, respectively.
5.1. Manual calculations
The manual calculation used Fast Decoupled Load Flow to calculate the voltage at each bus, power flow, and power losses in each line. The bus admittance is given as:
The current flow to bus 2 is 0.25A, and bus 3 is 0.46A, respectively.
The power mismatch,
So, the voltage after the first iteration:
After three iterations, the final results were the convergence of the value given in Table 4 for power losses in each branch for 3-busbar test system, and Table 5 shows the voltage profile for 3-busbar test system. The results in the tables show that they are almost close. Figure 7 shows a three-bus emulation system representation by SCADA, and Figure 8 shows a three-bus system result by SCADA for Line voltage and injected current at each busbar.
Table 4. Power losses in each branch.
Table 5. Voltage profile for 3-busbar system.
Figure 7. A three bus emulation system representation by SCADA system.
(a) (b) (c) (d) (e)
Figure 8. A three-bus system results in SCADA system. (a) Line voltage and injected current at bus 1; (b) Line voltage and injected current on bus 2; (c) Line voltage and injected current on bus 3; (d) and (e) meter measurements.
5.2. Three Bus Test System
The performance of the proposed method is verified on the three bus systems. In addition, the MATLAB code for the power dispatch without and with adding new D.G. has been run. The optimization process’s stopping criteria are set as the iteration number reaching 200 iterations to give the particles enough opportunities to reach the global minimum. The size of the swarm is 50. The initial weight inertia is set to 0.9, and the final weight inertia is set to 0.4. As the iterations go on, the weight value will drop from 0.9 to 0.4. When the optimization process begins, each particle’s position will be continuously updated until they reach the stopping criteria.
The results show that the minimum losses occurred when the D.G. was installed at bus no.3; it is given 15.944 MW when used the APSO technique. From this Table, we can learn that the real power loss can be reduced by 10.47%; after adding a new D.G. to the system and using the APSO algorithm to further adjust the control variables’ values, the real power loss can be reduced by as much as 14.42%. A comparison of the loss reduction when D.G. is installed, the results also show that the losses result in each line, and the total losses for the system are close for both techniques. The losses after adding D.G. are less than the losses before installed D.G., so the power losses are modified in each line and the system due to installing a wind generator at the optimum location of bus no. 3. The voltage magnitude and the angle are modified after installed the wind turbine at the optimum location.
Figure 9 shows the power losses when installing the wind generator located in a different bus position. Then it shows the minimum power, where when used the APSO technique, the minimum power accord when the D.G. located at bus three and the power losses of 15.944 MW. Finally, a comparison of the loss reduction when D.G. is installed on different buses is presented in Figure 10 using APSO techniques.
Figure 9. Active power losses when using the APSO technique when location D.G. at different busses.
The voltage profile was evaluated using The Fast-Decoupled Load Flow (FDLF) method and then calculated the system’s real power loss. After that, put wind generators at each bus to evaluate the total corresponding real power losses to obtain the D.G.’s optimal location when the total loss accord. The proposed approach is based on the APSO technique and aims to identify the load’s position and compare the results with the applied standard PSO technique.
Figure 11 shows the magnitude voltage profile for different cases for APSO techniques without D.G. It compares it without optimization, and the figure illustrates the voltage magnitude improved when using optimization. As shown in Figure 12, the angle profile improved where the angle changed from −9˚ the −7.2˚ when optimization was used. In addition, the voltage magnitude and angle improved when a wind generator was installed, as shown in Figure 13 and Figure 14, respectively.
Figure 10. Percentage of active power losses reduction.
Figure 11. Voltage magnitude profile without and with optimization and without a wind turbine.
Figure 12. Voltage angle profile without and with optimization and without a wind turbine.
Figure 13. Voltage magnitude profile wind turbine.
Figure 14. Voltage angle profile with wind turbine.
Based on the analysis and results presented in this work, the following conclusions are drawn: The comparison between two techniques is used to identification of an optimum location by using standard particle swarm optimization Technique and accelerated particle swarm optimization Technique, and the obtained results explain the affiant the APSO method when taking the consideration of iteration number, fast of execution time, reducing power losses, improve the power losses on the transmission line and improve the power flow, and improve the magnitude and angle voltage profile. A better efficiency than standard low speed wind turbines is achieved using a wind turbine. There are no ends to the development of wind turbines: Global research initiatives are underway with wind turbines of diverse capacities. The energy mix of the future cannot be anticipated properly because of the diversity of energy sources available. However, regenerative energy sources are certain to rise in importance, especially wind, and will probably substitute for fossil fuels such as coal and gas in the long term. Nevertheless, in the future, long-term energy-mix policies, which incorporate not only the environment but also economic and reliable supply, will not be enough for regenerative energy alone.
 Rahman, I., Vasant, P., Singh, B. and Abdullah, M. (2016) On the Performance of Accelerated Particle Swarm Optimization for Charging Plug-In Hybrid Electric Vehicles. Alexandria Engineering Journal, 55, 419-426.
 Zhou, W.C., Lou, Z., Lu, L. and Yang, H. (2010) Current Status of Research on the Optimum Sizing of Standalone Hybrid Solar-Wind Power Generation Systems. Applied Energy, 87, 380-389.
 Okundamiya, M.S., Emagbetere, J.O. and Ogujor, E.A. (2014) Design and Control Strategy for a Hybrid Green Energy System for Mobile Telecommunication Sites. Journal of Power Sources, 257, 335-343.
 Okundamiya, M.S. and Nzeako, A.N. (2013) Model for Optimal Sizing of a Wind Energy Conversion System for Green-Mobile Applications. International Journal of Green Energy, 10, 205-218.
 Okundamiya, M.S. and Omorogiuwa, O. (2016) Analysis of an Isolated Micro-Grid for Nigerian. Terrain 2016 IEEE 59th International Midwest Symposium on Circuits and Systems (MWSCAS), Abu Dhabi, 16-19 October 2016.
 Ilyas, M., Tanweer, S.M. and Rahman, A. (2013) Optimal Placement of Distributed Generation on Radial Distribution System for Loss Minimisation & Improvement of Voltage Profile. International Journal of Modern Engineering Research (IJMER), 3, 2296-2312.
 Shivarudraswam, R., Gaonkar, D.N. and Jayalakshmi, N.S. (2016) GA Based Optimal Location and Size of the Distributed Generators in Distribution System for Different Load Conditions. 1st IEEE International Conference on Power Electronics, Intelligent Control and Energy Systems (ICPEICES), Delhi, 4-6 July 2016.
 Sri Kumar, K. (2019) Optimal Size & Location of Distributed Generation Using Bird Swarm Optimization with Cuckoo Search Sorting Algorithm. International Journal of Engineering and Advanced Technology, 8, 781-787.
 Liu, C.L., Bao, H. and Liu, H. (2011) Siting and Sizing of Distributed Generation Based on the Minimum Transmission Losses Cost. IEEE Power Engineering and Automation Conference, Wuhan, 8-9 September 2011.
 Suresh, M.C.V. and Belwin, E.J. (2018) Optimal DG Placement for Benefit Maximization in Distribution Networks by Using the Dragonfly Algorithm. Renewables: Wind, Water, and Solar, 5, Article No. 4.
 Ghatak, S.R. and Acharjee, P. (2016) Optimal Allocation of DG Using Exponential PSO with Reduced Search Space. Second International Conference on Computational Intelligence & Communication Technology (CICT), Ghaziabad, 12-13 February 2016.
 Castillo, H.D. and Saad, M. (2017) Optimal Location and Size for Various Renewable Distributed Generators in Distribution Networks. 2017 IEEE PES Innovative Smart Grid Technologies Conference—Latin America (ISGT Latin America), Quito, 20-22 September 2017.
 Asija, D., Soni, K.M., Sinha, S.K. and Yadav, V.K. (2016) Optimal Placement of Distributed Generator for Maximum Load Allowability and Reduced Losses Were Mitigating Congestion of the Transmission System. 2016 7th India International Conference on Power Electronics (IICPE), Patiala, 17-19 November 2016.
 Ali, W.H., Abood, S., Attia, J., Fuller, J. and Cofie, P. (2019) Microgrid Optimum Identification Location Using Standard and Accelerated Particle Swarm Optimization Techniques. London Journal of Engineering Research, 19.
 Digehsara, P.A., Chegini, S.N., Bagheri, A. and Roknsaraei, M.P. (2020) An Improved Particle Swarm Optimization Based on the Reinforcement of the Population Initialization Phase by Scrambled Halton Sequence. Cogent Engineering, 7, Article ID: 1737383.
 Al-Rubayi, R.H., Abd, M.K. and Flaih, F.M.F. (2020) A New Enhancement on PSO Algorithm for Combined Economic-Emission Load Dispatch Issues. International Journal of Intelligent Engineering and Systems, 13, 77-85.
 Wang, H. and Wang, Z.J. (2019) Multi-Objective Reactive Power Optimization Including Distributed Generation. Advances in Sciences and Engineering, 11, 46-52.
 Shiue, S.M., Huang, L.J., Tsai, W.H. and Chen, Y.-L. (2018) On Four Metaheuristic Applications to Speech Enhancement—Implementing Optimization Algorithms with MATLAB R2018a. Proceedings of the 30th Conference on Computational Linguistics and Speech Processing (ROCLING 2018), Hsinchu, October 2018, 266-275.
 Mahmoodian, V., Charkhgard, H. and Zhang, Y. (2019) Multi-Objective Optimization Based Algorithms for Solving Mixed Integer Linear Minimum Multiplicative Programs. Computers & Operations Research, 128, Article ID: 105178.
 Zhu, Y., Liu, X., Zhai, Y. and Deng, R. (2019) Monthly Unit Commitment Model and Algorithm with Renewable Energy Generation Considering System Reliability. Mathematical Problems in Engineering, 2019, Article ID: 3835296.
 Han, H., Hou, X., Yang, J., Wu, J., Su, M. and Guerrero, J.M. (2015) Review of Power-Sharing Control Strategies for Islanding Operation of A.C. Microgrids. IEEE Transactions on Smart Grid, 7, 200-215.