---
title: 'PSO-PID: Particle Swarm Optimized PID'
url: https://www.emergentmind.com/topics/particle-swarm-optimized-pid-pso-pid
type: topic
---

# PSO-PID: Particle Swarm Optimized PID

Searching arXiv for recent and foundational PSO-PID papers to ground the article.
arxiv_search(query="Particle Swarm Optimized PID controller tuning PSO PID", max_results=10, sort_by="relevance")
arxiv_search(query="Nonlinear PID Particle Swarm Optimization latent factorization PID arXiv 2025", max_results=10, sort_by="relevance")
arxiv_search(query="fractional order PID particle swarm optimization arXiv", max_results=10, sort_by="relevance")
Particle Swarm Optimized PID (PSO-PID) denotes a family of controller-synthesis and parameter-tuning schemes in which Particle Swarm Optimization (PSO) is used to determine the parameters of a proportional–integral–derivative controller or a PID-derived structure. In the surveyed literature, the tuned object may be a classical three-parameter PID, a fractional-order controller $PI^\lambda D^\delta$, a fuzzy-PID with additional scaling factors, a PID-type sliding surface, or a nonlinear PID error-reconstruction law embedded in a learning algorithm rather than a physical feedback loop. Across these variants, the recurring pattern is that PSO treats controller parameters as particle positions, evaluates each candidate by a task-specific fitness function, and iteratively updates the swarm through personal-best and global-best attractors until a stopping criterion is met [2509.19529], [0811.0083], [2504.13483].

## 1. Formal definition and canonical equations

In its classical control form, PSO-PID combines a standard PID control law with a population-based search over the gains. A representative continuous-time controller used in the literature is

$$
u(t)=K_p\,e(t)+K_i\int_0^t e(\tau)\,d\tau + K_d\frac{d\,e(t)}{dt},
$$

where $e(t)$ is the tracking error and $(K_p,K_i,K_d)$ are the proportional, integral, and derivative gains [2509.19529], [1610.00001]. In discrete-time robotic implementations, the same structure appears as

$$
u(t)=K_P\,e(t)+K_I\sum_{k=0}^{t} e(k)\,T_s + K_D\frac{e(t)-e(t-1)}{T_s},
$$

with $T_s=0.05\,\mathrm{s}$ in the reported UAV landing experiments [2309.13679].

The PSO component is likewise standardized at the level of swarm dynamics. For particle $i$ with position $x_i$ and velocity $v_i$, the update equations recurrently used across the literature are

$$
v_i(t+1)=w\,v_i(t)+c_1\,r_1\bigl(p_i-x_i(t)\bigr)+c_2\,r_2\bigl(g-x_i(t)\bigr),
$$

$$
x_i(t+1)=x_i(t)+v_i(t+1),
$$

where $p_i$ is the personal best, $g$ is the global best, $r_1,r_2\sim U(0,1)$, and $w,c_1,c_2$ are inertia and acceleration coefficients [0811.0083], [2602.12700]. Several studies use fixed or conventional coefficients such as $w=0.729$, $c_1=c_2=2.0$, or linearly decreasing inertia from $0.9$ to $0.4$; others introduce adaptive schedules for faster convergence or to avoid premature stagnation [2504.13483], [2509.19529].

The term therefore does not refer to a single controller equation. In the cited work, it denotes a coupling between a PID-type structure and a PSO-based search mechanism. This includes both plant control and learning-system optimization, such as nonlinear PID-enhanced latent factor models for missing-data recovery [2208.02513], [2504.13483].

## 2. Optimization workflow and problem formulation

The common workflow begins with a particle encoding of the tunable parameters, followed by repeated evaluation of a fitness function derived from simulation, closed-loop response, or validation error. In the simplest case, each particle carries only three gains, $x_i=[K_p,K_i,K_d]$, as in longitudinal vehicle control, STATCOM voltage regulation, and multivariable PID tuning [2509.19529], [1610.00001], [1306.6194]. More elaborate encodings enlarge the search space. Fractional-order formulations optimize five parameters, $[K_p,K_i,K_d,\lambda,\mu]$ or $[K_p,K_i,K_d,\lambda,\delta]$, thereby including the integral and derivative orders [0810.3776], [0811.0083]. A constrained fuzzy-PID scheme for underwater vehicles tunes six variables, namely $K_{p_0},K_{i_0},K_{d_0},K_e,K_{e_c},K_u$ [2602.12700]. In adaptive latent-factor models, the PSO particle can represent nonlinear PID gains and auxiliary constants rather than direct controller gains [2208.02513], [2504.13483].

Fitness definitions are equally application-dependent. Closed-loop speed control for autonomous vehicles uses mean-square speed-tracking error, $J=(1/T)\int_0^T [v_{\rm ref}(t)-v(t)]^2dt$, and the cited work states that in principle the objective could be augmented by overshoot, settling time, or control effort, although $J=\mathrm{MSE}$ alone was used there [2509.19529]. STATCOM tuning minimizes an ITAE-type criterion involving both voltage deviation and speed deviation, $\int_0^T t[\alpha(\Delta V_m)^2+\beta(\Delta\omega)^2]dt$ [1610.00001]. Underwater fuzzy-PID tuning introduces a scalarized constrained objective with normalized $J_{ITAE}$, control energy, relative overshoot, settling time, saturation occupancy, and an energy penalty that enforces $E_u\le1.02E_{u,0}$ [2602.12700]. In recommendation or tensor-recovery settings, the objective is validation RMSE or reconstruction error rather than a time-domain control index [2208.02513], [2504.13483].

A compact cross-section of particle encodings and objective functions is shown below.

| Variant | Particle contents | Objective used in the cited work |
|---|---|---|
| Classical PID | $[K_p,K_i,K_d]$ | MSE, ITAE-type criteria, or integral error indices |
| FOPID / $PI^\lambda D^\delta$ | $[K_p,K_i,K_d,\lambda,\mu]$ or $[K_p,K_i,K_d,\lambda,\delta]$ | Residual-based pole-placement cost or ITAE |
| Fuzzy-PID | $[K_{p_0},K_{i_0},K_{d_0},K_e,K_{e_c},K_u]$ | Weighted fitness with ITAE, $T_s$, $M_p$, $E_u$, $S_r$, and penalties |
| Nonlinear PID-enhanced learning | nonlinear PID gains, sometimes plus $q$ | Validation RMSE or reconstruction error |
| PID-type sliding-mode | $[K_p,K_i,K_d,Q,E]$ | ISE or weighted tracking-performance index |

The implementation details that recur most often are bound clamping on $x_i$, clipping or limiting of velocities, random initialization within admissible ranges, and termination either at a maximum iteration count or when the best fitness change falls below a tolerance [0811.0083], [0811.0079], [2504.13483].

## 3. Principal variants of PSO-PID

### Classical three-gain PSO-PID

The most direct form tunes only $(K_p,K_i,K_d)$ for a fixed PID law. This appears in autonomous longitudinal speed control, where a classical PID regulates nonlinear longitudinal vehicle dynamics and PSO is run offline to minimize speed-tracking MSE [2509.19529]. It also appears in power-system applications such as STATCOM voltage regulation in a single-machine infinite-bus system, where the optimized PID modulates the PWM index through the voltage error $e(t)=V_{\rm ref}-V_m(t)$ [1610.00001]. In multivariable nonlinear systems represented by a Takagi–Sugeno fuzzy model, PSO is applied to the full set of decentralized MIMO PID loops, with the decision dimension scaling as $3n_0$ for $n_0$ outputs [1306.6194].

### Fractional-order PSO-PID

Fractional-order variants extend the search from three to five parameters by introducing integral and derivative orders. The controller takes the form

$$
C(s)=K_p+\frac{K_i}{s^\lambda}+K_d\,s^\mu
$$

or equivalently $PI^\lambda D^\delta$ [0811.0083], [1611.09881]. In the cited work, fractional orders are used either to satisfy pole-placement specifications derived from peak overshoot and rise time or to minimize ITAE directly [0810.3776], [0811.0079]. Practical realization is not treated as automatic; reported implementations use rational approximations such as Oustaloup recursive approximation or Tustin operator-based continued fraction expansion [1611.09881], [0811.0083].

### Fuzzy and constrained PSO-PID

A further variant optimizes a fuzzy-PID architecture in which a fuzzy inference block adjusts PID gains online. In the underwater-vehicle depth-control formulation, PSO tunes six offline parameters: the baseline gains $K_{p_0},K_{i_0},K_{d_0}$, the input quantization factors $K_e,K_{e_c}$, and the output proportional scaling factor $K_u$ applied to the defuzzified corrections $(\delta K_p,\delta K_i,\delta K_d)$ [2602.12700]. The defining feature of this formulation is not only fuzzy adaptation but explicit incorporation of actuator-oriented constraints through control energy and saturation occupancy.

### Nonlinear PID-enhanced learning schemes

In data-driven models, PID action can be applied to learning error rather than a plant output. The NPALF and NPIL models rebuild the instantaneous learning error by proportional, integral, and derivative components with nonlinear gain functions of the current error, and then use the adjusted error in stochastic gradient updates [2208.02513], [2504.13483]. In NPIL, the underlying model is a rank-$R$ CP latent factorization of a partially observed third-order tensor with Tikhonov regularization and linear biases; the nonlinear PID term replaces the raw stochastic error in updates of $A,B,C,u,f,d$ [2504.13483]. PSO then adapts the nonlinear gain parameters on a validation subset.

### PSO-tuned PID-type sliding surfaces

A hybrid control interpretation appears in PID-type sliding-mode control. There, the sliding surface is

$$
s(t)=K_p\,e(t)+K_i\int_0^t e(\tau)d\tau+K_d\,\dot e(t),
$$

and a modified PSO tunes $\{K_p,K_i,K_d,Q,E\}$ for an improved power-rate exponential reaching law [2209.09170]. In this construction, PID parameters do not directly define a standalone PID controller; instead they shape the sliding manifold and equivalent dynamics.

## 4. Objective functions, constraints, and parameter adaptation

The fitness function is the principal mechanism by which PSO-PID formulations differ. Integral error criteria remain common. MIMO nonlinear control experiments report IAE, ISE, and ITSE as discrete sums of per-output tracking errors, and optimize different controller instances against each index [1306.6194]. Fractional-order design studies alternatively use a pole-residual cost $f=|R|+|I|+|P|$ or $J=|R|+|I|+|\Phi|$, where $(R,I)$ are the real and imaginary residuals of the characteristic equation at desired closed-loop poles and $P$ or $\Phi$ is the phase term [0810.3776], [0811.0079]. These objectives differ structurally from time-domain error criteria, even though both are optimized by the same swarm mechanism.

A second axis of variation concerns constraints and regularization. Several studies impose only bound constraints on gains and use clamping or clipping to keep particles inside the search region [0811.0083], [2309.13679], [2509.19529]. Others formulate explicit performance constraints. The underwater-vehicle work introduces an energy-constraint penalty,
$$
E_{pen}=
\begin{cases}
\alpha(E_u-1.02E_{u,0}), & E_u>1.02E_{u,0}\\
0, & \text{otherwise},
\end{cases}
$$
along with a soft overshoot tolerance $M_p\le0.02$ [2602.12700]. This formulation is noteworthy because it is designed to suppress “pseudo-improvements achieved solely by increasing control inputs,” a concern that is often only implicit in unconstrained PSO tuning.

A third axis is adaptation of PSO hyperparameters themselves. The literature reports fixed settings such as $w=0.729$ and $c_1=c_2=2.0$, linearly decreased inertia from $0.9$ to $0.4$, and improved schedules with dynamically adapted $\omega(k), c_1(k), c_2(k)$ [2504.13483], [0811.0083], [2509.19529]. Modified PSO for sliding-mode tuning uses time-varying acceleration coefficients and decaying inertia to privilege exploration early and local refinement later [2209.09170]. This suggests that “PSO-PID” often includes meta-level design choices beyond the PID structure itself.

## 5. Representative empirical results

The reported performance of PSO-PID is strongly domain-specific, but several studies document quantitative gains against manually tuned or baseline alternatives.

| Domain | Reported result | Source |
|---|---|---|
| NILM missing-data recovery | On D1@15%, NPIL achieved RMSE $=0.0256$, MAE $=0.0185$, was $31.7\%/28.3\%$ lower than best competitor M4, converged in $\approx 10.2$ s versus $38$–$438$ s for others, and reached stable RMSE/MAE within fewer than 10 iterations | [2504.13483] |
| Underwater vehicle depth tracking | $J_{ITAE}$ decreased from $0.2631$ to $0.1473$, settling time from $2.301$ s to $1.613$ s, relative overshoot from $0.1494$ to $0.01839$, control energy from $7980$ to $7935$, and saturation occupancy from $0.004$ to $0.003$ | [2602.12700] |
| Autonomous longitudinal speed control | PSO-tuned PID achieved MSE $=0.0213$ and $0.0187\;(\mathrm{m/s})^2$ in double-lane-change and winding-road cases, tracked speed within $\pm 0.3$ m/s, and showed no observable overshoot or oscillation | [2509.19529] |
| STATCOM voltage regulation | Under nominal loading, PSO-PID yielded voltage overshoot $2.4\%$, voltage settling time $0.27$ s, speed overshoot $1.8\%$, speed settling time $0.24$ s, and ITAE $0.32$, compared with $8.2\%$, $0.45$ s, $7.5\%$, $0.40$ s, and $1.25$ for conventional PID | [1610.00001] |
| UAV landing on moving boat | Landing time decreased from $18.62$ s to $3.21$ s, touchdown vertical velocity changed from $-0.3041$ m/s to $+0.002$ m/s, planar error was reduced to $0.0026$ m, and maximum trackable boat speed reached $8.9$ m/s, about $80.9\%$ of UAV top speed | [2309.13679] |

Further evidence comes from nonlinear MIMO control and anaesthetic drug infusion. For a two-output Takagi–Sugeno fuzzy model, PSO-PID reduced overshoot, rise time, and settling time relative to Ziegler–Nichols tuning; for output $y_1$, overshoot decreased from $55.35\%$ to $41.70\%$ under the ISE-optimized design, with rise time and settling time reduced from $0.1264$ s and $1.6733$ s to $0.0474$ s and $0.6182$ s, respectively [1306.6194]. In the anaesthetic-control study, the best fractional-order controller (FOPID1) reached $J_{\min}=58.3018$ versus $499.2007$ for PID and converged in approximately 120 iterations to $J\approx58$, whereas PID plateaued at $J\approx500$ [1611.09881].

These results are not directly interchangeable because each study defines a different plant, search space, and fitness function. A plausible implication is that PSO-PID performance must be interpreted relative to the encoded objective rather than as a universally transferable gain in “PID quality.”

## 6. Implementation issues, misconceptions, and research directions

A common misconception is that PSO-PID is a single standardized tuning recipe. The literature instead shows a heterogeneous design space. The particle may encode three gains, five fractional-order parameters, six fuzzy-PID quantities, nonlinear PID error-law coefficients, or a PID-type sliding surface plus reaching-law parameters [0810.3776], [2602.12700], [2208.02513], [2209.09170]. Likewise, the objective may be MSE, ITAE, IAE, ISE, ITSE, pole-residual error, reconstruction RMSE, or a constrained composite criterion. The shared element is the PSO search mechanism, not a unique controller architecture.

Another recurring issue is the distinction between offline optimization and online deployment. Several studies explicitly perform PSO offline in MATLAB or simulation, after which the optimized PID runs online with negligible computational cost [0810.3776], [2509.19529]. Other work inserts an additional approximation layer between offline optimization and runtime use. In the UAV landing system, a neural network is trained on a $5\times5$ grid of PSO-optimized gains over altitude and boat speed, and the deployed controller retrieves real-time gains as $(K_P,K_I,K_D,\beta)=\mathrm{NN}(h,v_b)$ [2309.13679]. This indicates that PSO-PID may function as a calibration stage rather than a runtime search procedure.

For fractional-order controllers, digital realization is itself a nontrivial design problem. The cited implementations use Oustaloup recursive approximation over a specified frequency range or Tustin operator-based continued fraction expansion of order $p=q$ to approximate $s^{-\lambda}$ and $s^\delta$ [1611.09881], [0811.0083]. In such cases, reported controller superiority depends not only on PSO tuning but also on the approximation method used to realize fractional operators.

Recent extensions point toward broader hybridization. Reported directions include improved PSO with adaptive inertia and acceleration coefficients [2509.19529], joint tuning of nominal PID and fuzzy scaling parameters under energy constraints [2602.12700], PSO combined with neural interpolation for gain scheduling [2309.13679], and possible online PSO, hybrid PSO-GA, or multi-objective Pareto analyses for changing operating conditions [2509.19529], [2602.12700]. In data-centric applications, PSO-PID has also moved beyond physical feedback control into optimization of nonlinear PID-enhanced learning updates for latent-factor and tensor models [2208.02513], [2504.13483].

Taken together, the literature presents PSO-PID not as a single algorithmic artifact but as a broad metaheuristic design pattern: PSO supplies a derivative-free search over PID-type parameterizations, while the control or learning performance is determined by the chosen architecture, objective, constraints, and realization method.

Source: https://www.emergentmind.com/topics/particle-swarm-optimized-pid-pso-pid