4.1. Karush–Kuhn–Tucker Conditions
At each fixed motor speed n, the measured input-power characteristic is approximated by the cubic function in Equation (7), . The following analytical reduction is restricted to positive propulsion demand. It assumes identical motor input-power characteristics, approximately equal left-right wheel speeds, equal left-right torque on each axle, constant motor speed and total demanded torque during one allocation interval, and operation within the calibrated motor speed-torque region. Tire-adhesion, lateral-force, and yaw-moment constraints are handled subsequently by the general four-wheel torque allocator.
As shown by the motor MAP, the in-wheel-motor exhibits relatively low efficiency at low torque levels. With increasing torque, the motor efficiency initially rises rapidly before leveling off, and then begins to decline once the torque exceeds a certain threshold. As illustrated in
Figure 8, the in-wheel-motor input power function is a quasi-convex function composed of a combination of convex and concave components.
Let
denote the total axle torque transferred from the rear axle to the front axle relative to equal front-rear allocation. For the front-axle single-drive branch selected by the supervisory controller,
Here, is the total demanded propulsion torque. The condition represents equal four-wheel torque allocation, whereas represents front-axle-only propulsion. The one-sided feasible interval represents the rear-to-front torque-transfer branch adopted by the supervisory controller and does not imply that the Karush-Kuhn-Tucker conditions uniquely distinguish the front axle from an energetically symmetric rear-axle branch: .
The total electrical input power of the four motors is
Expansion of Equation (36) gives
where
is independent of
. Defining
the reduced propulsion-mode problem is
The corresponding Lagrangian is
and the Karush-Kuhn-Tucker conditions are
Because Equation (40) is a scalar quadratic problem on a closed interval, its global minimizer is determined directly from the sign of
The corresponding analytical switching torque is
A physically admissible analytical threshold requires
,
, and a resulting value inside the calibrated positive-torque range at the corresponding speed. The analytical expression is therefore used to explain the mode-switching structure rather than being applied directly without numerical calibration. According to the optimal solution derived from the KKT conditions, when the total vehicle demand torque exceeds a threshold value (torque threshold), the inter-axle torque transfer is zero. In this case, the 4WD-EV operates in a four-wheel drive mode with evenly distributed motor torques, which minimizes the total energy consumption of the in-wheel motors. However, when the vehicle demand torque is below this threshold, two optimal solutions may exist. This is primarily because the input power function of the in-wheel motor is not strictly convex in the low-torque region. Nevertheless, analysis based on the MAP reveals that single-axle drive is more efficient than four-wheel drive in this torque range [
27]. The calibrated torque-threshold curve is shown in
Figure 9.
For numerical calibration, the total input powers of the single-axle and equal four-wheel propulsion modes are
where
is the calibrated passive power of one non-driving rotating motor.
At each calibrated motor speed
, the numerical switching torque is obtained offline using particle swarm optimization:
The two acceleration coefficients are set to
, the inertia weight decreases linearly from 0.9 to 0.4, and the maximum number of iterations is 20. Thresholds are calculated at 25 rpm intervals over 25–1300 rpm and stored in a one-dimensional speed-indexed lookup table. During real-time operation, the threshold is obtained by linear interpolation between adjacent speed nodes:
Particle swarm optimization is therefore executed only offline. The calibrated threshold applies only to positive propulsion torque. Regenerative braking is allocated separately because the generating-region efficiency characteristic, battery charging-power limit, ideal braking-force distribution, ECE regulatory boundary, tire adhesion, and braking-stability requirements constitute a different allocation problem.
Under ideal front-rear symmetry, front-axle-only and rear-axle-only propulsion have the same motor input power. Therefore, the analytical result identifies the energy-efficient single-axle structure but does not uniquely select the driven axle. In the proposed supervisory strategy, front-axle propulsion is preferentially selected in the low-demand-torque region because longitudinal acceleration and inter-axle load transfer are limited, the decrease in front-axle normal load remains small, and the front-only branch is enabled only when the estimated front-axle adhesion margin and motor capability are sufficient. For the studied vehicle under the considered low-demand operating conditions, front-axle propulsion also retains an understeer-oriented and predictable handling response, which is favorable for handling stability and driving safety. Maintaining one preferred low-load branch reduces unnecessary axle-mode switching and improves torque-transition continuity and longitudinal smoothness. If the front-axle constraints are not satisfied, the general four-wheel sequential quadratic programming allocator is activated.
Table 10 reports the total demanded propulsion-torque threshold calibrated by offline particle swarm optimization at 25 rpm intervals. Online implementation uses linear interpolation between adjacent speed points.
4.2. Braking Torque Distribution
During braking, the propulsion threshold cannot guarantee front–rear braking stability because regenerative allocation must satisfy the ideal braking-force distribution, the Economic Commission for Europe (ECE) regulatory boundary, motor generating limits, battery charge-power availability, and tire adhesion [
28]. The braking intensity is defined as
. Dynamic load transfer determines the axle normal loads, and the ideal front-axle braking-force ratio is
=
. For the studied vehicle,
= 1.46 m,
= 1.65 m,
= 0.781 m, and
= 3.11 m.
The ideal braking force distribution between the front and rear axles is given by the following formula:
The braking force formula defined by the ECE regulation is as follows:
In the equation, and represent the vertical forces on the front and rear axles, respectively. denotes the braking intensity, , defined as the ratio of braking deceleration to gravitational acceleration. and correspond to the braking forces on the front and rear axles, respectively.
The Energy-Optimized Distribution (EOD) curve follows the OA–AB–BC construction. In the OA segment, the braking intensity is low, and all regenerative braking is assigned to the front-axle motors; point A corresponds to
. Once the front braking force reaches the ECE admissible boundary, the front-axle braking force is held constant, and the rear-axle regenerative force is increased along segment AB. Point B occurs at
; beyond this point, the distribution follows the ideal braking-force curve BC because of the I-curve stability limit. For good-road adhesion coefficients in the range 0.6–0.9, braking intensities above
are treated as emergency braking. Beyond point C, regenerative braking is disabled, and the demanded braking force is supplied by the mechanical friction brakes. The resulting front-axle motor braking coefficient is therefore defined by Equation (55), and the front/rear axle torque commands are given by Equations (56) and (57). Each motor command remains subject to speed-dependent regenerative-torque capability, battery charge acceptance, and tire-adhesion limits; any unmet braking demand is supplied by friction braking. The braking-torque distribution is shown in
Figure 10.
4.3. Torque Distribution Algorithm
A motor-energy-only allocation is insufficient under combined longitudinal and steering conditions because tire-slip loss, yaw-moment demand, load transfer, and actuator limits alter the preferred wheel torques. The sequential quadratic programming (SQP) allocator therefore minimizes a normalized composite objective containing motor electrical input power, longitudinal and lateral tire-slip power, and a wheel-torque increment penalty. The allocation is subject to the demanded total wheel torque, the required external yaw moment, speed-dependent motor-torque limits, and the tire-friction ellipse.
The wheel-torque allocation satisfies two equality constraints: the demanded total wheel torque
and the required external yaw moment
, as expressed in Equation (61).
Under steering, the external yaw-moment requirement produces left–right torque differences. The motor-energy term of the objective is therefore defined by Equation (62).
In the equation, represents the input power fitting function of the in-wheel-motor.
Motor input power depends on motor speed, which increases with wheel slip. To account for the associated tire loss, the longitudinal tire-slip-energy term in Equation (63) is included in the allocation objective.
In the equation,
represents the tire slip energy coefficient,
. Meanwhile, to ensure smooth vehicle operation, the output torque of the in-wheel motors should vary smoothly; therefore, a torque increment objective function for the motors is established:
In the equation, represents the output torque at the previous time step. Therefore, the overall objective function of the energy-optimization-based torque distribution control in this paper is defined as:
, , and represent the weighting coefficients for motor energy, tire slip energy, and torque increment, respectively.
The constrained nonlinear allocation is solved by sequential quadratic programming. At each iteration, the Lagrangian is approximated by a quadratic subproblem; the Hessian is updated by Broyden–Fletcher–Goldfarb–Shanno (BFGS) and the step length is selected by an Armijo line search.
In Equation (66),
represents the torque vector of the in-wheel motors
,
denotes the overall objective function of the torque distribution control based on energy optimization
,
corresponds to the equality constraints, and
corresponds to the inequality constraints. T = [T_FL,T_FR,T_RL,T_RR]^T is the wheel-torque vector, J(T) is the composite objective, h(T) = 0 contains the equality constraints, and g(T) ≤ 0 contains the actuator inequalities. Because regenerative braking is handled by the EOD branch, the SQP allocator is restricted to nonnegative propulsion torques. Equations (67) and (68) specify the equality and inequality constraints.
4.4. Torque Vectoring Control Strategy
The supervisory controller contains three operating branches. Under low positive torque and approximately straight driving, front-axle-only propulsion is used when the demand is below the calibrated speed-dependent threshold and the front-tire adhesion margin is sufficient. Under general propulsion or steering, the four-wheel sequential quadratic programming allocator satisfies the total-torque and external-yaw-moment demands. As the slip ratio or tire utilization of one wheel rises, its marginal slip-energy cost increases; the optimizer consequently reduces that wheel torque and transfers the remaining demand to wheels with lower combined motor-plus-tire energy cost. During regenerative braking, the Energy-Optimized Distribution curve first determines the front–rear ratio, after which a left–right differential correction supplies the required yaw moment and a slip limiter maintains the wheel slip near the 13–17% target region. The coordinated supervisory logic is shown in
Figure 11.
When the demanded propulsion torque exceeds the lookup threshold, equal four-wheel torque is the minimizer of the reduced motor-only problem under the assumptions of
Section 4.1. In the complete controller, however, tire-slip energy, yaw-moment demand, and actuator constraints are also active; therefore, the final wheel torques are obtained from the SQP allocation rather than being assumed globally optimal.
During steering, the external yaw moment generated by the active-front-steering layer requires left–right torque differences. Whenever the absolute desired yaw rate exceeds the straight-driving dead band, the four-wheel SQP allocator is activated to satisfy total-torque and yaw-moment demands while minimizing the composite energy objective.
During braking, the wheel torques are determined by the EOD front–rear coefficient under the ideal-distribution and ECE constraints. This braking branch is separate from the propulsion-mode threshold and from the positive-torque SQP problem.