Research Article

Vehicle Sliding Mode Control with Adaptive Upper Bounds: Static versus Dynamic Allocation to Saturated Tire Forces

Pseudocode 1

Pseudocode for interior-point algorithm.
Given A, W , and v
 Compute G, c, and h in (4.2).
 Choose the allocated control input of the previous sample time as the initial value 𝐮 𝟎
 If each entry of 𝐮 𝟎 violates the inequality (3.9), reduce it to satisfy(3.9)
 Compute initial values for 𝐩 0 and 𝝀 0 .
 Compute the initial value for barrier parameter 𝜂 .
 Compute residuals 𝐫 𝐜 , 𝐫 𝐛 , and 𝐫 𝐬 given in(4.7)
 Select error tolerance 𝜀 and set 𝑘 0 .
repeat until 𝐸 ( 𝐮 , 𝐩 , 𝝀 , 0 ) 𝜀
 Compute step direction from equation (4.9),
 Compute step size to satisfy nonnegativity conditions using (4.11),
 Update the variables 𝐮 , 𝐩 , and 𝝀 using (4.10),
 Compute affine scaling 𝜂 a f f step from (4.13) and 𝜎 𝑘 according to (4.14),
 Update the barrier parameter 𝜂 𝑘 + 1 based on (4.12),
 Compute residuals 𝐫 𝐜 , 𝐫 𝐛 , and 𝐫 𝐬 from (4.7),
 Set 𝑘 𝑘 + 1
end