Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 5
Cover: PID & FOPID Metaheuristic Class #5: PID vs FOPID Optimization on DC Motor & AVR System
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 “Class PID & FOPID Metaheuristic #5: Optimization of PID vs FOPID on DC Motor & AVR System”.
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.
Here is the final result, the step response of the AVR with PID and FOPID optimized using Whale Optimization and Harris Hawks. Compared to Ziegler-Nichols, overshoot drops by 53%, and FOPI-2OA cuts ITAI more than half compared to the best PID. Let's start. Hello, welcome to episode five of the PID and Fractional Order PID optimization series. All materials are ready, system model, PID, FOPID, objective function, and 2 metaheuristics. Today we will combine them to find the best parameters for 2 plans, AVR generator and DC motor, then fairly compare PID with FOPID.
Create an optimization .py file. We prepare 2 plans along with the search parameter bounds. For AVR, KAP and KAI are between 0 and 2, KA da is between 0 and 1, the common bounds used in the literature to ensure the control signal is not excessive. DC motor needs much larger gain because its amplifier is only 0.1. FOPI is added with 2 parameters, lambda and MU between 0.5 and 1.5. The optimization function runs both algorithms for both controllers, with a population of 25 and 50 iterations. We run it for each plan, print ITAI, overshoot, settling time, and parameters, then save them to an optimization results .json file for use in the next episode.
Run. For AVR, PIDWOA and PIDHHO both achieve ITAI of 0.0390, both finding the same optimum. FOPI2OA achieves 0.0189 with a settling time of 0.54 seconds, almost twice as fast as PID, and FOPIDHHO 0.0251. For the DC motor, the story is different, PIDWOA 0.0085, slightly better than FOPIDWOA 0.0088, with lambda returning to 1. Let's look at the graphs.
For AVR, PID Ziegler Nichols jumps up to 1.5, while all the optimization results are much smoother. The FOPI curve rises the fastest and settles the earliest, with a slightly higher overshoot as the price. For the DC motor, the PID and FOPIDWOA curves are almost overlapping. This is an important lesson for research, FOPI excels in high-order oscillating plans like AVR. However, in simple second-order plans, PID is already sufficient, and the additional parameters actually complicate the search, as seen from FOPIDHHO being left behind.
Done. We have optimized PID and FOPID with VOA and HHO on AVR and DC motor, and found that the superiority of FOPID depends on the plan. But a single trial is not enough for a random algorithm. In the final episode, we test robustness and perform statistical analysis. Currently working on a thesis, dissertation, or research in the field of control systems and optimization? Cerdas Inovasi Digital helps implement control systems, from modeling DC motors and AVR generators, tuning PI using Ziegler-Nichols, fractional order PID, up to meta-heuristic optimization such as whale optimization and Harris-Hawks, as well as offering Python programming courses for electrical engineering. Want to master the entire series, from alias functions to statistical analysis and robustness testing? All six episodes, complete with PDF step-by-step guides and source code, are available to premium tutorial subscribers. Subscribe starting at Rp69.000 per month, save 28% with the 12-month package, or pay once Rp999.000 for lifetime access. Want just one class? Buy a single class with lifetime access. Subscribe now at the premium page cerdasinovasidigital.com. Contact us via WhatsApp, or visit cerdasinovasidigital.com. 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 →