3.1. PID Tuning Algorithms Analysis and Comparison
Figure 16 shows a cross-section overlaid view of several drive cycles’ reference speeds with actual vehicle speed traces for all three PID tuning methods—traditional Ziegler–Nichols as green, GA-optimized as black, and PSO-optimized as blue dashed lines. All three controllers approximate the slow–fast–slow cycle pattern but differ in fidelity. To evaluate tuning robustness, each algorithm was run 12 times with random initial conditions. Along with the error indices mentioned before, we also used two other error criteria, the mean absolute error (MAE) and the root mean square error (RMSE), in order to evaluate the performance of the different PID controller responses as follows:
where
Across all three standard drive cycles (WLTP, HWFET, and FTP-75), the PID controller tuned via particle swarm optimization (PSO) consistently delivered the most accurate speed tracking. For example, on the WLTP cycle the PSO PID reduced the average speed error by nearly half compared with a conventionally tuned PID (about 0.27 km/h versus 0.51 km/h MAE) and cut the RMS error from roughly 0.58 km/h down to 0.36 km/h. The other evolutionary approach (GA PID) stood in between, but still lagged behind PSO in every metric.
This pattern repeats on the HWFET and FTP-75 runs, where PSO PID achieves the lowest peak deviations and the smallest mean absolute errors (around 0.27–0.32 km/h). However, GA PID was slightly behind, but only by a narrow margin. By contrast, the traditional PID delivers errors on the order of 0.50–0.54 km/h MAE and up to 0.68 km/h in RMSE. These results clearly demonstrate that PSO tuning provides the most accurate adherence to the target speed profile, making it the superior controller among the three.
Table 9 presents the control strategies according to three different drive cycles as well the errors. As for the fuel consumed during these tests, the PSO PID-controlled HEV produced an average fuel consumption across the different drive cycles. The average fuel consumed during the 1000 s simulation is as follows:
The vehicle speed is maintained very close to the reference with minimal oscillation, allowing the engine to run more steadily near the optimal efficiency point, thereby reducing transient fuel penalties. In contrast, the larger speed swings of the traditional PID push the engine into less efficient regions more frequently, thereby increasing fuel use.
Table 10 presents the optimal PID parameters obtained using each of the listed tuning methods across the 12 different run cycles.
In summary, the PSO-based tuning demonstrated the best overall performance in terms of the minor maximum deviation, the lowest mean and RMS error, and the lowest fuel consumption, making it the most effective method for our series–parallel HEV speed controller. Later, during the calculation of fuel economy, it was used exclusively to test the HEV model with different drive cycles.
3.2. Drive Cycle Outputs
Figure 17 plots the actual vehicle speed [km/h] for all four test cycles. The black trace (NEDC) rises only to about 50 [km/h] and exhibits numerous stops, the green trace (WLTP Class 3b) shows intermediate speeds with more variability, the blue trace (FTP) reaches several high-speed peaks, and the red trace (HWFET) largely stays at a high speed (70–100 [km/h]) after an initial ramp. In all cases, the PSO PID controller tracks the reference profile closely. Minor deviations appear in the fast up–down patterns (e.g., slight undershoot on accelerations), but there are no significant steady-state errors. This tight tracking is consistent with the tuned PSO PID achieving minimal speed errors—for example, the PSO PID never deviated by more than ±0.86 [km/h] on a WLTP cycle. Previous results showed that the PSO PID yielded the lowest mean and RMS speed errors across a WLTP 3b cycle, so its use here ensures stable speed regulation under all four drive cycles. The smooth (green) HWFET line and the jagged city cycle lines illustrate a key trend: on the highway, the vehicle holds a nearly constant speed with minor control action, whereas in urban-style cycles, the controller is constantly correcting for frequent starts and stops.
Figure 18 illustrates the ICE behavior and power demand during a representative cycle. The top plot shows engine speed (rpm), while the bottom one shows power demand (kW). In the low-speed portions, the engine often shuts off (rpm drops to 0), and power goes to zero, reflecting regenerative braking or idling. When the driver accelerates, the ICE speed jumps rapidly to 1500–3000 rpm and the power spikes up (red peaks). Note the close correlation: every acceleration hump in the green speed curve corresponds to a surge in rpm and power. During steady cruising segments (flat green line), the engine rpm and power level off. For example, from ~780 to 850 s, the speed is maintained at around 15 m/s, and the ICE operates steadily at ~3500 rpm, producing between 30 and 50 kW. These flat intervals indicate that the controller has settled to a steady operating point, minimizing unnecessary oscillation. Importantly, even during transient ramps, the controller avoids excessive overshoot: the speed ramps are controlled so that the engine spends minimal time far from its optimal efficiency. In previous tests, the PSO PID was found to maintain the engine’s operation near the optimal efficiency point, with only minor transient fuel penalties. Our traces show exactly this behavior—the engine transitions smoothly between off, moderate, and high rpm, with no long-lived oscillations.
Figure 19 shows a similar set of plots for the NADC drive cycle. Here again, we see bursts of engine activity corresponding to the speed trace. During each standstill, the ICE rpm drops to zero, and the power trace often dips below zero (indicating energy recovery). With each acceleration, the ICE quickly revs to 2000–3000 rpm. In this cycle, the engine spends more time in mid-range RPM (up to ~3000 RPM) and rarely reaches the highest 4000 RPM seen in
Figure 19, reflecting the slightly lower peak speed of this profile. However, the overall pattern is the same: repeated power pulses interspersed with idle periods. The bottom plot confirms the controller’s effectiveness: the speed curve exhibits very crisp, repeatable steps that match the reference, and any overshoot or undershoot is minimal. This stability, or absence of oscillation, during aggressive stop–go driving again matches the performance noted in earlier sections (PSO PID yielded a minor speed error with no oscillations). In summary, the ICE RPM and power reflect the driving conditions, where city-like cycles produce frequent on/off engine operation and transient power peaks, whereas highway cruising would produce longer, flatter traces (as partially seen after 800 s here).
Figure 20 presents our detailed simulation of the series–parallel hybrid under the full 1000 s WLTP Class 3b cycle. In the lower panel, the solid black trace shows vehicle speed climbing to about 35 km/h at 20 s, dipping back to zero by 100 s for a brief stop, then rising again into a broad plateau of 50–60 km/h between 200 s and 300 s, followed by multiple stop–go segments and a final peak of 75 km/h around 830 s before tapering off to zero at 1000 s.
Above, the four power traces reveal each subsystem’s contribution. The ICE (thick black line) quickly and sharply rises on activation, reaching 40–50 kW during the first three accelerations, then settles into 20–30 kW during mid-cycle cruising, and spikes to the almost-peak power of 88 kW during the high-speed ramps after 700 s. When the vehicle stops (e.g., at 100 s and 600 s), the ICE power falls to zero.
The traction motor (solid blue) increases up to 45 kW at each acceleration—peaking at 42 kW by 60 s and again around 720 s—then sags to −15 kW during regenerative braking events at 120 s, 350 s, and 900 s, before returning to positive assist.
The generator (solid green) operates within its 28 kW continuous envelope, providing steady power levels of 10–22 kW during steady-speed segments (notably 15 kW at 250 s and 20 kW at 800 s). It then drops back to near 0 kW when the battery SOC is satisfied or the vehicle stops. In heavy braking (around 350 s and 950 s), the green trace dips as low as 30 kW, indicating brief motoring to capture excess engine torque.
The battery (red dashed) maintains balance in the loop, charging at −25 kW under strong regenerative braking (e.g., 120 s and 900 s) and discharging up to +25 kW when motor demand exceeds generator output (notably at 60 s and 720 s). Between these peaks, the red trace swings around zero, reflecting active energy buffering throughout the cycle.
Comparing across the drive cycles reveals distinct trends in the real-time dynamics. In both
Figure 17 and
Figure 18 (typical of city-style driving), the controller frequently drives the ICE from off to on, resulting in rapid transitions. Each acceleration transition (represented by the sharp upward green line) coincides with a spike in RPM and power. The control loop quickly damps any overshoot—the engine returns to its trimmed speed within a second or two. By contrast, during steady phases (e.g., flat green segments), the ICE rpm and output stabilize immediately, indicating a well-damped steady state. The HWFET case (red in
Figure 17) would exhibit even longer flat segments and nearly constant RPM; indeed, the highway segment (around 600–650 s) features a nearly flat RPM curve, illustrating a steady-state response with minimal control effort. Overall, the system is highly stable, as we observe no oscillatory behavior or hunting in any cycle, confirming that the PSO-tuned gains produce a well-damped response. Even in the most dynamic cycles (FTP and WLTP), the controller quickly settles speed after each change.
The power demand patterns also differ by cycle. The city-centric WLTP and FTP cycles exhibit numerous short, high-power bursts during acceleration, followed by power levels near zero or even negative (regeneration) when coasting or braking. In
Figure 18, the power spikes up to ~30–40 kW for brief periods and then often goes negative between accelerations. By contrast, highway driving (HWFET) yields sustained positive power; once the vehicle reaches cruising speed, it draws a steady ~40–60 kW (not fully shown here but indicated by the long green plateaus). Thus, the average power is highest for HWFET, while energy is frequently recuperated on urban cycles. Despite this, the PSO controller keeps the engine working in mostly inefficient regions during both scenarios—the engine is not held at an unusually high rpm when idling or braking. These observations are consistent with the notion that minimizing speed error, as achieved here, concentrates engine operation in optimal zones, thereby reducing fuel burn.
Quantitatively, the average fuel consumption reflects these dynamics. The hybrid Crafter consumed on the order of a few liters per 100 km under each cycle. In our simulations, WLTP Class 1 gave the highest consumption of 3.126 L/100 km due to its stop–go nature, while HWFET yielded the lowest (2.857 L/100 km) because of steady cruising. The intermediate cycles fell between these extremes: WLTP Class 3b, 3.213 L/100 km, and FTP, 3.624 L/100 km.
Figure 21 shows an energy Sankey diagram for the series–parallel HEV under a 1000 s WLTP drive (with a full initial fuel tank and 100% battery charge state) at an ambient temperature of 25 °C. The block widths are proportional to energy (MJ) and the labels indicate the corresponding amounts. On the left, fuel (21.4 MJ) enters the engine (purple), while the initial battery (8.83 MJ) supplies the electric motor (green). The engine delivers ~7.29 MJ to the drivetrain (red arrow) after losing ~13.05 MJ as heat and ~1.06 MJ to internal friction, whereas the battery outputs 8.52 MJ to the motor (with ~0.97 kWh to auxiliaries and 0.29 MJ via the DC–DC converter). A portion of engine energy (5.21 MJ) is routed through the generator (brown) to recharge the battery. On the right, the combined mechanical output (~9.24 MJ) overcomes vehicle drag and rolling resistance (totaling approximately 4.51 MJ), with approximately 4.37 MJ recovered through regenerative braking (gray) minus a loss of approximately 0.75 MJ. The powertrain losses (~5.39 MJ) and auxiliary loads (~0.74 MJ) are also shown.
3.3. Battery Thermal and SOC Analysis
The DC–DC converter’s thermal model is implemented as a lumped thermal network in Simulink. All of the converter’s electrical losses (switching and conduction losses) are treated as internal heat sources: the total power loss P
loss is converted into heat (i.e., Q = P
loss). This heat is assumed to flow into the converter case (modeled as a thermal mass of mass m and specific heat c) and is dissipated to the environment by convection. In particular, the convective heat transfer to ambient air [W] is given by the following:
where
h: Convective heat transfer coefficient [W/(m2·K)].
A: Effective surface area [m2].
Tcase: Converter case temperature [°C].
Tcoolant: Ambient temperature. The resulting temperature dynamics are governed by an energy balance [°C].
m: Mass of the converter [kg].
c: Specific heat capacity [J/(kg·K)].
So, the rate of rise in the case temperature is the net heat input (power loss minus convective loss) divided by the thermal capacitance, mc. In other words, as the converter operates, the lost power, Ploss, appears as an internal heat source that raises the case/junction temperature, and this heat is carried away by convection to the ambient surroundings. This model thus explicitly links electrical losses to temperature rise, allowing the simulation to track the converter’s temperature response under load.
Figure 22 shows the battery temperature.
The battery pack’s thermal response under the WLTP driving cycle is seen as a slow, monotonic temperature rise. In the simulation results, the cell/pack temperature starts near ambient (≈approximately 25 °C) and gradually increases to just over 30 °C by the end of the cycle. The smooth, gentle rise implies that during driving, the battery generates heat (from internal resistance losses) roughly at the same time it sheds heat to the environment, so the pack temperature increases slowly. In short, under WLTP load, the battery warms up by only a few degrees, indicating moderate thermal stress rather than any runaway heating.
Figure 23 shows the battery SOC based on the WLTP test procedure.
The state-of-charge (SOC) profiles further illustrate the vehicle’s energy flows. When the battery begins at full charge (red plot), its SOC stays essentially flat during steady driving, rising only slightly during braking phases when regenerative braking feeds a bit of energy back into the pack. By contrast, when the battery starts at 70% SOC, although the battery’s SOC declines quickly at first due to the sudden power demand from the motor during the start phase, the curve shows a clear upward trend over the cycle. The engine–generator’s operation causes this behavior: as the ICE runs, it can drive the generator to charge the battery, causing the SOC to climb. In the present S–P HEV, this means that with an initial 70% SOC, the ICE-propelled generator injects current into the pack and noticeably increases SOC, whereas a fully charged pack has little headroom and only sees small bumps from regen. These SOC trends match the expected thermal–electric dynamics: regen adds minor SOC during braking, and the ICE can charge the battery when it is not already full (as seen by the SOC rise in the 70% case).
3.5. CO2 Emission Reduction
For CO2 emissions, we use 2.62 kg of CO2 per liter of diesel burned. Thus, under WLTP combined, the conventional van emits 10.732 × 26.2 = 281.2 g/km, while the HEV emits 7.473 × 26.2 = 195.8 g/km—a reduction of 85.4 g/km. Similar reductions occur in other cycles: FTP-75 CO2 drops from 363.9 to 261.1 g/km (−102.8 g/km), WLTP 3b from 221.5 to 165.2 (−56.4), and HWFET from 208.4 to 157.4 (−51.0). These correspond to roughly 24–30% lower tailpipe CO2 in the hybrid mode. Overall, the CO2 emissions were reduced by an average of 76.8 g/km.
Each liter of diesel avoided saves approximately 2.62 kg of CO2. In practical terms, the ~3.26 L/100 km fuel savings on the WLTP cycle corresponds to ~8.54 kg CO2 avoided per 100 km (85.4 g/km). For a delivery van running ~200 km per day, this translates to ~17 kg of CO2 saved per day, or roughly 4–5 tons per year (assuming around 250 operating days) per vehicle. The hybrid’s efficiency gain also implies significantly lower NOx and particulate emissions since the engine runs less and at a more optimal load, and regenerative braking recovers energy that would otherwise be lost. In dense urban delivery scenarios—characterized by frequent stops and low-speed travel—the HEV’s electric drive dominates, so these percentage savings often grow even larger in practice. Thus, the PSO PID-tuned hybrid Crafter would substantially reduce greenhouse gas emissions and fuel costs in urban logistics, aiding compliance with environmental targets and improving city air quality. Overall, our analysis shows that the HEV conversion significantly reduces CO2 per kilometer while extending range, outcomes that are crucial for sustainable delivery operations.