Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 5
Cover: PSO-GWO Distributed Generation Optimization Class #5: Hybrid PSO-GWO for Distributed Generation Location & Sizing
Click a page or use ◀ ▶ to turn · swipe on mobile · to enlarge
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “PSO-GWO Distributed Generation Optimization Class #5: Hybrid PSO-GWO for Location & Size of Distributed Generation”.
Other ways we can help with Python.
Learn with a mentor
Scheduled Simulation & Engineering courses with live guidance and a certificate.

Course/Training Ansys ~ Heat Transfer and Heat Flux Analysis
★ 5.0 (10)

Course/Training MATLAB — MATLAB App Design: The Ultimate Guide to MATLAB Apps
★ 5.0 (10)

Course/Training Ansys — Airflow Simulation of a Car Radiator with ANSYS
★ 5.0 (9)
Have it built for you
No time to learn Python? Our team can do the project for you.

Matlab Development Service — Complete Neural Signal Processing and Analysis Zero to Hero
★ 5.0 (59)

Ansys Maxwell Development Service
★ 5.0 (50)

Petrel Development Service
★ 5.0 (14)
Get notified about new Python classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
This is the final result, the hybrid PSO-GWO algorithm finds the location and size of 3 DGs in under 1 second, at buses 14, 24, and 30. The power loss has dropped almost 65% and all voltages are now above the limit. Let's start. Hello, welcome to episode five of the Distributed Generation optimization series. PSO has a velocity memory that makes particles move smoothly, while Gray Wolf has three leaders that make the search more directed. The hybrid PSO-GWO from SYNC and SYNC 2017 combines both. Today we are writing and using it for the problem of placing 3 DGs.
We add the HAPSO-GUO function to the optimization .py file. The structure is like PSO, with velocity and its limits. The difference is that velocity is no longer pulled toward P-Best and G-Best, but rather toward the three positions directed by Alpha, Beta, and Delta as in G-WO, each with weights C0.5 and a random number. The inertia weight is randomly taken between 0.5 and 1 in each iteration. So particles inherit the momentum of PSO as well as the leadership of the wolf pack.
Create an optimization underscore file in G.py. We run the hybrid PSO-GUO with 30 agents and 100 iterations, meaning 3000 power flow runs, on the objective function from episode 3. Run. Completed in about half a second. The result is, at G in bus 14 around 740 kW, bus 24 around 1060 kW, and bus 30 around 1070 kW. The power loss drops from 202.7 to 71.5 kW, a drop of almost 65%, and the minimum voltage rises to 0.968 per unit. This result is the same as the best solution reported in many papers.
Let's take a look at the graph. The convergence curve decreases gradually, sometimes flattens, then drops again when the swarm finds a better bus combination. Voltage profile after DG, in orange, all above the 0.95 limit and the green line marks the location of the third DG, two at the ends of the branches with the lowest voltage, and one on the heavy load branch of bus 24.
Done. We have already written the hybrid PSO-GWO algorithm, optimized the location and size of 3 DGs on the IEEE 33 bus, and reduced the power loss by almost 65%. In the final episode, we fairly compared PSO, GWO, and the hybrid approach with 20 trials. Currently working on a thesis, dissertation, or research in the field of power systems and renewable energy? Cerdas Inovasi Digital helps implement power system optimization, From the backward-forward power flow sweep, placement and capacity of distributed generation, PSO Gray Wolf Optimizer, up to hybrid algorithms, and opening a Python programming course for electrical engineering. Want to master the entire series, from IEEE 33 bus data to algorithm comparison analysis? All 6 episodes, complete with a step-by-step PDF guide and source code, Available for premium tutorial subscribers. Subscribe starting at Rp69.000 per month, save 28% with 12-month package, Or pay once Rp999.000 for lifetime access. Thank you for watching, see you in the next episode.
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →