| Algorithm 1 The Pseudo Code of VST-MPC. |
| Step 1: Set the initial sampling time |
| Step 2: Set the MPC parameter and calculate the optimal input with MPC |
| Step 3: Predict |
| Step 4: Update Xpast = Xa (K + 1), upast = u(K) |
| Step 5: Calculate the next sampling time using the following equation. |
| where |
| Step 6: Set = |
| Step 7: If Ts > = else if < = end |
| Step 8: Go to Step 2 until MPC iteration is over. |