WorksComputer Science
Model Predictive Control of a Multirotor UAV with a Cable-Suspended Payload: A Comparison of Shifted and Transformer-Based Warm Starts
Abstract
This study investigates model predictive control (MPC) of a multirotor drone (unmanned aerial vehicle, UAV) carrying a cable-suspended payload, comparing conventional shifted initialization with Transformer-based warm starting of a sequential convex programming (SCP) optimizer. The controller uses a coupled mechanical model with an elastic cable and a double-pendulum representation of the suspended load. Its formulation includes move-blocked control inputs, finite-difference sensitivities, constrained quadratic subproblems, and input-feasibility projection. A Transformer trained on expert SCP solutions predicts an initial control sequence, which is subsequently refined by the same optimizer used for the conventional methods. Numerical experiments compare zero, shifted, and Transformer initialization under identical controller settings. For independently solved MPC problems, Transformer initialization reduces computation time relative to zero initialization. In sequential closed-loop simulations, however, shifting the preceding optimized control sequence provides the lowest computation time, while all three methods produce similar tracking behavior. These findings emphasize the importance of comparing learned warm starts with conventional initialization methods that reuse previous MPC solutions. The measured optimization times exceed the control sampling period; consequently, real-time implementation is not demonstrated. Keywords: Model predictive control; sequential convex programming; Transformer; warm start; cable-suspended payload; multirotor drone.
Nomenclature
Symbols are defined below; numerical parameter values are reported separately in Table 1.
| Symbol | Definition |
| Generalized coordinates | |
| Generalized velocities | |
| Mechanical state (22 components) | |
| UAV reference, attachment, intermediate-mass and terminal-load positions | |
| Body-to-inertial rotation matrix | |
| Translational Jacobians | |
| Angular-velocity Jacobian | |
| Generalized mass matrix | |
| Gravity-force vector | |
| Velocity-dependent generalized force | |
| UAV, intermediate and terminal masses (kg) | |
| Cable length (m) | |
| Cable rest length and secondary-link length (m) | |
| Cable axial stiffness (N/m) and damping (N s/m) | |
| Cable and payload swing angles (rad) | |
| Gravitational acceleration (m/s) | |
| Cable tension (N) |
Table 5. Coordinates and physical parameters
| Symbol | Definition |
| Virtual manipulated inputs: thrust and body moments | |
| Individual rotor thrusts (N) | |
| Rotor allocation matrix () | |
| Hover input and reference state | |
| Controlled-state residual components | |
| External disturbance (not injected in matched tests) | |
| Control sampling period (s) | |
| Prediction samples and control blocks | |
| Prediction-step index () | |
| Predicted and desired UAV positions at step (m) | |
| Predicted UAV translational velocity at step (m/s) | |
| Predicted 17-component tracking-error vector at step | |
| Virtual-input scaling matrix | |
| Normalized blocked control decisions | |
| Admissible decision set | |
| Linear inequality coefficients for rotor constraints | |
| Finite-horizon objective | |
| Weighted residual and state-error weights |
Table 6. MPC and control allocation
SCP and learned initialization
| Symbol | Definition |
| Finite-difference residual Jacobian at iteration | |
| Regularized Gauss–Newton Hessian approximation | |
| Local objective gradient | |
| SCP decision increment | |
| Trust-region radius | |
| Projection onto admissible decision set | |
| Transformer decision predictor | |
| Inference, projection and SCP runtime (s) |
Table 1.
Introduction
Multirotor unmanned aerial vehicles (UAVs) carrying suspended loads are coupled mechanical systems: changes in rotor thrust and vehicle attitude affect the payload trajectory, while cable deflection, extension, and payload swing feed back into the forces acting on the vehicle. A controller intended for constrained tracking must therefore represent the relevant coupled dynamics without making repeated online prediction prohibitively expensive. This balance between mechanical fidelity and computational effort motivates the present comparison of model predictive control (MPC) initialization strategies.
The suspended-load literature offers different levels of mechanical detail. Goodarzi, Lee, and Lee [1] derive a coordinate-free quadrotor–payload formulation with a flexible cable represented by serially connected links and develop a geometric stabilization controller with stability analysis. Tolba and Shirinzadeh [2] instead consider a fifteen-degree-of-freedom multirotor and rigid-body payload model that includes elastic cable behavior, slackening and tightening, shifted centers of gravity, arbitrary attachment locations, and double-pendulum motion; they investigate an output-weighted linear-quadratic regulator. These studies establish the importance of cable and payload dynamics, but neither is an evaluation of Transformer initialization for a common predictive optimizer. Our control-oriented model has eleven generalized coordinates, including vehicle translation and attitude, an extensible suspension segment, and two swing-direction pairs. It does not re-produce all the effects represented in the more detailed models, and the reported results must be interpreted within that modeling scope.
Predictive control provides a framework for handling tracking objectives and explicit constraints [6, 7, 8]. For quadrotors, Ru and Subbarao [3] formulate constrained trajectory-tracking MPC using a state-dependent-coefficient representation and sequential quadratic programming. Rohr et al. [4] develop and flight-test predictive velocity control for a tiltwing UAV using an identified aerodynamic model; their use of preceding solutions as optimization references should be distinguished from using a shifted solution as the initial iterate. These works illustrate the importance of selecting a control-oriented prediction model and a practical numerical optimization procedure, but do not directly establish the performance of the coupled suspended-payload controller considered here.
Computational cost remains a central issue in receding-horizon control. Wang and Boyd [9] demonstrate that exploiting quadratic-program structure can substantially accelerate online MPC. Move blocking reduces the number of independent control decisions, but Cagienard et al. [10] also show why blocking choices cannot be assumed to preserve stability and constraint-satisfaction guarantees. Diehl, Bock, and Schlöder [14] develop a real-time iteration scheme for approximate online optimization, providing a complementary example of trading iterative solution accuracy against the time available between control updates. In the present sequential convex programming (SCP) implementation, the numerical workload also includes repeated integration of the coupled mechanical model to construct finite-difference sensitivities and evaluate trial steps. Faster quadratic-program solutions alone therefore need not imply faster control updates.
Learning-based models address different parts of this computational problem. Gu, Primatesta, and Rizzo [5] investigate physics-informed neural modeling of quadrotor dynamics, highlighting model accuracy and physical consistency; their network serves a different purpose from the initialization predictor studied here. Davoudi et al. [12] likewise illustrate the influence of aerodynamic and wind-model fidelity on quadrotor flight simulation. Our Transformer does not replace the mechanical prediction model or estimate the wind field. It predicts an initial control-decision sequence for subsequent physics-based SCP optimization.
Transformer-assisted trajectory optimization provides the immediate methodological motivation. Celestini et al. [11] use sequence modeling to generate initial guesses or target plans for constrained trajectory optimization and report improvements in convergence and runtime in their evaluated settings. Such benefits cannot be presumed for a different plant, solver, and prediction horizon. In particular, a shifted previous solution is an inexpensive and informative baseline in receding-horizon control, and learned inference and feasibility projection add their own computational costs.
We therefore compare three initializations of the same move-blocked SCP controller: zero deviations from hover, a shifted and reblocked previous solution, and a Transformer-generated candidate. The shifted and Transformer-generated initial control sequences are adjusted, when necessary, to satisfy the imposed input constraints before optimization. Zero initialization already satisfies these constraints. The reported experiments assess both isolated optimization behavior and matched closed-loop episodes, including measured initialization-and-optimization time, solver iterations, and physical tracking outcomes. The principal contribution is a controlled numerical comparison of zero, shifted, and Transformer-based initialization strategies within a common SCP–MPC framework for a coupled UAV–cable–payload system. The study evaluates their effects on computational effort, optimization iterations, and closed-loop response under identical modeling and control constraints. The results establish the relative performance of these initialization strategies for the investigated numerical scenarios, without implying formal closed-loop stability or real-time flight readiness.
Mechanical model and prediction
The model has eleven generalized coordinates and twenty-two states, . Its equations can be represented as
The implemented dynamics include the multirotor, elastic cable, and suspended payload. To check stationary hover, the validation script computed the norm of the 11 generalized accelerations, . The result, approximately , indicates numerical equilibrium consistency. Because the coordinates include translational and angular variables, this is not a force residual in newtons. At hover, the cable tension was 4.905 N and each rotor produced about 4.574 N of thrust. These numerical checks are not flight-test validation. The coordinate definitions, mass-matrix construction, elastic-cable force, and force allocation are documented below directly from the implemented source.
The controller samples every s and predicts steps (1.2 s). The SCP predictor uses guarded fourth-order Runge–Kutta integration with 0.02-s substeps; closed-loop plant propagation uses an adaptive explicit Runge–Kutta method of orders 4 and 5, with a maximum step of 0.04 s. The two integrations are intentionally distinct.
Generalized coordinates and geometric construction
The source defines the coordinates in the fixed order
The inertial coordinate system is -up; body orientation is represented by a ZYX Euler rotation . The first three coordinates give the UAV reference position . The cable attachment point, intermediate suspended mass, and terminal load positions are
The cable length coordinate is a state, not a fixed kinematic constant. The model also contains a second suspended-body direction, so the two pairs of swing angles describe distinct components of the coupled system. These definitions follow the archived kinematics implementation.
Mass matrix, gravity, and generalized inputs
The fast dynamics source forms the mass matrix from the translational Jacobians of the UAV, intermediate mass, and terminal load, together with the UAV rotational inertia:
Here , , are the position Jacobians of , , with respect to , and maps Euler rates to body angular velocity. The code symmetrizes numerically. The gravity term is assembled as
The generalized thrust and moment contributions are and . Thus the optimization variables are collective thrust and body moments, mapped to four rotor thrusts through the allocation matrix . The phrase “four rotor-control channels” in the abstract refers to these four virtual inputs, not four independently optimized rotor forces.
Elastic cable, gyroscopic terms, and numerical implementation
The axial cable force is unilateral and uses the implemented piecewise rule
The generalized radial force includes . The velocity-dependent generalized force is evaluated using the Christoffel contraction associated with the mass matrix:
This term represents the Coriolis and centrifugal effects arising from the configuration dependence of the mass matrix. The mass-matrix derivatives are evaluated numerically using centered finite differences. The fast RHS computes eleven mass-matrix directional derivatives using coordinate perturbations. It checks the ZYX Euler singularity condition and solves the mass-matrix system at each evaluation. The nominal experiments set the optional generalized damping vector to zero in the closed-loop controller setup.
Reference parameters and verification
The archived parameter file attributes reference parameter values to the study in [2]; for example, the rotor arm length is set to 0.2107 m.

Figure 1. Physical system and matched receding-horizon SCP-MPC architecture. The two warm-start branches are compared separately using the same feasibility projection and SCP solver. The quadrotor is illustrated using a conceptual sketch; the two-stage suspension is schematic. The prediction model and numerical dimensions are those of the reported numerical benchmark.
| Parameter | Value | Unit |
| UAV mass | 1.365 | kg |
| Intermediate suspended mass | 0.300 | kg |
| Terminal load mass | 0.200 | kg |
| Cable rest length | 0.25 | m |
| Cable stiffness | 500 | N/m |
| Cable damping | 3.5 | N s/m |
| Secondary suspended-body length | 0.20 | m |
| Rotor arm length | 0.2107 | m |
| Maximum rotor thrust | 9.842 | N |
| Gravitational acceleration | 9.81 | m/s |
Table 1 (PDF p. 4). Selected physical parameters used in the archived model.
This is an adopted model input, not a value obtained by optimization or calibration in the present work. The published reference system has fifteen degrees of freedom and a rigid-body suspended payload, whereas our implemented model has eleven generalized coordinates and a reduced two-stage load representation. They should not be regarded as identical mechanical models. The hover consistency check, free-oscillation integration, and mass-matrix conditioning are numerical checks, not flight-test validation.
In a separate two-second free-oscillation pilot, the simulation started from the hover equilibrium with the initial cable and payload swing angles set to 0.05 rad and −0.03 rad, respectively. The rotor inputs were held at their hover values, while the UAV was allowed to move. The computed maximum absolute angular excursions were approximately 2.865° for the cable and 4.576° for the payload; the simulated cable length varied from 0.259720 to 0.259914 m. These numbers are simulation outputs, not prescribed angle limits or experimental measurements, and they are separate from the closed-loop MPC benchmark.
Model predictive control formulation and sequential convex programming
Control objectives, feedback, and references
The manipulated variables are four virtual commands : collective thrust and body moments. The physical actuators are rotor thrusts , related by . The exact source-code allocation (rotors numbered as in the parameter file) is
The feedback signal is the complete simulated state (ideal full-state feedback); the experiments do not implement a sensor/observer pipeline. The reference is the model’s hover equilibrium : position m, zero Euler and swing angles, zero velocities, and cable extension m. The nominal input is in SI units. The controlled quantities are the weighted position, attitude, swing angles, selected velocities, and control effort specified in Section 3.3. No external disturbance is injected in the final matched comparison: in the modeled tests. In particular, no claim of wind rejection or measurement-noise robustness follows from this benchmark.
The receding-horizon operation is illustrated in Figure 3. At time , the controller predicts six future samples, optimizes the three blocked inputs, and applies only the first sample. At , the state is updated and the optimization is solved again. The shifted and Transformer-based methods change the initial candidate for this repeated optimization, not its physical prediction model or input constraints.

Figure 3. Original schematic of receding-horizon MPC at consecutive sampling instants. The predicted output is updated using the newly available state, and only the first control sample is applied at each update. Colored intervals denote three two-sample move blocks; the displayed output and input levels are illustrative rather than recorded data. The shift–reblock operation is illustrated separately in Figure 4.

Figure 2. Algorithmic flow of the matched SCP–MPC comparison. The shift and Transformer branches are alternatives, not simultaneous inputs. Zero initialization is a separate reference baseline. The projection enforces input-decision constraints, not general state-path safety.
| Category | Implemented definition |
| Manipulated variables | Virtual collective thrust and three body moments, ; mapped to four rotor thrusts |
| Setpoints | Hover position m; zero attitude, swing angles, and velocities; hover cable extension m |
| Feedback / measured variables | Ideal simulated full state ; no explicit sensor or observer model |
| Controlled quantities | Position, attitude, cable/payload swing, and selected velocities in the weighted tracking residual; control effort and block changes penalized |
| Disturbances | No injected wind or other external disturbance in the matched benchmark (); no measurement noise |
| Prediction and decisions | s; samples (1.2 s); three two-sample blocks; |
| Input limits | Normalized decision box bounds and rotor-thrust constraints via |
Table 2. MPC variables and assumptions in the matched closed-loop benchmark.
Prediction and move blocking
Four normalized control deviations are optimized over blocks, each lasting two prediction samples. With hover input and scaling ,
The four control components are total rotor thrust and three body moments, which have different units and numerical ranges. The scaling matrix expresses their adjustments about hover through normalized decision variables: a unit change in the corresponding component of represents a change of 2 N in total thrust, 0.15 N m in either of the first two moments, or 0.05 N m in the third moment. These are the ranges implied by the normalized box bounds, not necessarily the final allowable input ranges; the rotor-thrust constraints can impose tighter limits. The scaling values are fixed controller settings, not parameters identified or optimized in this study, and are identical for all three initialization methods.
Objective function and input constraints
The normalized three-block decisions are shared by all initialization methods, not only shifting. The feasible decision set is , where encode the rotor-thrust bounds through the allocation matrix. A finite-horizon residual collects weighted position, attitude, cable/payload swing, and velocity deviations, as well as control and control-move penalties. The implemented objective is
At prediction step (), the predicted UAV position is compared with its desired position
The desired position is fixed at m in the reported tests. The tracking-error vector also includes UAV attitude, cable and payload swing angles, and selected velocities; their reference values are zero. With the prediction step indexed by rather than the hover subscript , its 17 components are
The current MPC update index is omitted here for readability; the weighted stage residual is . The residual’s physical-state weight vector is ; the control-effort and successive-block-difference residual coefficients are and , respectively. Terminal guidance is disabled in the matched closed-loop benchmark.
Sequential convex programming solution
At iteration , finite differences produce the residual Jacobian . The regularized Gauss–Newton approximation to the Hessian is , while the corresponding gradient is . The resulting quadratic subproblem is
The step bounds include a trust radius of 0.15 and the original box bounds. A backtracking line search accepts an improving feasible trial. The maximum SCP iteration count is four; finite-difference step size is . A valid final decision need not satisfy the code’s convergence stopping criterion.
Implementation audit of the matched controller
The MPC formulation was checked against the archived closed-loop simulation code and its saved results. The controller uses a sampling time of s, predicts six future samples, and groups them into three blocks of two samples. It therefore optimizes 12 decision variables, . The SCP algorithm performs at most four iterations, uses a trust-region radius of 0.15, a finite-difference perturbation of , and a regularization term of .
Both the initial-candidate projection and the local quadratic subproblem are solved using an interior-point convex quadratic-programming solver. The Jacobian of the residual is estimated using a forward finite difference when the forward evaluation is valid. If it is not valid, the code uses a backward finite difference instead. It is not generally a central-difference Jacobian.
A five-level backtracking line search accepts a trial step only if it is feasible and reduces the objective. The MPC predictor uses guarded fourth-order Runge–Kutta integration with 0.02-s substeps. The simulated plant uses an adaptive fourth/fifth-order Runge–Kutta integrator.
These checks confirm that the manuscript accurately describes the archived implementation. They do not constitute an independent re-execution or validation of the simulations.
Why the model-based SCP stage remains computationally demanding
Each candidate control sequence requires the 22-state system to be integrated over six prediction intervals. To construct the finite-difference Jacobian, the code perturbs each of the 12 control-decision variables separately. Therefore, each local quadratic approximation requires several additional physical-model rollouts, beyond the trial evaluations used by the line search. As a result, the main computational cost is not necessarily the quadratic-programming subproblem itself. It is the repeated physical prediction required to evaluate candidate controls and estimate sensitivities. The optimization therefore consists of a sequence of model rollouts and QP solves. A learned initial guess can reduce computation only if it reduces the number of these rollouts or QP solves, or their associated costs.
Input feasibility versus closed-loop safety
Before SCP begins, the shifted or Transformer-generated initial candidate is projected onto the admissible control-decision set, which includes the rotor-thrust constraints and normalized box bounds. During SCP, the same input limits are imposed in every local quadratic subproblem, and the returned decision is checked for feasibility.
These checks establish that the recorded solutions satisfy the implemented input limits. They do not guarantee collision avoidance, payload safety, cable-tension limits, robustness to disturbances, closed-loop stability, or recursive feasibility. A feasible control sequence may still produce excessive payload swing, excessive cable tension, or unsafe motion.
In these numerical experiments, a control decision is counted as valid when it satisfies the imposed input constraints and improves the objective. This is different from satisfying the SCP convergence test: an acceptable control decision may be obtained even when the optimizer stops before convergence. Input feasibility alone does not establish safe UAV–payload motion, closed-loop stability, or robustness to disturbances.
Initialization strategies
Zero initialization
The zero-initialization baseline sets the normalized control-decision vector to at every sampling instant. Because the decision variables represent adjustments about the hover input , this choice starts the optimization from the nominal hover command over all three control blocks. It does not mean that the physical rotor thrusts are zero. The initial vector already satisfies the implemented input bounds, so no projection is required. SCP then computes the control sequence using the same prediction model, objective, and constraints as for the shifted and Transformer initializations.
Shifted warm start with fixed move blocking
Let the previous optimized blocks be , with . Expanding the blocks gives . Advancing the horizon by one sample and holding the terminal action gives . Since the next optimizer still uses three fixed two-sample blocks, pairwise averaging yields
This is a shifted warm start adapted to fixed move blocking, not a controller with moving block boundaries. At the first update, when no prior solution exists, it starts from zero. Figure 4 depicts the operation.

Figure 4. One-sample horizon shift followed by reblocking into three fixed two-sample blocks. The averaged sequence is projected onto the admissible control-decision set.
Transformer-based initial control sequence
At each sampling instant, the current state is supplied to the trained network. Its output is a candidate sequence of future virtual control adjustments. This sequence is used only to initialize the SCP iterations; the subsequent control optimization uses the same plant model, objective, and constraints as the zero and shifted cases.
The network was trained to predict 60 control-decision values, but the closed-loop controller optimizes only 12 values (three blocks of four inputs). The implementation therefore retains the first 12 predicted values and computes a feasible initial decision:
The projection imposes the implemented input-decision bounds; it does not guarantee state-trajectory safety. The 60-to-12 reduction is an implementation limitation discussed in § 6.
Transformer training and use in MPC
Why the Transformer was introduced
We first tested a Transformer as a predictor of future UAV motion. In that approach, the network would replace repeated physical simulations inside MPC. The early closed-loop tests were not sufficiently reliable, and restricting rotor commands to a narrow range around hover improved their behavior. We therefore changed the question: can a Transformer provide a useful starting point for the existing physics-based optimizer? In the experiments presented in this paper, the mechanical model is used to predict the motion of the UAV and its suspended payload during MPC optimization. The Transformer provides an initial guess for the control inputs, which is subsequently refined by the optimizer. It does not replace the mechanical model or calculate the predicted motion.
Training data and label quality
The Transformer was trained using 200 examples obtained from earlier SCP optimizations: eight initial examples, eight additional examples, and 184 further examples. Each example contains a simulated UAV state with 22 variables and a corresponding control sequence with 60 values calculated by the SCP solver.
Of the 184 further examples, 132 were recorded as converged. The remaining 52 were accepted as successful solver runs, although convergence was not confirmed. Thus, the training data consist of solutions produced by the numerical optimizer, but they are not necessarily globally optimal.
The data were checked for invalid numerical values. However, the separation between the training, validation, and test datasets was not fully verified for possible overlap. Consequently, we do not claim that these datasets are completely independent.
Transformer input, architecture, and training
The Transformer receives the current UAV state, represented by 22 variables. After normalization, this state is repeated six times, with an additional position value between and . The resulting input has dimensions . These six positions do not represent successive measurements in time; they are used only to organize the input to the network.
The network maps the input to 32 features and processes them using two-head self-attention with 16 key channels. The resulting features are normalized and averaged across the six positions. A fully connected layer with 64 neurons and a ReLU activation then produces the final output of 60 control-decision values.
The network was trained using the Adam optimizer, a learning rate of , minibatches of four, and a maximum of 120 epochs. The network with the lowest validation loss was retained. Input normalization was calculated from the training data, with a minimum standard deviation of 0.05 for each component. Training was configured to run on a CPU.
How the prediction is used in the controller
During training, the Transformer learns to predict 60 control values, representing 15 successive control blocks with four adjustments in each block. However, the MPC controller used in the final experiments employs only three control blocks, corresponding to 12 optimization variables.
For each MPC update, the controller takes the first 12 values predicted by the Transformer as its initial guess. If necessary, these values are adjusted to satisfy the imposed input constraints before optimization begins. The SCP optimizer then improves this initial guess using the same objective function and constraints as the other initialization methods.
This difference between training and implementation is a limitation of the present study. The Transformer is trained to predict a longer control sequence than the one used by the final controller. Training the network directly for the controller’s 12 optimization variables would provide a more consistent approach and could be investigated in future work. The present experiments do not establish how much this mismatch affected performance.
Feasibility projection
For a shifted or Transformer-predicted initial vector , the controller solves
This small quadratic program is solved with a convex quadratic-programming solver. It enforces the implemented control-decision and rotor limits before SCP begins; it does not establish state-trajectory safety. Zero initialization already satisfies these limits and does not need projection. Reported computation times include Transformer prediction and projection when applicable.
Experimental design
The benchmark with independently solved MPC problems tests 12 held-out UAV states, comparing zero initialization with two Transformer models. For the closed-loop comparison, all three initialization methods use the same initial conditions, reference, mechanical model, prediction horizon, input constraints, and solver settings. The only difference at the start of each MPC optimization is the initial guess. Each method then applies its own optimized control action to a separate simulation and uses the resulting state at the next update. The trajectories may therefore differ slightly after the common starting point. An episode is one continuous simulated run of the UAV–payload system, starting from a specified initial state and lasting eight consecutive MPC updates (1.6 s). We test 12 such episodes with different initial conditions, for a total of 96 updates per method. The measured total time is
Physical plant propagation is excluded from this timer. All methods use the same physical predictor, residual, constraints, trust-region and SCP iteration budget. These tests are computational comparisons rather than hardware experiments.
Results
Table 3 reports the benchmark with independently solved MPC problems, in which 12 separate MPC optimization problems are solved without a preceding control solution. Transformer initialization trained with 200 examples reduced mean computation time from 5.268 s with zero initialization to 4.345 s, a reduction of 17.5%. The mean number of SCP iterations decreased from 3.000 to 2.500.
| Initialization | Mean time (s) | Mean SCP iterations |
| Zero | 5.268 | 3.000 |
| Transformer (16) | 4.776 | 2.670 |
| Transformer (200) | 4.345 | 2.500 |
Table 3. Benchmark with independently solved MPC problems: 12 held-out optimization problems. Time and SCP iterations are means per optimization.
Table 4 reports the closed-loop comparison. Each initialization method was tested over 12 episodes with eight consecutive MPC updates per episode. Shifted initialization gave the lowest mean computation time, 4.019 s per update, compared with 5.059 s for zero initialization and 4.802 s for Transformer initialization. Relative to zero initialization, these represent reductions of 20.6% and 5.1%, respectively. Transformer initialization was 19.5% slower than shifted initialization. Shifted initialization was faster in 11 of the 12 episodes. The methods produced similar tracking results under the tested conditions, as illustrated below.
| Initialization | Mean time (s) | Mean SCP iterations | Valid | Converged |
| Zero | 5.059 | 3.000 | 96/96 | 96/96 |
| Shift | 4.019 | 2.354 | 96/96 | 96/96 |
| Transformer (200 labels) | 4.802 | 2.844 | 96/96 | 95/96 |
Table 4. Closed-loop benchmark: 12 held-out episodes and 96 MPC updates per method. Time and SCP iterations are means per MPC update. Valid counts updates satisfying the input constraints and improving the objective; Converged counts updates satisfying the SCP stopping test.
Physical closed-loop trajectories
Figures 5 and 6 show the simulated UAV position and cable and payload swing during the first test episode (1.6 s). All three methods start from the same initial state, but each follows the control actions calculated by its own MPC optimizer. This episode was selected by its order in the test data, not because it produced particularly favorable results.
The position curves almost overlap at the scale shown in Figure 5. Figure 7 therefore shows their small differences relative to shifted initialization on a finer scale. The swing-angle plots provide a corresponding comparison for the suspended system. Similar motion during this episode does not establish identical control actions or comparable behavior under other conditions. These are numerical simulations, not flight measurements.
Figure 5. Recorded quadrotor position components over the first held-out closed-loop episode. Zero, shifted, and Transformer initialization share the same initial condition, predictor, constraints, and SCP settings.
Figure 7. First held-out episode: Euclidean position difference relative to the shifted-initialization trajectory (millimetres). The nonzero curves explain why the absolute position plots overlap; they are not a measure of landing or payload safety.
The differences in Figure 7 and Figure 8 were calculated from the recorded 22-state trajectories for this episode, without running new simulations. They help reveal small differences between methods, but do not establish improved safety or tracking across all episodes.
Figure 8. First held-out episode: Euclidean difference of the two swing-angle magnitudes relative to the shifted-initialization trajectory (degrees). The scale is intentionally expanded and explicitly labelled.
Computation time and SCP iterations across episodes
Figure 9–Figure 11 show how computation time and SCP iteration counts vary across the 12 test episodes. Each plotted value is the average of eight consecutive MPC updates within one episode. The methods start each episode from the same state, but follow their own simulated trajectories after the first control action. The difference between Transformer and shifted initialization was, on average, 0.782 s per update in favor of shifted initialization. The standard deviation of this difference across the 12 episodes was 0.465 s. These values describe variation in the present experiments, not a confidence interval for other flight conditions. The episode-level results show that the size of the computational advantage varies and that the faster method is not always the same.
Figure 9. Matched closed-loop benchmark episode-level mean total time per MPC update, measured as initialization inference plus projection plus SCP, excluding physical plant propagation.
Figure 11. Episode-level mean SCP iterations under the same four-iteration limit.
Separately solved problems and sequential closed-loop MPC
The two benchmarks examine different situations. In the benchmark with independently solved MPC problems, each optimization problem is solved separately, so no solution from a previous MPC update is available for shifting. Here, Transformer initialization is faster than zero initialization. In the closed-loop benchmark, the controller solves successive, related optimization problems. Shifted initialization can reuse the preceding solution and is faster than Transformer initialization in the tested episodes. The findings are consistent because the benchmarks test different situations.
Computation time and real-time requirements
The reported time per MPC update, , includes generating the initial control guess, adjusting that guess to satisfy input constraints when necessary, and carrying out the SCP optimization, as defined in § 7. The time required to advance the simulated UAV–payload system is not included. The physical system was propagated separately using an adaptive fourth/fifth-order Runge–Kutta integrator.
The MPC sampling interval is s, but the measured computation times are several seconds per update. Thus, none of the three methods meets the real-time requirement of the present controller configuration. These experiments compare computational performance; they do not demonstrate readiness for real-time flight.
Methodological precursor: Python reproduction of Transformer-assisted SCP
Before the UAV warm-start study, a separate Python notebook in Google Colab examined the Transformerassisted trajectory-optimization approach described in the cited work. This was a preliminary reproduction study, not a claim of exact reproduction of the authors’ original software or all their published experiments. The robot, obstacle geometry, and solver used in the notebook differ from those of the cable-suspended UAV studied here. In one recorded test, using a Transformer-generated initial guess reduced the SCP optimization time from 6.277 s to 3.561 s, with nearly equal final objective values (approximately 0.0291121). However, generating the initial guess with the trained Transformer (Transformer inference) required another 14.916 s. The combined time was therefore 18.477 s, longer than the conventional SCP solve. In this test, the Transformer reduced the optimization time but did not reduce the overall computation time.
Figure 6. Recorded magnitudes of the two swing-angle pairs over the same episode, calculated as and and converted to degrees. These are angle-vector norms, not exact spatial deflection angles.
A learned candidate also exhibited an obstacle-constraint violation before SCP refinement. This motivated explicit distinction between candidate prediction, feasible initialization, and final optimized trajectory. The notebook should be archived as a separate reproduction record; neither its numerical timing nor its obstacle
result belongs in the matched closed-loop benchmark statistical sample. The reproduction is not a verification of every experiment in the cited publication.
Discussion
The two experiments examine different MPC settings. In the first, each optimization problem is solved separately, without a previous control solution available for reuse. In the second, MPC problems are solved consecutively as the UAV–payload system evolves. Shifted initialization can therefore reuse the optimized control sequence from the preceding update. By contrast, the Transformer used here generates its initial guess from the current state without receiving that preceding solution. This difference helps explain why the Transformer improves on zero initialization for separate problems but does not outperform shifting in the sequential closed-loop comparison. The results do not establish that shifting is always preferable or that a different learned initializer could not perform better.
In the closed-loop comparison, all 96 MPC updates produced control decisions that passed the implemented validity checks for each method. However, one Transformer-initialized update did not satisfy the solver’s recorded convergence test. A valid decision therefore does not necessarily mean that the optimization has converged. The reported computation times include generation of the initial guess, adjustment to satisfy input constraints when needed, and SCP optimization. All three methods required substantially more than the available 0.2 s per update.
The model represents the coupled motion of the UAV, elastic cable, and suspended payload, but does not include detailed rotor aerodynamics or atmospheric turbulence. The study in [12] illustrates how aerodynamic and wind assumptions can affect simulated quadrotor trajectories. The present results therefore do not establish performance under realistic wind disturbances. The guidance study in [13] provides background on conventional quadrotor guidance and the conversion of control commands into individual rotor inputs, but does not examine a suspended payload or MPC warm starts. Neither reference validates the present controller.
The flight-validated predictive controller in [4] operated at 20 Hz on a tiltwing UAV using a specialized implementation. Its aircraft, objectives, hardware, and numerical methods differ from ours, so its execution time is not directly comparable. In our study, each MPC optimization takes several seconds, although a
Figure 10. Paired episode-level runtime difference: Transformer (200 labels) minus shift. Positive values mean that the Transformer approach was slower.
new control action is required every 0.2 s. The measured times include numerical model integration carried out inside the SCP optimization, but exclude the separate integration used to advance the simulated UAV–payload system after a control action is selected. The reported results therefore do not demonstrate real-time operation.
Future work
A first direction is to test a Transformer that improves the shifted previous solution rather than replacing it with a prediction based only on the current state. One possible formulation is
where the learned correction is projected onto the admissible input set. Training directly for the controller’s 12 decision variables, and assessing whether such a predictor reduces total computation time, would address limitations identified here. Optimizer-aware fine-tuning is another possibility. None of these extensions has been tested in this study.
A second direction is to introduce wind disturbances and uncertain aerodynamic forces, together with measurements affected by noise and delay. A Kalman-filter-based estimator could be examined when a suitable stochastic model is available; interval observers or other set-membership estimators could instead be used to represent bounded uncertainty. These approaches would require appropriate models and measurements and should be compared under the same disturbances and sensing conditions. Their effectiveness is not established by the present simulations.
Finally, experiments with instrumented, cable-suspended UAVs could help assess the model and controller under physical operating conditions. Possible measurements include UAV position and attitude, cable tension or extension, and payload motion. Fiber-optic sensing along an instrumented cable could be explored for strain or deformation measurements, subject to sensor packaging, calibration, weight, and data-acquisition constraints. Such sensing should not be confused with the communication tether used by some tethered drones: a fiber-optic communication link alone does not measure cable deformation. Whether distributed fiber-optic sensing is practical for the short, moving suspension studied here remains an open experimental question. Before field deployment, the controller would also need substantially faster computation and tests of estimation, robustness, and safety. The earlier Colab reproduction remains a separate methodological record, not additional UAV flight evidence.
Conclusions
The study provides a controlled numerical comparison of zero, shifted, and Transformer-based initializations within a common sequential convex programming (SCP) model predictive controller for a multirotor UAV with a cable-suspended payload. The principal findings are:
Predictive-control framework. The implemented MPC formulation predicts the coupled UAV–payload motion over a finite horizon, coordinates the control inputs, and explicitly imposes the modeled input constraints. Holding this controller fixed across the experiments makes it possible to isolate the effect of initialization. These are useful features of the formulation, but the experiments do not establish superiority over a non-MPC controller or guarantee physical safety.
Benefit of learned initialization. The Transformer trained on 200 expert-labeled records improves initialization relative to zero in the tested comparisons. In the matched 12-episode closed-loop benchmark, its mean update time is 4.802 s, compared with 5.059 s for zero initialization, a reduction of approximately 5.1%.
Advantage of the shifted baseline. Conventional shifted initialization gives the lowest mean update time (4.019 s) and the fewest mean SCP iterations (2.354, versus 2.844 for the Transformer and 3.000 for zero initialization). The learned initializer therefore does not outperform this inexpensive receding-horizon baseline in the reported benchmark.
Computational and safety limitations. None of the tested strategies meets the 0.20-s control-update deadline. Input feasibility and numerical validity do not imply collision avoidance, cable-tension safety, robustness, closed-loop stability, or recursive feasibility. The findings are limited to the investigated model, training data, horizon, constraints, and solver configuration.
A positive outcome is the establishment of a consistent numerical framework in which a mechanically coupled UAV–payload model, constrained predictive control, and alternative initialization strategies can be evaluated without changing the underlying controller. The MPC formulation allows anticipated payload motion and actuator limits to enter the optimization explicitly, while the matched experiments show that initialization choice has a measurable effect on computational effort. The Transformer results demonstrate that learned initialization can improve on a zero baseline, even though it does not surpass shifting in this case. This combination of a clearly specified comparison protocol and a clear negative result against a strong conventional baseline is useful for deciding when learned warm starts warrant their additional training and inference costs. The present simulations do not establish that MPC is superior to other control architectures; that question would require a separate matched controller comparison.
Code and data availability
The source code and numerical datasets are not publicly available with this preprint. The numerical results are reported from archived simulation records; independent recomputation of the published summary statistics requires access to those records and the corresponding numerical implementation. The accompanying manuscript source package contains the LaTeX and figure assets, but not the simulation code or underlying benchmark datasets. All reported results are numerical simulations; no hardware flight validation is claimed.
Shifted initialization with fixed move blocking
Let , where each block belongs to and occupies two sampling intervals. With the expansion operator , the one-sample shift and terminal hold produce . The fixed-grid reblocking operator averages successive pairs, giving
This candidate is projected onto the same polyhedral admissible set used by the learned initialization. This appendix states the exact algorithmic convention; it is not a claim that shifting changes the move-block boundaries.
References
References
- [1]F. A. Goodarzi, D. Lee, and T. Lee, “Geometric Control of a Quadrotor UAV Transporting a Payload Connected via Flexible Cable,” 2014, arXiv:1407.8164. https://arxiv.org/abs/1407.8164. M. Tolba and B. Shirinzadeh, “Modeling and control of a Multirotor UAV with a cable-suspended rigid body payload: A double-pendulum approach,” Robotics and Autonomous Systems, vol. 193, art. 105060, 2025. doi:10.1016/j.robot.2025.105060.
- [3]P. Ru and K. Subbarao, “Nonlinear Model Predictive Control for Unmanned Aerial Vehicles,” Aerospace, vol. 4, no. 2, art. 31, 2017. doi:10.3390/aerospace4020031.DOI
- [4]D. Rohr, M. Studiger, T. Stastny, N. R. J. Lawrance, and R. Siegwart, “Nonlinear Model Predictive Velocity Control of a VTOL Tiltwing UAV,” IEEE Robotics and Automation Letters, vol. 6, no. 3, pp. 5776–5783, 2021. doi:10.1109/LRA.2021.3084888.DOI
- [5]W. Gu, S. Primatesta, and A. Rizzo, “Physics-informed Neural Network for Quadrotor Dynamical Modeling,” Robotics and Autonomous Systems, vol. 171, art. 104569, 2024. doi:10.1016/j.robot.2023.104569.DOI
- [6]J. B. Rawlings, D. Q. Mayne, and M. M. Diehl, Model Predictive Control: Theory, Computation, and Design, 2nd ed., Noc Hill Publishing, 2024.
- [7]B. Ding and Y. Yang, Model Predictive Control, Wiley, 2024. doi:10.1002/9781119471455.DOI
- [8]F. Borrelli, A. Bemporad, and M. Morari, Predictive Control for Linear and Hybrid Systems. Cambridge University Press, 2017. doi:10.1017/9781139061759.DOI
- [9]Y. Wang and S. Boyd, “Fast Model Predictive Control Using Online Optimization,” IEEE Trans. Control Systems Technology, vol. 18, no. 2, pp. 267–278, 2010.
- [10]R. Cagienard, P. Grieder, E. C. Kerrigan, and M. Morari, “Move Block Strategies in Receding Horizon Control,” Journal of Process Control, vol. 17, no. 6, pp. 563–570, 2007.
- [11]D. Celestini, D. Gammelli, T. Guffanti, S. D’Amico, E. Capello, and M. Pavone, “Transformer-Based Model Predictive Control: Trajectory Optimization via Sequence Modeling,” IEEE Robotics and Automation Letters, vol. 9, no. 11, pp. 9820–9827, 2024. doi:10.1109/LRA.2024.3466069.DOI
- [12]B. Davoudi, E. Taheri, K. Duraisamy, B. Jayaraman, and I. Kolmanovsky, “Quad-Rotor Flight Simulation in Realistic Atmospheric Conditions,” AIAA Journal, vol. 58, no. 5, 2020. doi:10.2514/1.J058327.DOI
- [13]T.-S. Tsay, “Guidance and Control Laws for Quadrotor UAV,” WSEAS Transactions on Systems and Control, vol. 9, pp. 606–613, 2014.
- [14]M. Diehl, H. G. Bock, and J. P. Schlöder, “A Real-Time Iteration Scheme for Nonlinear Optimization in Optimal Feedback Control,” SIAM J. Control Optim., vol. 43, no. 5, pp. 1714–1736, 2005.DOI






