PSO Tuned PI Controlled STATCOM for Voltage Regulation
PSO Tuned PI Controlled STATCOM for Voltage Regulation
𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧
⚡ Improve Power Quality and Voltage Stability Using PSO-Based PI Control in MATLAB/Simulink!
Voltage fluctuations are a major concern in modern electrical power systems. Voltage sag, voltage swell, and sudden load variations can affect power quality and the reliable operation of electrical equipment.

The 𝐏𝐒𝐎 𝐓𝐮𝐧𝐞𝐝 𝐏𝐈 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐝 𝐒𝐓𝐀𝐓𝐂𝐎𝐌 model uses Particle Swarm Optimization (PSO) to optimize AC and DC voltage controllers for improved voltage regulation.
Developed using MATLAB/Simulink, this system demonstrates how a Static Synchronous Compensator (STATCOM) helps maintain a nearly constant load voltage during grid voltage disturbances.
𝐌𝐚𝐢𝐧 𝐎𝐛𝐣𝐞𝐜𝐭𝐢𝐯𝐞𝐬
✅ Maintain the load voltage close to 1 per unit (p.u.).
✅ Mitigate voltage sag and voltage swell.
✅ Optimize PI controller gains using PSO.
✅ Regulate AC voltage and DC-link capacitor voltage.
✅ Improve voltage stability under varying operating conditions.
✅ Analyze STATCOM voltage, current, and dynamic responses.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰
The proposed configuration consists of a 15 kV electrical power system connected to transmission feeders, fixed loads, variable loads, and a STATCOM.
The STATCOM is connected through coupling transformers and uses voltage-source converters (VSCs) to regulate the system voltage.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬
Parameter | Specification |
Simulation software | MATLAB/Simulink |
Grid voltage | 15 kV |
Operating frequency | 60 Hz |
Main feeder length | 21 km |
Secondary feeder length | 2 km |
Main fixed load | 3 MW |
Main load reactive power | 0.2 MVAr |
Distribution voltage | 600 V |
Additional fixed load | 1 MW |
Variable load | Time-controlled |
Compensation device | STATCOM |
Converter configuration | Average-model VSCs |
Control technique | PSO-tuned PI controller |
Load voltage reference | 1 p.u. |
DC-link voltage | Approximately 2400 V |
Optimization variables | 4 |
PSO population size | 100 |
Maximum PSO iterations | 10 |
Simulation observation period | 1 second |
𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬
The STATCOM operates by continuously monitoring electrical quantities and adjusting its converter reference voltage.
15 kV Electrical Grid
Transmission Feeders and Loads
STATCOM Voltage and Current Measurement
PSO-Tuned AC and DC PI Controllers
Current Controller and VSC Reference Generation
Load Voltage Regulation
𝐒𝐭𝐞𝐩-𝐛𝐲-𝐒𝐭𝐞𝐩 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧
1. Grid voltage measurement: The controller monitors the electrical voltage profile and detects voltage disturbances.
2. AC voltage regulation: The measured AC voltage is compared with the reference voltage to calculate the voltage error.
3. DC-link voltage regulation: The capacitor voltage is compared with its reference value to maintain DC-link stability.
4. PSO-based PI tuning: Particle Swarm Optimization determines suitable proportional and integral gains for both voltage regulators.
5. Current control: The generated d-axis and q-axis current references are processed by the current controller.
6. VSC control: The controller produces three-phase voltage references for the STATCOM converters.
7. Voltage compensation: The STATCOM adjusts its electrical output to support load voltage regulation during system disturbances.
𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲
The control system combines conventional PI control with the optimization capability of the PSO algorithm.
1. 𝐀𝐂 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫
The AC voltage regulator is responsible for maintaining the required AC voltage level.
Measures the actual AC voltage.
Compares it with the reference voltage.
Calculates the voltage error.
Uses a PI controller to generate the q-axis current reference.
Supports voltage regulation during sag and swell conditions.
Target: Maintain the load voltage close to 1 p.u.
2. 𝐃𝐂 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫
The DC voltage controller maintains the DC-link capacitor voltage.
Measures the DC-link voltage.
Compares it with the desired reference.
Processes the voltage error through a PI controller.
Generates the d-axis current reference.
Helps maintain stable STATCOM converter operation.
Target: Regulate the DC-link voltage around its reference value of approximately 2400 V.
3. 𝐏𝐚𝐫𝐭𝐢𝐜𝐥𝐞 𝐒𝐰𝐚𝐫𝐦 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 (𝐏𝐒𝐎)
PSO is used to determine appropriate PI gains instead of relying entirely on manual tuning.
The optimization considers four controller parameters:
Decision variable | Controller parameter |
1 | AC voltage controller Kp |
2 | AC voltage controller Ki |
3 | DC voltage controller Kp |
4 | DC voltage controller Ki |
𝐏𝐒𝐎 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐜𝐞𝐬𝐬
Initialize a population of candidate controller gains.
Evaluate the AC and DC voltage regulation errors.
Calculate the objective function based on absolute voltage errors.
Identify individual and global best solutions.
Update the particle velocities and positions.
Repeat the process for the specified iterations.
Obtain the optimized PI controller gains.
Apply the optimized gains to the STATCOM Simulink model.
The main objective is to minimize the AC and DC voltage errors, improving controller performance for the simulated system.
𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬
The MATLAB/Simulink model is evaluated under voltage fluctuations and load operating conditions.
1. 𝐆𝐫𝐢𝐝 𝐚𝐧𝐝 𝐋𝐨𝐚𝐝 𝐕𝐨𝐥𝐭𝐚𝐠𝐞
The grid voltage undergoes sag and swell disturbances.
The STATCOM responds to variations in source voltage.
The regulated load voltage remains close to 1 p.u., with small transient deviations.
The results illustrate the voltage support provided by the STATCOM.
2. 𝐃𝐂-𝐋𝐢𝐧𝐤 𝐕𝐨𝐥𝐭𝐚𝐠𝐞
The DC-link capacitor voltage is regulated around 2400 V after the initial transient.
The DC voltage PI regulator helps limit capacitor voltage fluctuations.
The resulting response demonstrates DC-link regulation under the simulated operating conditions.
3. 𝐒𝐓𝐀𝐓𝐂𝐎𝐌 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐚𝐧𝐝 𝐂𝐮𝐫𝐫𝐞𝐧𝐭
STATCOM voltage and current waveforms change during voltage disturbances.
The converter output responds to compensation requirements.
The controller adjusts the converter reference to support the AC system.
𝐎𝐛𝐬𝐞𝐫𝐯𝐞𝐝 𝐑𝐞𝐬𝐮𝐥𝐭𝐬
Performance parameter | Observed response |
Source voltage | Sag and swell variations |
Load voltage | Regulated near 1 p.u. |
DC-link voltage | Approximately 2400 V |
AC controller | Voltage error regulation |
DC controller | Capacitor voltage regulation |
STATCOM current | Changes with compensation demand |
Optimization | PSO-based selection of PI gains |
Overall response | Improved voltage regulation |
These observations demonstrate the model's voltage-regulation behavior. A numerical comparison of THD, settling time, or performance against conventional untuned PI control is not established by the presented results.
𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬
⚡ PSO-Optimized PI Control: Automatic tuning of AC and DC voltage controller parameters.
🔋 DC-Link Voltage Regulation: Maintains capacitor voltage near the reference level.
📉 Voltage Sag Mitigation: Supports load voltage during supply voltage reductions.
📈 Voltage Swell Mitigation: Compensates for increases in source voltage.
🔄 Dynamic STATCOM Compensation: Adjusts converter operation according to system conditions.
🎯 Dual Voltage Control: Independent AC and DC voltage regulation loops.
💻 MATLAB/Simulink Implementation: Includes the electrical network, STATCOM, controllers, and optimization algorithm.
📊 Performance Analysis: Observes grid voltage, load voltage, DC-link voltage, and STATCOM current.
𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬
The PSO-tuned PI-controlled STATCOM approach is relevant to several power-system applications.
Application | Potential benefit |
Distribution networks | Improved voltage regulation |
Industrial power systems | Voltage support for sensitive loads |
Renewable energy integration | Compensation for voltage variations |
Smart grids | Dynamic reactive power compensation |
Transmission systems | Voltage stability support |
Power quality studies | Analysis of sag and swell mitigation |
Electrical control research | Evaluation of optimization-based PI controllers |
MATLAB/Simulink learning | Understanding STATCOM modeling and control |
𝐖𝐡𝐲 𝐔𝐬𝐞 𝐏𝐒𝐎 𝐟𝐨𝐫 𝐏𝐈 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐓𝐮𝐧𝐢𝐧𝐠?
Conventional PI controllers require suitable proportional and integral gains for effective voltage regulation.
Manual gain selection can be time-consuming, particularly when AC and DC voltage loops must operate together.
PSO offers an optimization-based approach that searches for suitable controller gains using a defined performance objective.
Conventional PI tuning | PSO-tuned PI control |
Gains selected manually or through standard tuning methods | Gains selected through numerical optimization |
May require repeated manual adjustment | Uses an iterative search process |
Performance depends on selected gains | Performance depends on optimized gains and objective function |
Relatively simple tuning process | Additional computational effort during optimization |
Suitable for standard control applications | Useful for multi-parameter controller tuning |
PSO tuning can improve controller performance, but the improvement must be established through comparative simulation or experimental evaluation.
𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧
The 𝐏𝐒𝐎 𝐓𝐮𝐧𝐞𝐝 𝐏𝐈 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐝 𝐒𝐓𝐀𝐓𝐂𝐎𝐌 demonstrates an optimization-based approach to AC and DC voltage regulation in electrical power systems.
By integrating Particle Swarm Optimization with PI voltage regulators, the system supports stable load voltage operation during grid voltage sag, swell, and changing load conditions.
The MATLAB/Simulink results illustrate load voltage regulation close to 1 p.u. and DC-link voltage regulation around 2400 V, highlighting the role of STATCOM compensation in improving voltage quality.
This simulation provides a useful reference for students, researchers, and power-system engineers interested in STATCOM control, PSO optimization, PI controller tuning, and voltage regulation using MATLAB/Simulink.



Comments