Energy-Deviation Running Costs for iLQR Model-Predictive Swing-Up: A Small Controlled Comparison on Pendulum and Cart-Pole Tern-84X Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/energy-cost-trajectory-optimisation Abstract—We ask whether replacing the quadratic running This paper tests a simple bridge between the two: a physics- cost of an iLQR model-predictive controller by a penalty on based running cost 12 wE (E − E ∗ )2 on the deviation of the the deviation of mechanical energy from its upright value helps mechanical energy from its upright value, used inside iLQR- swing-up of an underactuated pendulum and cart-pole. Energy terms in predictive swing-up are not new; this is a replication- MPC alone or in addition to the quadratic cost. We ask four style controlled comparison. We reimplement in numpy an iLQR- questions, fixed before the experiments: (H1) does it raise MPC with three running costs (quadratic, energy deviation, swing-up success over the quadratic cost, (H2) does it lower both), two controls (control penalty and terminal cost only; control effort, (H3) is it less sensitive to its weight, and (H4) energy cost keeping the cart terms) and an Aström–Furuta does it match energy shaping with LQR catch? energy-shaping controller with LQR catch. At hand-set default weights (5 seeds of 20 random starts) the energy cost raises Contributions are modest and empirical, and the idea of an pendulum success from 0.80 to 0.95 over the quadratic cost and energy term in a predictive objective is not ours (Sec. II): a lowers effort on both tasks (pendulum 12.24 vs 17.24, cart-pole controlled comparison of three running costs and an energy- 42.03 vs 74.77). Most of this depends on the default weights. With shaping baseline, all reimplemented here, on two tasks with state and control weights tuned jointly on separate seeds and the random initial states; two controls that separate energy guid- frozen choices evaluated on 10 fresh seeds, success is the same on the pendulum (0.99 vs 0.99) and at the ceiling on the cart-pole; ance from dropping the quadratic state cost; joint tuning of the energy cost keeps a lower effort on the pendulum (11.9 vs state and control weights with an equal budget per method 13.5, paired difference 1.7 [1.2, 2.1]) and not on the cart-pole on selection seeds, and evaluation of the frozen choices on (36.7 vs 35.2, interval contains zero), where the control-only cost ten fresh seeds with effort versus time-to-upright fronts; a does as well. Under tighter limits and with more solver iterations tuned energy-shaping baseline; and tighter limits and more the pendulum ordering of energy over quadratic cost holds; on the cart-pole the costs are not distinguishable. A tuned energy- solver iterations. We report negative and tied outcomes as such shaping controller uses less effort on the pendulum than the (Sec. V). energy cost (10.4). This is a small CPU study with reimplemented baselines, a noiseless model and no model mismatch; it does not II. RELATED WORK support general claims. Index Terms—trajectory optimisation, iLQR, model predictive iLQR and MPC. iLQR/DDP in a receding horizon is a control, energy shaping, swing-up, cost design standard tool for nonlinear trajectory optimisation [3]; Gauss– Newton and sequential-quadratic-programming views of the I. INTRODUCTION algorithm are given in [4], [5], and generic tooling in [6]. Swing-up of an underactuated pendulum or cart-pole is Control limits can be enforced inside the DDP backward a standard test of nonlinear control [1]. We consider two pass [7] or with interior-point variants for general inequality families of solutions. Energy-shaping controllers exploit the constraints [8]; our implementation only clips the controls in physics: they pump energy until the upright value is reached the forward rollout. Sampling-based MPC is an alternative [9]. and then hand over to a local stabiliser [2]. Optimisation-based The design of the stage cost inside MPC has been studied from controllers, such as iLQR/DDP in a receding horizon [3], a suboptimality viewpoint [10]; that work adapts the stage cost are commonly run with a quadratic cost on the state and by learning under stabilising constraints, whereas our energy the control (the algorithm itself is not restricted to it); we cost is a different, hand-designed form of stage-cost shaping, hypothesise that such a cost gives a weak signal far from the without any guarantee. goal (the far-start success metric tests this). Energy-based swing-up. The classic controller drives the pendulum energy to its upright value and switches to a Tern-84X is the codename of an autonomous study, not a person. Produced stabiliser [2]. Its gains are hard to choose; tuning by search by the Stemma autonomous AI research pipeline; the topic was chosen to is studied in [11], and a reachability analysis of a switched cover the field. Every reported number comes from logged runs in the linked repository and every reference was checked against arXiv, Crossref, DataCite energy/LQR cart-pole controller is in [12]. The pendulum as or OpenAlex. a benchmark is surveyed in [1]. Energy terms in predictive swing-up. Energy-based ideas and all MPC variants share the terminal cost 12 e⊤ N Qf eN . The inside model-predictive controllers are not new. Seman et horizon objective multiplies the running cost by the time step al. [13] treat swing-up of a Furuta pendulum together with and leaves the terminal cost unscaled: model-predictive stabilisation and describe, as one option, ∑ N −1 the classical comparison of the total energy with its upright J = ∆t ℓ(xt , ut ) + 21 e⊤ N Qf eN . (4) value. Husmann and Aschemann [14] show that an NMPC can t=0 perform swing-up and stabilisation of an inverted pendulum in The energy term has gradient wE (E − E ∗ )∇E and Gauss– one controller through the choice of the cost functional and the Newton Hessian wE ∇E∇E ⊤ . Note that E = E ∗ is a whole prediction horizon, study the influence of the NMPC design level set containing the upright point, so the running cost alone parameters, and compare it with an alternative nonlinear con- does not select the goal; the terminal cost does. troller. Our searches also returned a 2009 conference paper on Controls added in revision. The energy cost above contains nonlinear model-predictive swing-up of an inverted pendulum no quadratic state term at all, in particular no running penalty on a cart whose abstract describes a nonlinear program with on the cart position and velocity. Two further costs separate an energy-based objective function; the citation tool could not energy guidance from that removal: resolve it, so it is named here but not in the reference list. We therefore do not claim that an energy-deviation running cost ℓctrl = 21 ru2 , (5) in an MPC or iLQR objective is new, and we do not present ℓenergy+cart = 21 wE (E − E ∗ )2 + 12 ru2 + 12 q (Qxx x2 + Qvv v 2 ), it as a new method. (6) What this paper adds, and what it does not. Relative to that work the paper is a replication-style controlled comparison where Qxx and Qvv are the cart-position and cart-velocity on two simulated plants, and its additions are about the proto- entries of the default Q (ℓenergy+cart is defined for the cart-pole col, not the cost: (i) two controls that separate energy guidance only, q is the scale of Sec. VI). ℓctrl has no running state cost; from the removal of the quadratic state cost (a control-penalty- the terminal cost is the same for all MPC variants. In the plus-terminal-cost baseline and a cart-pole energy cost that tuning below the control weight is scaled, r = ρ r0 , with r0 keeps the cart running terms); (ii) joint tuning of the state the default of Sec. IV. weight and the control weight with an equal, documented Energy shaping + LQR (reimplemented). Pendulum: budget per cost, on selection seeds that are disjoint from the u = −k(E − E ∗ )θ̇, k = 1. Cart-pole: a commanded cart evaluation seeds, followed by evaluation of the frozen picks on acceleration −k(E ∗ − E)θ̇ cos θ (k = 5, saturated) plus a cart fresh paired starts, with effort versus time-to-upright reported PD term, mapped to a force by partial feedback linearisation. as Pareto fronts; (iii) a tuning budget for the energy-shaping A discrete LQR takes over near the upright with a hysteresis baseline and analytical checks of its implementation; (iv) a switch back; its gain solves the DARE of the RK4 step tighter torque limit and more solver iterations. We did not linearised at the upright, with the state weight Q and control find a study with this protocol in the limited search we ran (a weight r of the quadratic running cost (Sec. IV), not scaled by few queries, several sources), which does not show that none ∆t. Catch to LQR happens when |θ| < 0.35 and the energy exists. is within 25% of E ∗ (in magnitude), with the switch back to swing-up at |θ| > 0.8; near rest the angular velocity is III. METHOD replaced by ±0.05 to kick off the rest point. The cart PD term Plants. Pendulum: θ̈ = g sin θ+u−bθ̇ (unit mass and length, is −1.0 x−1.5 ẋ added to the saturated acceleration command θ = 0 upright, |u| ≤ 3, below the gravity torque so that swing- (|a| ≤ 8). Viscous damping is b = 0.05 (pendulum) and 0.02 up needs pumping). Cart-pole: cart mass 1, pole point mass (cart-pole). Weights and gains were set by hand before the 0.3 at length 0.5, |F | ≤ 8, track |x| ≤ 2.4. Dynamics are reported runs (Sec. IV). integrated with RK4 at ∆t = 0.05 s; the controller’s model Energy-shaping parameters. The parameters of the reim- equals the plant. plemented controller that are searched in the tuning of Sec. V iLQR-MPC. At each step a horizon of N = 30 steps are the gain k, the catch angle and the catch energy band, and is optimised with iLQR (central finite-difference Jacobians on the cart-pole also the position and velocity gains kp , kd of the RK4 step, Gauss–Newton cost Hessian, a Levenberg– of the cart PD term; the switch-back angle, the rest kick and Marquardt term added to Quu , a backtracking line search over the saturation of the commanded acceleration stay fixed. The five step sizes, controls clipped to the limits in the rollout), implementation is checked against identities it must satisfy warm-started by shifting the previous solution: 25 iterations (Table VII); no reference implementation was available to on the first call, 4 afterwards. The first control is applied. compare with. Running costs. With e the wrapped state error, E the mechanical energy of the pole and E ∗ its upright value, IV. EXPERIMENTAL SETUP ℓquad = 21 e⊤ Qe + 12 ru2 , (1) Protocol. Per seed s ∈ {0, . . . , 4} we draw 20 initial states with a generator seeded by s: pendulum θ ∼ U (−π, π), θ̇ ∼ ℓenergy = 21 wE (E − E ∗ )2 + 12 ru2 , (2) U (−1, 1); cart-pole x ∼ U (−0.5, 0.5), θ ∼ U (−π, π), v = 0, ℓboth = ℓquad + 21 wE (E − E ∗ )2 , (3) θ̇ ∼ U (−1, 1). All systems see identical states for a given seed. An episode lasts 6 s (120 steps), noiseless, model equals plant. There is no train/test split: nothing is learned. The weights of pendulum cart-pole the main table are hand-set; the weights and gains used in 20 80 the tuned comparison are selected on seeds that the evaluation 60 control effort never uses (below). 15 Metrics. Success: at the end the state is upright (|θ| < 0.15, 40 10 |θ̇| < 0.6, and |v| < 0.6 for the cart-pole) after being held for at least 1 s, and the cart never left the track. Far success: 5 20 success restricted to starts with |θ0 | > π/2. Control effort: ∑ 2 t ut ∆t over the 6 s episode, averaged over the 20 starts 0 0 ad E gy ng ad E gy ng Qu uad+ Ener hapi Qu uad+ Ener hapi of a seed, failed episodes included. Time to upright: start of the final hold, failures counted as 6 s. The same definitions, Q E-s Q E-s time step and episode length are used for every system. Tables report mean ± sample std over seeds (each seed is one number: the mean over its 20 starts), so success rates have a resolution Fig. 1. Control effort per system and task at default weights (lower is better). of 0.05 per seed. Bars: mean over 5 seeds; error bars: ± one sample std over seeds. Quad+E: iLQR-Quad+Energy; E-shaping: EnergyShaping-LQR. Systems. iLQR-Quad, iLQR-Energy (ours), iLQR- Quad+Energy and EnergyShaping-LQR, all reimplemented here. Two controls were added in revision, iLQR-Control and and we treat p-values as descriptive. More than 30 pairwise (cart-pole only) iLQR-Energy+Cart (Sec. III). Default weights tests are reported without multiple-comparison correction, and r0 , Q, Qf : Q = diag(1, 0.1), r0 = 0.05, Qf = diag(100, 10) success rates are discrete at 0.05 per seed. Per-seed values are for the pendulum; Q = diag(1, 10, 0.1, 0.1), r0 = 0.01, in the run registry. Qf = diag(50, 500, 50, 50) for the cart-pole; wE = 1. There Scale and bookkeeping. CPU only, shared machine, is no tuning budget for the main table. The weights, the numpy. One run (20 episodes) took from under half a minute energy-shaping gains and the cart force limit were set by to a few minutes for iLQR-MPC and under a second for hand during development; the trial runs behind the force energy shaping; two of the later runs stalled on the loaded limit were not logged, so the claim that these values were machine and took about 11 minutes of wall-clock each, above fixed before the reported runs rests on an unlogged pilot and our 6-minute target (the simulation is deterministic, so their cannot be checked from the run registry. The sweeps over outputs do not depend on timing). Summed run time is about wE and over a scale q multiplying Q (not Qf or r) use the 80 minutes. An early version of the run driver mislabelled values {0.01, 0.1, 1, 10, 100} and seeds 0–2; they were not runs; those runs were discarded before the registry was first used to pick the main-table weights. committed and everything was re-run, so 12 early log files have Revision protocol (joint tuning, frozen evaluation). The no registry row. One smoke run that crashed before writing protocol was written before any tuning or evaluation run of the metrics is kept in the registry as failed. This is a small study revision (experiments/PROTOCOL.md). Each method has and the conclusions are limited accordingly. 25 configurations per task, evaluated on the selection seeds 100–102 (20 starts each): iLQR-Quad over the state-weight V. RESULTS scale q and the control-weight scale ρ = r/r0 (5×5, q and wE Table I gives the main results at default weights, now in {0.01, 0.1, 1, 10, 100}, ρ from 0.3 to 30), iLQR-Energy and including the two controls described in Sec. III, and Fig. 1 iLQR-Energy+Cart over wE and ρ (5 × 5), iLQR-Control over the control effort of the four systems of the first round. The 25 values of ρ from 0.1 to 30, and EnergyShaping-LQR with tuned comparison on fresh seeds follows the hypotheses. its default plus 24 seeded random draws of the gain k (1 decade H1 (success over quadratic): not supported. On the around the default), catch angle (0.15 to 0.7 rad), catch energy pendulum iLQR-Energy succeeds more often than iLQR-Quad band (0.05 to 0.6 of E ∗ ) and, on the cart-pole, kp ∈ [0, 3] and (0.95 vs 0.80; paired p = 0.003, n = 5 seeds), and more kd ∈ [0, 4]. The rule (highest success, ties by lowest effort, so on far starts (0.88 vs 0.52). On the cart-pole both reach then lowest time to upright) picks one configuration, and up 1.00, a ceiling, so there is no difference to detect. By our pre- to 6 further configurations whose success is within 0.05 of stated criterion (higher on both tasks) H1 is not supported. The the best and that are non-dominated in effort and time are pendulum gap holds at default weights only: with state and kept as front members; the choices were written to disk before control weights tuned jointly on separate seeds and evaluated the evaluation. The frozen configurations are run on the 10 on fresh seeds, the two costs have the same success on the evaluation seeds 200–209, which no earlier run used, with the pendulum (0.99 vs 0.99, Table IV). same 20 starts per seed for every system. Intervals are 95% t H2 (lower effort): supported at default weights; after intervals of paired differences over the seeds. joint tuning it holds on the pendulum only. By the registered Statistics. Welch and paired t-tests over seed means, with test (main group, control effort) iLQR-Energy has lower effort n = 5 (main table), n = 3 (sweeps) or n = 10 (frozen than iLQR-Quad on both tasks (pendulum 12.24 vs 17.24, evaluation, where we report intervals). They have little power paired p = 0.002; cart-pole 42.03 vs 74.77, p = 0.0004). The TABLE I MAIN RESULTS AT DEFAULT WEIGHTS, MEAN ± SAMPLE STD OVER 5 SEEDS (20 RANDOM STARTS EACH). BOLD: BEST, UNDERLINE: SECOND BEST AT THE PRINTED PRECISION; TIES SHARE THE RANK, SO TIED VALUES (E.G. CART-POLE SUCCESS 1.00) CARRY NO RANKING INFORMATION. ILQR-ENERGY+CART EXISTS FOR THE CART-POLE ONLY. System Task success ↑ far success ↑ effort ↓ time (s) ↓ n EnergyShaping-LQR pendulum 0.98 ± 0.04 0.96 ± 0.10 10.78 ± 1.66 2.25 ± 0.27 5 iLQR-Quad pendulum 0.80 ± 0.08 0.52 ± 0.16 17.24 ± 3.68 2.75 ± 0.30 5 iLQR-Quad+Energy pendulum 0.95 ± 0.04 0.88 ± 0.08 12.23 ± 2.20 2.33 ± 0.20 5 iLQR-Control pendulum 0.79 ± 0.10 0.50 ± 0.20 16.66 ± 3.58 2.79 ± 0.32 5 iLQR-Energy (ours) pendulum 0.95 ± 0.04 0.88 ± 0.08 12.24 ± 2.22 2.33 ± 0.20 5 EnergyShaping-LQR cart-pole 0.97 ± 0.04 0.93 ± 0.10 54.91 ± 3.66 2.70 ± 0.12 5 iLQR-Quad cart-pole 1.00 ± 0.00 1.00 ± 0.00 74.77 ± 3.48 1.71 ± 0.07 5 iLQR-Quad+Energy cart-pole 1.00 ± 0.00 1.00 ± 0.00 69.52 ± 2.44 1.66 ± 0.07 5 iLQR-Control cart-pole 0.99 ± 0.02 0.98 ± 0.04 50.05 ± 11.60 1.88 ± 0.15 5 iLQR-Energy+Cart cart-pole 0.99 ± 0.02 0.98 ± 0.04 47.37 ± 8.57 1.80 ± 0.13 5 iLQR-Energy (ours) cart-pole 1.00 ± 0.00 1.00 ± 0.00 42.03 ± 6.03 1.79 ± 0.06 5 size of the cart-pole gap is mostly a product of the default Q. TABLE II In the sweep (Table XII, seeds 0–2) iLQR-Quad at q = 0.1 CLOSED-LOOP MEAN OF THE TWO STATE-COST TERMS UNDER ILQR-QUAD+ENERGY AT DEFAULT WEIGHTS (SEEDS 0–2, ALL TIME STEPS); keeps success 1.00 and a time to upright of 1.79 s with effort RATIO IS ENERGY OVER QUADRATIC, COMPUTED PER RUN AND THEN AVERAGED 50.2, against 43.3 for iLQR-Energy at wE = 1. The gap OVER THE SEEDS. therefore shrinks from 31.5 to 6.9 on those seeds, where it is not clearly distinguishable (Table XIII). After joint tuning Task energy term quad. term ratio of the state weight and the control weight on separate seeds pendulum 14.03 0.87 15.64 cart-pole 0.17 4.99 0.03 (below), the frozen picks on fresh seeds use 11.9 (Energy) vs 13.5 (Quad) on the pendulum, a paired difference Quad minus Energy of 1.7 with 95% interval [1.2, 2.1], and 36.7 vs 35.2 on the cart-pole, where the difference is −1.6 [−5.5, 2.4] and the time to upright) H4 therefore holds on both tasks against the interval contains zero (Tables IV and V). So the lower cart- tuned controller, and the lower effort of energy shaping on the pole effort of the default-weight table is not found once both pendulum remains. costs are tuned. On the pendulum the direction persists across Energy alone vs. combined. On the pendulum iLQR- the whole q range (11.1 vs 13.9–15.9). Effort is measured over Energy and iLQR-Quad+Energy are equal in success (0.95) episodes that include failures, and iLQR-Quad reaches the goal and within 0.01 in effort (12.24 vs 12.23). On the cart-pole nominally earlier on the cart-pole at default weights (1.71 vs they differ: the combined cost has a faster upright time (1.66 1.79 s; not distinguishable at n = 5); a speed/effort trade-off vs 1.79 s, paired p = 0.008) but higher effort (69.52 vs is a possible explanation, not a demonstrated one. 42.03, paired p = 0.0002), closer to iLQR-Quad (74.77). To H4 (versus energy shaping): mixed. On the pendulum see which term carries the combined cost we logged, along EnergyShaping-LQR has the highest success (0.98) and lowest its closed-loop trajectories, the mean of the two state terms ∗ 2 1 ⊤ 2 (E − E ) and 2 e Qe (Table II). The energy term is 15.64 1 effort. Its difference from iLQR-Energy is not distinguishable with 5 seeds for success (0.98 vs 0.95) or time to upright times the quadratic term on the pendulum and 0.03 times on (2.25 vs 2.33 s), but it uses less effort (10.78 vs 12.24, paired the cart-pole (mean over seeds of the per-run ratio), where p = 0.005, lower in all 5 seeds). On the cart-pole iLQR- only the light pole’s energy is counted. This is consistent Energy is better on success (1.00 vs 0.97, not distinguishable), with the combined cost behaving like the energy cost on the effort (42.03 vs 54.91) and time to upright (1.79 vs 2.70 s). pendulum and more like the quadratic cost on the cart-pole. By the registered test (success and time to upright) H4 is It is a measurement of magnitudes, not of gradients, so the supported on the cart-pole and not refuted on the pendulum, terms’ sizes may explain the pattern but do not prove it. where energy shaping is nominally better on both and better on Controls at default weights. The main table now has effort. These are default gains on 5 seeds. With the energy- the two controls. On the pendulum, iLQR-Control (control shaping parameters searched (25 configurations per task on penalty and terminal cost only) reaches success 0.79 against separate seeds, below) and 10 fresh seeds, the pendulum 0.95 for the energy cost, with effort 16.66 vs 12.24 (paired picture changes: iLQR-Energy has the higher success (0.99 p = 0.005 for success and 0.003 for effort, n = 5): the vs 0.96, difference E-shaping minus Energy −0.04 [−0.06, pendulum advantage of the energy cost over the quadratic −0.01]) and the shorter time to upright (2.32 vs 2.51 s), cost is not explained by removing the quadratic state cost, while energy shaping keeps the lower effort (10.4 vs 11.9). because that removal alone does not reproduce it. On the cart- On the cart-pole the search selected the default gains and pole, iLQR-Control has effort 50.05 and iLQR-Energy+Cart iLQR-Energy is better on effort and time to upright by a 47.37, against 42.03 for the energy cost and 74.77 for the wide margin (Table V). By the registered test (success and quadratic cost. Most of the cart-pole effort gap to iLQR-Quad therefore appears when the quadratic state cost is dropped, with or without energy guidance; the effort of the energy cost pendulum cart-pole minus theirs is −8.0 (control only) and −5.3 (energy with 2.6 cart terms), paired p = 0.041 and 0.012 at n = 5 without 2.8 time to upright (s) correction for multiple tests, and it is not found after tuning 2.4 (below). Success on the cart-pole is at the ceiling for all of them. 2.6 2.2 Joint tuning and frozen evaluation. Each cost has the same tuning budget: 25 configurations per task on 3 selection seeds 2.4 2.0 (seeds 100–102, disjoint from the evaluation), over the state weight and the control-weight scale ρ jointly (Sec. IV). The 2.2 1.8 rule that picks one configuration and the Pareto candidates was fixed and run before any evaluation run (Table III); the picks 10.0 12.5 15.0 17.5 40 50 60 are then evaluated on 10 fresh seeds (seeds 200–209). Several control effort control effort picks lie on the edge of the grid (ρ = 30 for iLQR-Control on both tasks and for iLQR-Quad and iLQR-Energy on the Energy Quad Control-only Energy+Cart E-shaping cart-pole, q = 100 for iLQR-Quad on the pendulum), so the optimum of those costs may lie outside the grid; we did not Fig. 2. Effort against time to upright of the frozen configurations on the extend it. evaluation seeds (mean over 10 seeds, bars: ±1 standard error over seeds). Filled: the pick of each method; hollow: the other Pareto-front members of Result of the tuned comparison. On the pendulum the the selection seeds. Lower left is better. tuned quadratic and energy costs have the same success (0.99 and 0.99) and time to upright (difference Quad minus Energy 0.03 s, interval [−0.03, 0.08]), and the energy cost uses less ceiling). Both plants’ torque and force limits are multiplied effort (Table V). Control-only is worse than the energy cost by 0.6500. The scale was chosen by a pilot at default weights on all three pendulum metrics (success 0.81). On the cart- (group pilot_limits, seed 300, scales 0.8000, 0.6500 and pole, iLQR-Quad, iLQR-Control, iLQR-Energy and iLQR- 0.5000) as the loosest scale at which the cart-pole success Energy+Cart are not distinguishable in success, effort or time of iLQR-Quad or iLQR-Energy fell below 1; the picks of the to upright (all intervals of Table V for these three contain zero), nominal tuning are evaluated unchanged, without re-tuning, so on the cart-pole the energy term does not add anything on the same fresh seeds (Tables VIII and IX). Success is measurable once the weights are tuned, and neither does it now below the ceiling on both tasks (cart-pole iLQR-Energy cost anything. Within each cost the front members evaluated 0.89, pendulum 0.83). On the pendulum iLQR-Energy is better on the fresh seeds are in Fig. 2 and Table VI: on the pendulum than iLQR-Quad on all three metrics (success difference Quad the evaluated quadratic and control-only configurations are all minus Energy −0.06 [−0.10, −0.01], effort 0.6 [0.2, 1.0], time dominated by at least one energy configuration, while none 0.09 [0.01, 0.17]; 10 seeds, intervals without correction for the of the energy configurations is dominated by a quadratic one; number of comparisons). On the cart-pole iLQR-Quad, iLQR- on the cart-pole the single evaluated energy configuration is Control and iLQR-Energy cannot be told apart on any metric dominated by a quadratic one. The fronts rest on at most 6 (all their intervals contain zero), and iLQR-Energy+Cart has a configurations per cost chosen on 3 selection seeds and are higher success than iLQR-Energy (difference 0.03 [0.00, 0.06]) small samples. with effort and time not distinguishable. Energy shaping, with Energy-shaping implementation and tuning. The reim- gains tuned at the nominal limit and not re-tuned, falls to plemented controller was checked against identities it must success 0.20 on the cart-pole. satisfy (Table VII): the energy rate along the plant under the More solver iterations. The frozen picks of the four iLQR swing-up law, the realised cart acceleration of the partial- costs (energy shaping has no solver) are re-run on the same feedback-linearisation map, the sign of the command, and the evaluation seeds with 20 iLQR iterations per step instead stability of the LQR catch on the linearised plant; and with the of 4 (the first call keeps 25), without re-tuning (Tables X limit lifted tenfold it swings up on both plants. These checks and XI). The ranking on the pendulum is unchanged and the show internal consistency with the textbook law; they are not gaps are larger: iLQR-Quad has success 0.89 against 0.99 for a comparison with a reference implementation, which was iLQR-Energy (difference Quad minus Energy −0.10 [−0.13, not available. The search over its parameters (the default plus −0.06]), with effort 16.6 vs 11.9; the quadratic pick is worse 24 seeded random draws per task) chose different parameters with more iterations than with 4 (success 0.99, effort 13.5). on the pendulum and the default parameters on the cart-pole On the cart-pole the success of all four is at the ceiling or (Table III); the budget is the same number of configurations as within 0.05 of it, effort is higher for every cost than at 4 for the MPC costs, but the parameter space is five-dimensional iterations, and iLQR-Quad and iLQR-Control cannot be told on the cart-pole and three-dimensional on the pendulum, so apart from iLQR-Energy on any metric; iLQR-Energy+Cart the search is sparser there. has higher effort than iLQR-Energy (difference 2.8 [0.4, 5.2], Tighter limits (a condition where success is not at the 10 seeds, no correction for the number of comparisons). A TABLE III FROZEN PICKS. SELECTION-SEED MEANS (SEEDS 100–102) OF THE CONFIGURATION CHOSEN BY THE RULE (HIGHEST SUCCESS, TIES BY LOWEST EFFORT, THEN TIME): STATE WEIGHT (q OR wE ), CONTROL-WEIGHT SCALE ρ = r/r0 , AND FOR ENERGY SHAPING THE GAIN k, CATCH ANGLE θc , CATCH ENERGY BAND ϵc AND CART PD GAINS kp , kd . Task Cost Selected success effort time (s) pendulum E-shaping k=0.2245, θc =0.6247, ϵc =0.3478 0.98 11.9 2.87 pendulum Quad q=100, r/r0 =10 0.98 15.6 2.64 pendulum Control-only r/r0 =30 0.68 22.2 3.33 pendulum Energy wE =10, r/r0 =10 1.00 14.4 2.60 cart-pole E-shaping k=5, θc =0.3500, ϵc =0.2500, kp =1, kd =1.500 0.97 54.8 2.61 cart-pole Quad q=0.1000, r/r0 =30 1.00 28.0 1.68 cart-pole Control-only r/r0 =30 1.00 31.8 1.78 cart-pole Energy+Cart wE =1, r/r0 =10 1.00 31.3 1.71 cart-pole Energy wE =1, r/r0 =30 1.00 28.8 1.70 TABLE IV FROZEN PICKS ON THE EVALUATION SEEDS 200–209: MEAN ± SAMPLE STD OVER THE 10 SEEDS (20 STARTS EACH). BOLD: BEST AT THE PRINTED PRECISION. Task Cost success ↑ far success ↑ effort ↓ time (s) ↓ pendulum E-shaping 0.96 ± 0.04 0.91 ± 0.09 10.42 ± 1.93 2.51 ± 0.29 pendulum Quad 0.99 ± 0.02 0.99 ± 0.03 13.53 ± 1.68 2.34 ± 0.20 pendulum Control-only 0.81 ± 0.09 0.61 ± 0.17 16.36 ± 4.18 2.82 ± 0.37 pendulum Energy 0.99 ± 0.02 0.99 ± 0.05 11.87 ± 2.12 2.32 ± 0.22 cart-pole E-shaping 0.99 ± 0.02 0.98 ± 0.05 52.24 ± 5.55 2.58 ± 0.25 cart-pole Quad 0.98 ± 0.03 0.96 ± 0.09 35.18 ± 7.31 1.85 ± 0.16 cart-pole Control-only 0.99 ± 0.02 0.97 ± 0.05 35.06 ± 5.58 1.84 ± 0.12 cart-pole Energy+Cart 0.97 ± 0.04 0.94 ± 0.09 38.04 ± 8.40 1.88 ± 0.17 cart-pole Energy 0.98 ± 0.02 0.96 ± 0.06 36.74 ± 5.24 1.85 ± 0.09 TABLE V TABLE VI PAIRED DIFFERENCES ON THE EVALUATION SEEDS: SYSTEM MINUS ILQR-ENERGY, DOMINANCE AMONG THE EVALUATED CONFIGURATIONS (SEED MEANS OVER THE MEAN OVER THE 10 SEEDS WITH 95% t INTERVAL (POSITIVE EFFORT OR TIME: EVALUATION SEEDS; A CONFIGURATION IS DOMINATED WHEN ANOTHER IS AT THE SYSTEM IS WORSE THAN THE ENERGY COST). LEAST AS GOOD ON SUCCESS, EFFORT AND TIME TO UPRIGHT AND STRICTLY BETTER ON ONE). Task minus Energy: ∆ success ∆ effort ∆ time (s) Task Cost configs not dominated dominated by Energy Energy configs dom pendulum Quad 0.00 [−0.02, 0.02] 1.7 [1.2, 2.1] 0.03 [−0.03, 0.08] pendulum Control-only −0.18 [−0.25, −0.12] 4.5 [2.4, 6.6] pendulum 0.51 [0.34, 0.68]E-shaping 6 4 0 pendulum E-shaping −0.04 [−0.06, −0.01] −1.5 [−1.9, −1.0] pendulum 0.19 [0.04, 0.34]Quad 2 0 2 pendulum Control-only 2 0 2 cart-pole Quad 0.00 [−0.02, 0.02] −1.6 [−5.5, 2.4] −0.01 pendulum [−0.07, 0.06] Energy 4 3 – cart-pole Control-only 0.01 [−0.02, 0.03] −1.7 [−4.7, 1.4] −0.01 [−0.07, 0.05] cart-pole Energy+Cart −0.01 [−0.03, 0.01] 1.3 [−4.6, 7.2] cart-pole0.11] 0.02 [−0.06, E-shaping 2 0 1 cart-pole E-shaping 0.01 [−0.02, 0.03] 15.5 [9.2, 21.8] cart-pole 0.73 [0.50, 0.95]Quad 3 2 0 cart-pole Control-only 2 1 1 cart-pole Energy+Cart 3 0 1 cart-pole Energy 1 0 – control-limited backward pass was not run; the controls are still clipped in the rollout only. VI. ABLATIONS AND ANALYSIS Where the method fails. The pendulum failures of iLQR- We sweep wE (iLQR-Energy) and the scale q of the Energy are more frequent among far starts (0.88 far vs 0.95 quadratic state cost (iLQR-Quad) over {0.01, . . . , 100} with overall), the regime the cost was meant to help; energy shaping seeds 0–2 (Table XII, Figs. 3 and 4); the other weights stay at does better there (0.96). With a small weight the energy cost their defaults. loses its advantage on the pendulum: at wE = 0.01 success is H3 (less sensitive to weight): refuted. The registered test 0.83 and effort 15.5, the level of iLQR-Quad (Table XII). On is the spread of the success rate across weights, and it is the the cart-pole a large weight costs effort (58.5 at wE = 100). same for the two costs on each task: across the five weights the What this does not show. It does not show that the mean success runs from 0.83 to 1.00 for the energy cost and energy cost is more robust under model error or noise (none from 0.83 to 1.00 for the quadratic cost on the pendulum, and was tested), nor that the ranking holds with a control-limited from 0.98 to 1.00 and from 0.98 to 1.00 on the cart-pole. Effort backward pass (not run), nor that it generalises beyond two tells a mixed story: the energy cost’s effort varies more than the low-dimensional plants. quadratic cost’s on the pendulum (lowest to highest mean 10.2 TABLE VII CHECKS OF THE ENERGY-SHAPING CONTROLLER. ERRORS ARE MAXIMA OVER 200 pendulum cart-pole RANDOM STATES WITH THE LIMIT LIFTED; SUCCESS WITH THE LIMIT LIFTED 20 Energy (wE) TENFOLD OVER 5 SEEDS (20 STARTS EACH). 18 100 Quad (q) control effort Check pendulum cart-pole 16 80 max |Ė − Ėlaw | 2.8 × 10−14 9.7 × 10−16 14 max |a − acmd | – 8.0 × 10−15 swing command moves E toward E ∗ 1.00 1.00 12 60 LQR catch: spectral radius of A − BK 0.854 0.936 success, limit ×10 (5 seeds) 1.00 1.00 10 40 10−2 100 102 10−2 100 102 pendulum cart-pole weight weight 1.0 1.0 Fig. 4. Control effort vs. the swept weight, per task. Mean ± one sample std 0.9 0.9 success rate over 3 seeds, log x-axis. 0.8 0.8 VII. LIMITATIONS 0.7 0.7 Energy (wE) This is a small CPU study. Two low-dimensional, noiseless Quad (q) plants with a perfect model; 5 seeds of 20 starts each for 0.6 0.6 the default-weight table and 3 for the sweeps, and 10 fresh 10−2 100 102 10−2 100 102 seeds for the frozen evaluation, so statistical tests have limited weight weight power and success rates sit at a ceiling on the cart-pole at nominal limits. All baselines are reimplemented by us, Fig. 3. Success rate vs. the swept weight (wE for iLQR-Energy, q for iLQR- not taken from reference code; the energy-shaping controller Quad), per task. Mean ± one sample std over 3 seeds, log x-axis. was checked against identities it must satisfy, not against a reference implementation, and its search is a random search of 25 configurations in a space of three (pendulum) or five to 15.5 vs 13.9 to 15.9) and less on the cart-pole (43.3 to 58.5 (cart-pole) parameters. The default MPC weights of the main vs 50.0 to 102.4). The two weights are not commensurable table were set by hand and their a-priori status rests on an (wE multiplies a squared energy, q a squared state error), so unlogged pilot. In the tuning, several picks lie on the edge a “same decade” comparison is only indicative. of the grid (the optimum of those costs may lie outside it), Success depends on the weight. Both costs improve with selection used 3 seeds, the Pareto fronts evaluated are at most 6 larger weights on the pendulum: wE ≥ 10 and q = 100 give configurations per cost, and no multiple-comparison correction success 1.00 in the 3 seeds, above the default-weight values. is applied to the intervals and tests. The tighter-limit condition With the best swept weight iLQR-Quad is also at 1.00, which applies the nominal picks without re-tuning, so it favours no removes the H1 gap. method by construction but is not an optimum for any; its Effort across the sweep. Table XIII compares iLQR-Quad scale was chosen by a pilot at default weights. The solver check at every q with iLQR-Energy at its default wE = 1, paired varies the number of iterations only; control limits are handled over seeds 0–2. On the pendulum the quadratic cost uses more by clipping in the rollout, not inside the backward pass, and effort at every q (by 2.8 to 4.7). On the cart-pole the difference no sampling-based or longer-horizon baseline was run. Model is 31.5 at the default q = 1 and 55.4 to 59.1 for larger q, but mismatch, noise, other horizons, a double pendulum and a only 6.7 and 6.9 for q = 0.01 and q = 0.1, with paired p of varied terminal cost were not tested. The term-magnitude 0.046 and 0.090 at n = 3. The reverse reading matters too: diagnostic does not isolate a mechanism. The hysteresis switch iLQR-Energy at wE = 0.01, 0.1 and 100 (51.6, 50.9, 58.5) is and the cart-pole shaping law are our own design choices, and not below iLQR-Quad at q ≤ 0.1 (50.0, 50.2). So on the cart- the energy cost for the cart-pole counts the pole energy only. pole the energy cost is nominally cheaper than the re-weighted Solve times were measured on a shared machine and are not quadratic cost only at wE = 1 and wE = 10 (43.3 and 48.3), reported as a result. by a margin that 3 seeds do not clearly resolve. Replaced analysis. The post-hoc comparison of the first VIII. CONCLUSION round, in which one weight per cost was picked on the three In a small controlled comparison at hand-set default weights, sweep seeds and the five-seed means included those seeds, is an energy-deviation running cost made iLQR-MPC swing- replaced by the joint tuning on separate seeds and the frozen up more successful than the quadratic cost on the pendulum evaluation on fresh seeds of Sec. V; its table is no longer in and cheaper in control effort on both plants. Most of that the paper. advantage is tied to the default weights. With the state and TABLE VIII TIGHTER LIMITS (LIMIT ×0.6500): THE FROZEN PICKS OF TABLE III ON THE EVALUATION SEEDS, MEAN ± SAMPLE STD OVER 10 SEEDS. BOLD: BEST AT THE PRINTED PRECISION. Task Cost success ↑ far success ↑ effort ↓ time (s) ↓ pendulum E-shaping 0.74 ± 0.09 0.48 ± 0.17 7.61 ± 1.39 3.38 ± 0.49 pendulum Quad 0.78 ± 0.09 0.55 ± 0.20 8.74 ± 1.34 3.21 ± 0.41 pendulum Control-only 0.66 ± 0.12 0.29 ± 0.21 9.78 ± 2.13 3.56 ± 0.51 pendulum Energy 0.83 ± 0.07 0.65 ± 0.19 8.11 ± 1.57 3.13 ± 0.37 cart-pole E-shaping 0.20 ± 0.09 0.06 ± 0.09 66.89 ± 5.94 5.03 ± 0.49 cart-pole Quad 0.89 ± 0.06 0.76 ± 0.13 25.95 ± 5.17 2.48 ± 0.20 cart-pole Control-only 0.90 ± 0.07 0.78 ± 0.14 24.72 ± 4.05 2.47 ± 0.23 cart-pole Energy+Cart 0.92 ± 0.05 0.84 ± 0.13 26.58 ± 4.09 2.46 ± 0.16 cart-pole Energy 0.89 ± 0.07 0.77 ± 0.16 25.25 ± 4.72 2.46 ± 0.21 TABLE IX ming Algorithmic Templates,” arXiv preprint arXiv:2207.06362, 2022. TIGHTER LIMITS: PAIRED DIFFERENCES, SYSTEM MINUS ILQR-ENERGY, WITH [Online]. Available: https://arxiv.org/abs/2207.06362 95% t INTERVALS OVER THE 10 SEEDS. [5] Abhijeet and S. Chakravorty, “A Sequential Quadratic Programming Perspective on Optimal Control,” arXiv preprint arXiv:2510.03475, Task minus Energy: ∆ success ∆ effort (s) [Online]. Available: https://arxiv.org/abs/2510.03475 ∆ time 2025. [6] J. A. E. Andersson, J. Gillis, G. Horn, J. B. Rawlings, and M. Diehl, pendulum Quad −0.06 [−0.10, −0.01] 0.6 [0.2, 1.0] 0.09 [0.01, 0.17] “CasADi: a software framework for nonlinear optimization and optimal pendulum Control-only −0.18 [−0.25, −0.11] 1.7 [1.2, 2.2] 0.44 [0.30, 0.58] control,” Mathematical Programming Computation, 2019. [Online]. pendulum E-shaping −0.09 [−0.13, −0.05] −0.5 [−0.8, −0.2] 0.25 [0.03, 0.47] Available: https://doi.org/10.1007/s12532-018-0139-4 cart-pole Quad 0.01 [−0.02, 0.03] 0.7 [−1.1, 2.5] [7] Y. Tassa, N. Mansard, and E. Todorov, “Control-limited differential 0.02 [−0.07, 0.11] cart-pole Control-only 0.01 [−0.01, 0.03] 0.08] programming,” 2014 IEEE International Conference on −0.5 [−2.7, 1.6] 0.01 [−0.07,dynamic cart-pole Energy+Cart 0.03 [0.00, 0.06] 1.3 [−1.7, 4.3] 0.00 [−0.09,Robotics 0.09] and Automation (ICRA), 2014. [Online]. Available: https: cart-pole E-shaping −0.69 [−0.78, −0.60] 41.6 [36.4, 46.8] 2.57 [2.20,//doi.org/10.1109/ICRA.2014.6907001 2.93] [8] A. Pavlov, I. Shames, and C. Manzie, “Interior Point Differential Dynamic Programming,” arXiv preprint arXiv:2004.12710, 2020. [Online]. Available: https://arxiv.org/abs/2004.12710 [9] G. Williams, N. Wagener, B. Goldfain, P. Drews, J. M. Rehg, control weights of every cost tuned jointly on separate seeds B. Boots, and E. A. Theodorou, “Information theoretic MPC for model- (the same budget of 25 configurations per method and task) based reinforcement learning,” 2017 IEEE International Conference and the frozen choices evaluated on 10 fresh seeds, the success on Robotics and Automation (ICRA), 2017. [Online]. Available: https://doi.org/10.1109/ICRA.2017.7989202 gap is absent on both plants, and the cart-pole effort gap is not [10] L. Beckenbach, P. Osinenko, and S. Streif, “Model predictive found: iLQR-Quad, iLQR-Control, iLQR-Energy and iLQR- control with stage cost shaping inspired by reinforcement learning,” Energy+Cart are not distinguishable there (Table V), so on arXiv preprint arXiv:1906.02580, 2019. [Online]. Available: https: //arxiv.org/abs/1906.02580 the cart-pole the default-weight effort gap is attributed to the [11] C. S. Lee and D. E. Chang, “Enhancement of Energy-Based Swing-Up weights and to dropping the quadratic state cost, not to energy Controller via Entropy Search,” arXiv preprint arXiv:1904.01214, 2019. guidance. On the pendulum the energy cost has a lower effort [Online]. Available: https://arxiv.org/abs/1904.01214 [12] M. K. M. Jaffar, “Reachability Guarantees for Cart-Pole Swing-Up than the tuned quadratic cost (11.9 vs 13.5), a difference that and Stabilization,” arXiv preprint arXiv:2606.28627, 2026. [Online]. persists under tighter limits and with more solver iterations, Available: https://arxiv.org/abs/2606.28627 and the control-only cost is worse than both. The tuned energy- [13] P. Seman, B. Rohal’-Ilkiv, M. Juh´as, and M. Salaj, “Swinging up the Furuta Pendulum and its Stabilization Via Model Predictive shaping controller still uses less effort than the energy cost Control,” Journal of Electrical Engineering, 2013. [Online]. Available: on the pendulum, and is far worse on the cart-pole under https://doi.org/10.2478/jee-2013-0022 tighter limits. The tuned costs were evaluated without model [14] R. Husmann and H. Aschemann, “Comparison and Benchmarking of NMPC for Swing-Up and Side-Stepping of an Inverted Pendulum with error, noise or a control-limited backward pass, on two low- Underlying Velocity Control,” IFAC-PapersOnLine, 2021. [Online]. dimensional plants; these remain untested. Available: https://doi.org/10.1016/j.ifacol.2021.10.363 REFERENCES [1] O. Boubaker, “The inverted pendulum: A fundamental benchmark in control theory and robotics,” International Conference on Education and e-Learning Innovations, 2012. [Online]. Available: https://doi.org/ 10.1109/iceeli.2012.6360606 [2] K. Åström and K. Furuta, “Swinging up a pendulum by energy control,” Automatica, 2000. [Online]. Available: https://doi.org/10.1016/ S0005-1098(99)00140-5 [3] Y. Tassa, T. Erez, and E. Todorov, “Synthesis and stabilization of complex behaviors through online trajectory optimization,” 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, 2012. [Online]. Available: https://doi.org/10.1109/IROS.2012.6386025 [4] V. Roulet, S. Srinivasa, M. Fazel, and Z. Harchaoui, “Iterative Linear Quadratic Optimization for Nonlinear Control: Differentiable Program- TABLE X FROZEN PICKS WITH 20 ILQR ITERATIONS PER STEP ON THE EVALUATION SEEDS: MEAN ± SAMPLE STD OVER 10 SEEDS. BOLD: BEST AT THE PRINTED PRECISION. ENERGY SHAPING HAS NO SOLVER AND IS NOT REPEATED. Task Cost success ↑ far success ↑ effort ↓ time (s) ↓ pendulum Quad 0.89 ± 0.04 0.77 ± 0.12 16.64 ± 2.31 2.54 ± 0.24 pendulum Control-only 0.81 ± 0.08 0.61 ± 0.16 16.38 ± 4.05 2.81 ± 0.37 pendulum Energy 0.99 ± 0.02 0.98 ± 0.05 11.92 ± 2.15 2.32 ± 0.22 cart-pole Quad 0.97 ± 0.03 0.95 ± 0.06 42.42 ± 7.03 1.91 ± 0.14 cart-pole Control-only 0.97 ± 0.03 0.95 ± 0.06 44.17 ± 8.31 1.93 ± 0.16 cart-pole Energy+Cart 0.97 ± 0.03 0.94 ± 0.07 45.52 ± 8.55 1.94 ± 0.15 cart-pole Energy 0.98 ± 0.02 0.97 ± 0.05 42.72 ± 7.38 1.89 ± 0.11 TABLE XI MORE SOLVER ITERATIONS: PAIRED DIFFERENCES, SYSTEM MINUS ILQR-ENERGY, WITH 95% t INTERVALS OVER THE 10 SEEDS. Task minus Energy: ∆ success ∆ effort ∆ time (s) pendulum Quad −0.10 [−0.13, −0.06] 4.7 [3.7, 5.7] 0.22 [0.11, 0.32] pendulum Control-only −0.18 [−0.23, −0.13] 4.5 [2.6, 6.3] 0.48 [0.34, 0.63] cart-pole Quad −0.01 [−0.03, 0.01] −0.3 [−1.8, 1.2] 0.02 [−0.03, 0.07] cart-pole Control-only −0.01 [−0.03, 0.01] 1.5 [−0.2, 3.1] 0.05 [−0.01, 0.11] cart-pole Energy+Cart −0.02 [−0.04, 0.01] 2.8 [0.4, 5.2] 0.05 [−0.01, 0.11] TABLE XII WEIGHT SENSITIVITY: MEAN OVER SEEDS 0–2 AT EACH VALUE OF THE SWEPT WEIGHT (wE FOR THE ENERGY COST, q FOR THE QUADRATIC COST). Cost Task Metric 0.01 0.1 1 10 100 Energy pend. success 0.83 0.95 0.97 1.00 1.00 Energy pend. effort 15.5 12.5 11.1 10.2 10.2 Energy pend. time (s) 2.69 2.35 2.23 2.18 2.20 Energy cart-p. success 1.00 0.98 1.00 1.00 1.00 Energy cart-p. effort 51.6 50.9 43.3 48.3 58.5 Energy cart-p. time (s) 1.91 1.95 1.81 1.78 1.93 Quad pend. success 0.83 0.83 0.83 0.92 1.00 Quad pend. effort 15.3 15.4 15.9 15.5 13.9 Quad pend. time (s) 2.69 2.69 2.67 2.41 2.18 Quad cart-p. success 0.98 1.00 1.00 1.00 1.00 Quad cart-p. effort 50.0 50.2 74.8 98.7 102.4 Quad cart-p. time (s) 1.90 1.79 1.70 1.96 2.04 TABLE XIII EFFORT OF ILQR-QUAD AT EACH q MINUS EFFORT OF ILQR-ENERGY AT wE = 1 (∆ EFFORT, POSITIVE: ENERGY COST IS CHEAPER), PAIRED t-TEST OVER SEEDS 0–2, AND THE SUCCESS RATE OF ILQR-QUAD AT THAT q. Task q=0.01 0.1 1 10 100 pend. ∆ effort 4.2 4.2 4.7 4.4 2.8 paired p 0.059 0.057 0.047 0.0003 0.044 Quad success 0.83 0.83 0.83 0.92 1.00 cart-p. ∆ effort 6.7 6.9 31.5 55.4 59.1 paired p 0.046 0.090 0.027 0.003 0.008 Quad success 0.98 1.00 1.00 1.00 1.00