top of page

UPQC for Power Quality Mitigation Using an Ant Colony Based Fuzzy Control Technique

1 day ago
8 min read

UPQC for Power Quality Mitigation Using an Ant Colony Based Fuzzy Control Technique


𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧


Power quality problems such as voltage sag, voltage swell, current harmonics, and distorted load currents can significantly affect the performance of electrical systems. A Unified Power Quality Conditioner (UPQC) provides an effective solution by combining series and shunt active power filters within a single compensation system.


UPQC for Power Quality Mitigation Using an Ant Colony Based Fuzzy Control Technique

UPQC for Power Quality Mitigation Using an Ant Colony Based Fuzzy Control
₹8,000.00₹4,000.00
Buy Now


This MATLAB/Simulink implementation demonstrates a 𝐔𝐏𝐐𝐂 with an 𝐀𝐧𝐭 𝐂𝐨𝐥𝐨𝐧𝐲 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 optimized fuzzy controller for improving voltage and current quality.

The system is designed to:

  • Compensate voltage sag and voltage swell.

  • Reduce grid-current harmonic distortion.

  • Maintain the load voltage close to 1 per unit.

  • Regulate the common DC-link voltage.

  • Improve the performance of the fuzzy controller through optimization.

  • Automatically identify suitable fuzzy-controller tuning parameters.

  • Improve the overall power quality at the source and load sides.


𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰


The MATLAB/Simulink model consists of the following major sections:

  • Programmable three-phase grid source.

  • Nonlinear electrical load.

  • Series Active Power Filter.

  • Shunt Active Power Filter.

  • Common DC-link capacitor.

  • Coupling transformer.

  • Fuzzy logic controller.

  • Ant Colony Optimization algorithm.

  • Power-quality and controller-performance measurement blocks.

Main System Configuration

Parameter / Component

Description

Grid

Programmable three-phase source

Grid disturbance

Voltage sag and voltage swell

Load

Three-phase rectifier with RL load

Initial nonlinear-load THD

Approximately 22.24%

Compensation device

UPQC

Series compensation

Series Active Power Filter

Shunt compensation

Shunt Active Power Filter

Energy interface

Common DC-link capacitor

Controller

Fuzzy-based control

Optimization method

Ant Colony Optimization

Final grid-current THD

Approximately 2.44%

The nonlinear load introduces considerable harmonic distortion. The UPQC compensates these disturbances through coordinated operation of its series and shunt converters.

𝐔𝐏𝐐𝐂 𝐂𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧

A UPQC combines two active filtering systems.

1. Series Active Power Filter

The 𝐬𝐞𝐫𝐢𝐞𝐬 𝐀𝐏𝐅 is connected in series with the electrical network through a transformer.

Its primary functions are:

  • Voltage sag compensation.

  • Voltage swell compensation.

  • Maintaining the load-side voltage.

  • Injecting the required compensating voltage.

  • Protecting the load from supply-side voltage disturbances.

When the source voltage experiences sag or swell, the series APF injects an appropriate compensating voltage so that the load voltage remains nearly constant.

2. Shunt Active Power Filter

The 𝐬𝐡𝐮𝐧𝐭 𝐀𝐏𝐅 is connected in parallel with the electrical system.

Its major functions include:

  • Current harmonic compensation.

  • DC-link voltage regulation.

  • Improving source-current waveform quality.

  • Supporting coordinated UPQC operation.

The shunt converter helps convert the distorted source current into a more sinusoidal waveform.

3. Common DC-Link Capacitor

Both converters are connected through a common DC-link capacitor.

The DC link:

  • Provides energy exchange between the series and shunt converters.

  • Supports voltage compensation.

  • Helps maintain stable UPQC operation.

  • Acts as the common energy-storage element of the two active filters.


𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬


The complete operation can be understood in a few steps.

Step 1 – Generate Power Quality Disturbances

The programmable grid source is configured to introduce:

  • Voltage sag.

  • Voltage swell.

These disturbances are used to evaluate the UPQC compensation capability.

Step 2 – Connect the Nonlinear Load

A three-phase rectifier with RL load is connected to the system.

The nonlinear load produces significant harmonic distortion, with the indicated THD around:

22.24%

Step 3 – Measure the Required System Variables

Important system quantities are monitored, including:

  • Grid voltage.

  • Load voltage.

  • Injected series voltage.

  • Grid current.

  • DC-link voltage.

  • Current THD.

  • Controller error-performance indices.

Step 4 – Generate the Control Error

The reference quantity is compared with the actual measured quantity.

The resulting control error is processed by the fuzzy control structure.

Step 5 – Fuzzy Controller Generates the Control Signal

The fuzzy controller processes the system error information and generates the required controller output.

Step 6 – Ant Colony Optimization Tunes the Controller

Ant Colony Optimization searches for improved values of the fuzzy-controller parameters.

Step 7 – Apply the Optimized Parameters

After optimization, the best parameter values are transferred to the Simulink controller.

Step 8 – Perform Final Simulation

The model is simulated using the optimized fuzzy-controller parameters to evaluate:

  • Voltage compensation.

  • Current waveform quality.

  • THD reduction.

  • Overall UPQC performance.


𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲


The UPQC uses an optimized fuzzy control approach for improving compensation performance.

Fuzzy PID-Based Control

The developed fuzzy control structure contains:

  • A fuzzy proportional-derivative control section.

  • An integral-control section.

  • Input scaling factors.

  • Output scaling factor.

  • Tunable fuzzy membership-function parameters.

  • Tunable rule-related parameters.

The proportional-derivative fuzzy section handles the dynamic response, while the integral action contributes to reducing steady-state error.

𝐅𝐮𝐳𝐳𝐲 𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐒𝐜𝐚𝐥𝐢𝐧𝐠 𝐅𝐚𝐜𝐭𝐨𝐫𝐬

The controller contains scaling factors such as:

  • 𝐊𝐞 – associated with controller input scaling.

  • 𝐊𝐜𝐞 – associated with change-of-error scaling.

  • 𝐊𝐮 – associated with controller output scaling.

These parameters significantly influence the dynamic response of the fuzzy controller.

Instead of manually selecting them, Ant Colony Optimization is used to search for better parameter combinations.

𝐌𝐞𝐦𝐛𝐞𝐫𝐬𝐡𝐢𝐩 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧

The fuzzy logic system contains input membership functions with tunable parameters.

The optimization algorithm adjusts these parameters to obtain improved controller performance.

The optimization process can therefore modify:

  • Input scaling factors.

  • Output scaling factors.

  • Membership-function parameters.

  • Rule-related tuning parameters.

A total of 𝐬𝐢𝐱 𝐭𝐮𝐧𝐚𝐛𝐥𝐞 𝐩𝐚𝐫𝐚𝐦𝐞𝐭𝐞𝐫𝐬 are considered in the demonstrated optimization routine.

𝐀𝐧𝐭 𝐂𝐨𝐥𝐨𝐧𝐲 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧

Ant Colony Optimization is used to determine an improved set of fuzzy-controller parameters.

The optimization routine repeatedly:

  1. Generates candidate controller parameters.

  2. Updates the fuzzy logic system.

  3. Runs the power-system simulation.

  4. Measures system performance.

  5. Calculates the optimization cost.

  6. Compares the obtained result with previous solutions.

  7. Retains improved parameter combinations.

  8. Continues the search over additional iterations.

At the end of the optimization, the best identified parameter set is used in the UPQC controller.


𝐎𝐛𝐣𝐞𝐜𝐭𝐢𝐯𝐞 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬


Several performance measurements are incorporated into the controller optimization.

Performance Index

Purpose

Grid-current THD

Evaluates harmonic distortion

IAE

Evaluates accumulated absolute control error

ITAE

Gives additional importance to errors that persist with time

ISE

Emphasizes larger control errors

RMSE

Measures overall magnitude of the control error

Using multiple performance indicators allows the optimization routine to consider both:

  • Power-quality improvement.

  • Dynamic controller performance.


𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧 𝐒𝐞𝐭𝐭𝐢𝐧𝐠𝐬


The demonstration uses a reduced optimization run so that the tuning process can be observed quickly.

Optimization Item

Value / Information

Demonstration iterations

10

Tunable fuzzy parameters

6

Practical longer iteration examples mentioned

100 or 500 iterations

Suggested repeated optimization trials

50 or 100 trials

Main optimization target

Fuzzy controller performance

Power-quality metric

Grid-current THD

The 10-iteration case is mainly used to demonstrate the optimization procedure.

For a more extensive search, a larger number of iterations and repeated trials can be used to identify a stronger final parameter set.

𝐏𝐞𝐫𝐟𝐨𝐫𝐦𝐚𝐧𝐜𝐞 𝐄𝐯𝐚𝐥𝐮𝐚𝐭𝐢𝐨𝐧

During each optimization iteration, the algorithm generates:

  • Best cost value.

  • Improved fuzzy parameters.

  • Variation of the optimization objective.

  • Updated controller-performance indices.

The optimization progress can be observed with respect to iteration number.

As the search progresses, improved candidate solutions are identified and retained.

𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬

After completing the Ant Colony Optimization process, the final optimized values are applied to the fuzzy controller.

1. Voltage Sag Compensation

When a voltage sag occurs:

  • The series APF generates a compensating voltage.

  • The required voltage is injected into the system.

  • The load voltage remains close to its desired value.

2. Voltage Swell Compensation

During voltage swell:

  • The series converter produces the necessary compensation.

  • Excessive source-voltage variation is prevented from appearing across the load.

  • The load-side voltage remains regulated.

3. Load Voltage Performance

Despite source-voltage disturbances, the load voltage is maintained at approximately:

1 per unit

This demonstrates the voltage-compensation capability of the UPQC.

4. Grid Current Improvement

Before compensation, the nonlinear load causes substantial current distortion.

After UPQC compensation:

  • The input current becomes much more sinusoidal.

  • Harmonic content is significantly reduced.

  • Source-side current quality is improved.

5. THD Reduction

A major performance improvement is observed in current harmonic distortion.

Condition

THD

Nonlinear-load condition indicated in the model

22.24%

Grid current after optimized UPQC compensation

2.44%

Common power-quality reference limit mentioned

Below 5%

The achieved THD of approximately 𝐵𝐨𝐥𝐝 2.44% is below 5%, demonstrating effective harmonic mitigation.

𝐊𝐞𝐲 𝐑𝐞𝐬𝐮𝐥𝐭𝐬 𝐚𝐭 𝐚 𝐆𝐥𝐚𝐧𝐜𝐞

  • Voltage sag is effectively compensated.

  • Voltage swell is effectively compensated.

  • Load voltage remains close to 1 p.u.

  • Distorted grid current becomes substantially more sinusoidal.

  • Current THD is reduced to approximately 2.44%.

  • Fuzzy control parameters are automatically tuned using Ant Colony Optimization.

  • Multiple error indices are considered during optimization.

  • Series and shunt compensation operate through a common DC link.

𝐖𝐡𝐲 𝐔𝐬𝐞 𝐀𝐧𝐭 𝐂𝐨𝐥𝐨𝐧𝐲 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐚𝐭𝐢𝐨𝐧?

Manual tuning of fuzzy-controller parameters can require substantial trial and error.

Ant Colony Optimization provides a systematic search mechanism for determining improved parameters.

Its role in this implementation includes:

  • Searching fuzzy scaling factors.

  • Tuning membership-function parameters.

  • Adjusting rule-related parameters.

  • Minimizing controller error indices.

  • Reducing current harmonic distortion.

  • Improving overall UPQC response.

The result is a hybrid intelligent controller combining the adaptive characteristics of fuzzy logic with an optimization-based tuning mechanism.


𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬


  • MATLAB/Simulink-based UPQC implementation.

  • Series and shunt active power filtering.

  • Common DC-link configuration.

  • Programmable grid disturbances.

  • Voltage sag mitigation.

  • Voltage swell mitigation.

  • Harmonic-current compensation.

  • Fuzzy PID-based control.

  • Ant Colony Optimization-based parameter tuning.

  • Six fuzzy-control tuning parameters.

  • THD-based performance evaluation.

  • IAE-based performance assessment.

  • ITAE-based performance assessment.

  • ISE-based performance assessment.

  • RMSE-based performance assessment.

  • Optimization cost monitoring with iteration.

  • Final THD of approximately 2.44%.

  • Load-voltage regulation near 1 p.u.


𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬


This UPQC control approach is useful for studying power-quality improvement in systems containing:

  • Industrial nonlinear loads.

  • Rectifier-based loads.

  • Distribution networks.

  • Sensitive electrical loads.

  • Power-electronic loads.

  • Grid-connected converter systems.

  • Renewable-energy interfacing systems.

  • Electrical systems affected by voltage sag and swell.

  • Networks requiring harmonic-current compensation.

  • Intelligent active power-filter control.


𝐁𝐞𝐧𝐞𝐟𝐢𝐭𝐬 𝐨𝐟 𝐭𝐡𝐞 𝐏𝐫𝐨𝐩𝐨𝐬𝐞𝐝 𝐂𝐨𝐧𝐭𝐫𝐨𝐥


Better Harmonic Performance

The grid-current THD is reduced from a heavily distorted condition to approximately 2.44%.

Voltage Disturbance Compensation

Series compensation allows the load to receive an approximately constant voltage during sag and swell conditions.

Intelligent Parameter Tuning

Ant Colony Optimization reduces dependence on manual fuzzy-controller tuning.

Multiple Performance Criteria

The optimization does not rely on only one error measure. THD, IAE, ITAE, ISE, and RMSE are included in the performance assessment.

Improved Source Current

The compensated source current becomes significantly more sinusoidal.

Flexible Controller Design

Fuzzy-controller scaling, membership, and rule-related parameters can be included in the optimization process.


𝐖𝐡𝐚𝐭 𝐒𝐭𝐮𝐝𝐞𝐧𝐭𝐬 𝐚𝐧𝐝 𝐑𝐞𝐬𝐞𝐚𝐫𝐜𝐡𝐞𝐫𝐬 𝐂𝐚𝐧 𝐋𝐞𝐚𝐫𝐧


This simulation provides a practical understanding of:

  • UPQC architecture.

  • Series active filtering.

  • Shunt active filtering.

  • DC-link voltage control.

  • Fuzzy logic control.

  • Fuzzy PID implementation.

  • Controller scaling-factor tuning.

  • Membership-function optimization.

  • Metaheuristic optimization.

  • Harmonic analysis.

  • Voltage sag and swell compensation.

  • Multi-objective controller-performance evaluation.

  • MATLAB/Simulink integration with an optimization algorithm.


𝐅𝐫𝐞𝐪𝐮𝐞𝐧𝐭𝐥𝐲 𝐀𝐬𝐤𝐞𝐝 𝐐𝐮𝐞𝐬𝐭𝐢𝐨𝐧𝐬


What is the main purpose of the UPQC?

The UPQC is used to improve both voltage and current power quality. Its series converter compensates voltage disturbances, while its shunt converter mainly supports harmonic-current compensation and DC-link regulation.

What type of load is used?

The demonstrated system contains a three-phase rectifier with an RL load, representing a nonlinear load.

What is the nonlinear-load THD?

The model indicates approximately 22.24% THD for the nonlinear-load condition.

Why is fuzzy logic used?

Fuzzy logic provides flexible nonlinear control without requiring an exact mathematical model of every operating condition.

Why is Ant Colony Optimization added?

It automatically searches for improved fuzzy-controller tuning parameters rather than depending entirely on manual adjustment.

How many parameters are optimized?

The demonstrated cost-function implementation considers six tunable parameters.

How many iterations are demonstrated?

The shown optimization example uses 10 iterations to demonstrate the procedure.

What THD is obtained after compensation?

The final grid-current THD is approximately 2.44%.

What happens during voltage sag and swell?

The series active filter injects a compensating voltage so that the load voltage remains close to 1 p.u.


𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧


The MATLAB simulation demonstrates an effective 𝐔𝐏𝐐𝐂 𝐩𝐨𝐰𝐞𝐫 𝐪𝐮𝐚𝐥𝐢𝐭𝐲 𝐦𝐢𝐭𝐢𝐠𝐚𝐭𝐢𝐨𝐧 system using an Ant Colony Optimized fuzzy control technique.

The combination of a series active filter, shunt active filter, common DC link, fuzzy control, and optimization provides simultaneous mitigation of voltage and current disturbances.

The simulation demonstrates that:

  • Voltage sag and swell can be compensated successfully.

  • The load voltage can be maintained near 1 p.u.

  • The grid current becomes more sinusoidal.

  • Current THD can be reduced to approximately 2.44%.

  • Ant Colony Optimization can effectively tune important fuzzy-controller parameters.

This makes the control structure useful for students, researchers, and engineers studying intelligent control, UPQC operation, active power filtering, harmonic mitigation, and MATLAB/Simulink-based power-quality analysis.


Comments


bottom of page