Fast Monte Carlo Analysis for 6-DoF Powered-Descent Guidance via GPU-Accelerated Sequential Convex Programming
Paper · 2024 · Govind M. Chari, Abhinav G. Kamath, Purnanand Elango et al.
Summary
A rocket landing trajectory that works from the intended starting position tells an engineer little about how the guidance algorithm will behave when the vehicle starts somewhere else. A Monte Carlo study addresses that question by drawing many starting conditions and solving for a separate trajectory from each. The computational cost can be substantial. Each trajectory requires an iterative optimization, and a serial implementation finishes one case before starting the next. The authors ask when a graphics processing unit, or GPU, can finish the whole batch sooner by solving many cases concurrently. Their demonstration uses six-degree-of-freedom powered descent, in which the trajectory specifies the vehicle’s orientation as well as its motion towards the landing site. The computational approach is an example of GPU & parallel computing.
The optimization must decide how to steer the vehicle and when it should reach the ground. It must also respect constraints throughout the descent, including between the times explicitly represented in the optimization. The authors use a reformulation that adds a state variable to accumulate violations as the equations of motion are integrated. In the exact formulation, requiring that variable to end at its starting value rules out a positive accumulation of violations. The numerical algorithm gives each time interval a small allowance and works to finite integration and optimization tolerances. Successful convergence is therefore part of the feasibility claim.
The solver uses sequential convex programming. It takes a reference trajectory, constructs a convex approximation around it, solves that approximation, and uses the result as the next reference. The convex problems are solved with a customized first-order method called proportional-integral projected gradient. Its operations use small, dense matrices and vectors and avoid matrix factorizations and inversions. Each GPU thread carries out the entire sequence for its assigned case. The CPU sends the input batch to the GPU and receives the computed trajectories after the kernel finishes, leaving the intermediate solver work on the device.
In a Monte Carlo study that varied initial position, the outer solver converged within 25 iterations for all 256 sampled trajectories. The timing comparison found that the serial CPU implementation finished sooner for small batches, while the parallel GPU implementation finished sooner for large ones. On the tested hardware, the crossover fell roughly between 1024 and 2048 runs. These findings answer different questions. The convergence result describes the sampled landing problems under a common solver configuration. The timing result shows when concurrent execution overcame the slower performance of an individual GPU solve in this implementation.
Deep dive: Fast Monte Carlo Analysis for 6-DoF Powered-Descent Guidance via GPU-Accelerated Sequential Convex Programming
The paper tests when GPU batching speeds up Monte Carlo studies of rocket landing guidance and explains how the solver checks constraints between time points. · about 38 minutes to read
The problem and its context
From a landing trajectory to a study of the guidance algorithm
Powered-descent guidance is the problem of finding control inputs that bring a vehicle from a specified starting state to a soft landing at a designated location. The inputs have to slow and steer the vehicle while respecting operating limits. The paper uses a propellant objective, so an acceptable landing is also judged by how much propellant the trajectory consumes. The optimizer chooses the descent duration along with the trajectory. That choice matters because changing the time available also changes the motion and the control effort required to reach the ground.
An individual solve asks whether the optimizer can find an acceptable trajectory for a particular starting state. A Monte Carlo study repeats the question over sampled conditions. The paper motivates this work in the context of guidance, navigation, and control, where a development team wants to know how often an optimization converges, how much time it takes, and how propellant consumption varies. A successful run from a nominal position contributes one observation to that assessment. Dispersing the starting conditions gives the team a way to see how the same guidance procedure behaves when the nominal assumptions change.
Keeping the cases independent is central to the computational opportunity. Once a case has its own starting condition and problem data, its optimization can proceed without the answer from a neighboring case. A case whose optimizer needs more work can continue on its own sequence of approximations. A case that finishes early has a result of its own. The arithmetic within an optimization still has an order, but the different optimizations in the study can overlap. The paper exploits that distinction between dependence within a trajectory calculation and independence across trajectory calculations.
The distinction also explains why the authors measure the time needed to solve a batch. An engineer running a large study cares about when the set of trajectories is ready to analyze. An engineer making a decision about a single descent would care about the latency of an individual solve. The two measures can lead to different judgments about the same hardware. The paper’s comparison concerns the first of those workloads.
Why orientation belongs in the trajectory
The paper describes translational powered descent as one approach to the guidance problem. Translation describes where the vehicle is and how its position changes. A formulation that also represents rotation can express requirements on the vehicle’s orientation and angular motion as part of the optimization. A prescribed viewing direction is an example of a condition whose relevance follows from the attitude of the vehicle, even when its position is acceptable.
To explain the need for attitude constraints, the authors point to a NASA project called Safe and Precise Landing — Integrated Capabilities Evolution. Terrain-relative navigation cameras and hazard-detection lidar place requirements on how the vehicle is pointed. The line of sight illustrates why a feasible position history alone gives an incomplete description of a landing for such applications. The rotational part of the trajectory provides a place to represent orientation requirements and the dynamics that determine whether those requirements can be met.
The landing problem used in the study couples rotation to translation through thrust. The thrust vector is expressed in coordinates attached to the vehicle, while the translational acceleration is evaluated in an inertial frame. The vehicle’s orientation determines how one vector is transformed into the other. The force also consumes propellant, so the mass used in the acceleration calculation changes during the descent. The paper includes an independent torque input through reaction control thrusters. These relationships make the trajectory a coupled history of state and control instead of a collection of positions joined after the calculation.
Why the optimizer solves a succession of simpler problems
The authors place powered descent in the broader class of continuous-time, non-convex trajectory optimization problems. The continuous-time part means that the equations of motion and the path constraints are posed throughout an interval. The non-convex part means that combining two feasible trajectories or control histories can produce a candidate that falls outside the feasible set. The nonlinear motion equations are one source of that difficulty. A thrust magnitude with both a lower and an upper bound gives another way to see why a simple average of acceptable inputs need not be acceptable.
The paper describes global optimization for this class of problems as potentially prohibitively expensive. Sequential convex programming instead works around a reference trajectory. Local information about the nonlinear problem supplies a convex approximation that is easier to solve. The solution of the approximation then provides the reference for the next round. The reason to repeat the calculation is that the approximation depends on where it was built. As the trajectory changes, so do the derivatives and the predicted effect of the next change.
The general sequence in the paper’s introduction is convexification, discretization, and solution of the resulting convex problem. In the particular formulation that the authors implement, the state transition over a time interval is defined through numerical integration, and the optimizer obtains the derivative of that transition around the current reference. This organization matters because a practical subproblem needs coefficients that describe the effect of changing a node value on the next node. The dynamics are still evaluated along the interval to obtain those coefficients.
Discretization introduces a separate question about feasibility. A finite grid supplies a manageable number of decision variables. The underlying vehicle still moves through every interval between grid nodes. Even a trajectory whose sampled values lie within their limits can pass outside them in between. The authors rely on earlier work on continuous-time constraint reformulation to address that gap. Their GPU implementation brings the reformulation into a batch solver that also represents nonlinear equations of motion.
What previous GPU approaches covered
The paper distinguishes its workload from earlier GPU simulations of projectiles. A forward simulation propagates a state through specified dynamics. The landing problem has to choose a control history and a duration that meet constraints and reach prescribed terminal conditions. Forward propagation is one part of that calculation. It also has to be repeated while the optimizer searches for a suitable trajectory.
The authors discuss earlier GPU trajectory optimization that considered limits on speed and acceleration and included keep-out regions. They characterize that formulation as restricted because it omitted vehicle dynamics and general non-convex path constraints. The distinction is especially relevant when the output is intended to represent a feasible vehicle trajectory. A geometric path that respects spatial restrictions and a trajectory generated under nonlinear vehicle dynamics answer different engineering questions.
A second distinction concerns where a GPU routine can be called. The paper notes that widely used computing software can offer access to GPU arithmetic through a host-side interface. Its examples include PyTorch.
The authors make the same point about the linear algebra and optimization libraries they consider for this particular implementation. CPU packages can supply operations or convex solvers to a serial program. Some GPU-accelerated routines still expect the CPU to invoke them. Here the intended unit of work is a full trajectory solve inside a device thread, including each convex subproblem. The authors therefore implement the arithmetic and the subproblem solver in CUDA. They also give the solver direct access to the structure of the landing optimization so that it can apply the relevant operations without constructing a generic solver input at each outer iteration.
The method, step by step
The calculation starts with a continuous-time statement of the landing problem. The authors put the unknown descent duration on a fixed normalized interval, add a state that records constraint violations, and choose a finite representation for the controls. This gives a trajectory problem whose node values have to agree with integrated segment dynamics. An outer algorithm repeatedly approximates that agreement with affine equations. An inner algorithm solves each convex approximation. All of this happens separately for each Monte Carlo case.
From a sampled starting state to a landing trajectory
The steps in order.
State, control, and the terminal objective
The general formulation represents the state by a vector. A state describes the information needed to evaluate how the vehicle evolves. The control vector contains the inputs the optimizer can choose. The differential equation makes that dependence explicit.
dξ(t)/dt = F(ξ(t), ζ(t))
Here t is physical time, ξ(t) is the state at that time, and ζ(t) is the control. The derivative dξ(t)/dt is the instantaneous rate of change of the state. F is the function that gives this rate from the current state and control. The equation applies from the starting time to the final time t_f.
A path constraint is a requirement throughout the motion. The authors allow both inequalities and equalities in the general formulation.
g(ξ(t), ζ(t)) ≤ 0
The vector g collects the inequality functions. The comparison applies component by component against zero. A positive component represents a violation, while a component within the bound can be zero or negative.
h(ξ(t), ζ(t)) = 0
The vector h collects the equality functions. Each component has to equal zero. The state ξ(t) and control ζ(t) are the same quantities used to evaluate the dynamics.
Boundary conditions specify selected state components at the beginning and end. Selecting components gives the formulation room to leave quantities free where the problem calls for it.
Eᵢ ξ(0) = zᵢ, E_f ξ(t_f) = z_f
Eᵢ is the matrix that selects the prescribed components of the initial state ξ(0), and zᵢ gives their required values. E_f selects the prescribed components of the terminal state ξ(t_f), and z_f gives the corresponding terminal targets. The subscripts i and f distinguish the initial and final endpoints.
The general objective depends linearly on the terminal state. This is the form the paper calls a Mayer objective, meaning that the objective is read from the state at the endpoint.
minimize ξ(t_f)ᵀ e_cost over t_f, ξ, ζ
The superscript ᵀ indicates transpose, so the product is a scalar. The vector e_cost selects and weights the terminal quantity that enters the objective. The variables being chosen are the final time t_f and the state and control histories ξ and ζ. In the landing application, the mass state records the effect of propellant use during the descent, making the final state suitable for expressing a propellant objective.
The landing dynamics represented in the calculation
The demonstration uses a state with mass, position, translational velocity, orientation, and angular velocity. Its notation distinguishes a reference frame attached to the vehicle from an inertial frame in which the translational motion is expressed.
ξ = (m, r_I, v_I, q_I←B, ω_B)
Here m is the vehicle mass, r_I is inertial position, and v_I is inertial velocity. The quaternion q_I←B represents orientation and relates body coordinates to inertial coordinates. The angular velocity ω_B is expressed in body coordinates. The subscripts I and B denote the inertial and body frames, and the arrow in the quaternion subscript records the direction of the transformation.
ζ = (T_B, γ_B)
Here T_B is the thrust vector in body coordinates and γ_B is the independent torque command, also expressed in body coordinates. Their ordered pair is the original control vector ζ.
The entries of the dynamics work together. Mass decreases at a rate proportional to thrust magnitude. Position changes at the current velocity. To evaluate translational acceleration, the dynamics rotate the thrust vector into the inertial frame, divide it by the current mass, and include gravity. The quaternion changes according to the angular velocity. The angular velocity evolves under the torque from the offset thrust, the term coupling angular velocity and inertia, and the independently commanded torque. The paper omits aerodynamic forces and moments in this demonstration.
The path inequalities cover dry mass, a position requirement, speed, tilt, angular velocity, thrust direction, thrust magnitude, and the independent torque magnitude. The minimum and maximum thrust magnitudes are two separate requirements on the same vector. They enter the general inequality vector g, so they are assessed through the path-constraint reformulation along with the other vehicle inequalities. The simple box projection on the control variables in the convex solver applies to the time-dilation control in this demonstration. The fact that the solver includes a box projection therefore does not make the vehicle’s thrust bounds componentwise boxes.
Free duration on a fixed interval
If the time at touchdown is unknown, the optimizer faces a moving endpoint on the physical clock. The authors give the numerical problem a fixed interval by introducing a normalized time coordinate. The link from that coordinate to physical time is an increasing function. Its derivative describes how much physical time elapses per unit of normalized time.
s(τ) = dt(τ)/dτ
The symbol τ denotes normalized time on the interval from 0 to 1. The function t(τ) is the physical time corresponding to τ. The dilation s(τ) is positive, which keeps physical time advancing along the normalized trajectory.
t_f = ∫₀¹ s(τ) dτ
The integral accumulates the dilation over the full normalized interval. Its value is the descent duration t_f. The lower limit 0 and upper limit 1 are the endpoints of normalized time, and dτ denotes integration in that coordinate.
dξ(τ)/dτ = s(τ) F(ξ(τ), ζ(τ))
In this expression ξ and ζ are evaluated on the normalized interval. F still gives the physical-time dynamics. Multiplying it by s converts that derivative to a rate per unit of normalized time. The state encountered at a given normalized time depends on the original control and on how quickly physical time passes there.
The dilation becomes an additional control, denoted together with the original inputs by u. Holding the numerical grid fixed is compatible with changing the physical duration assigned to its intervals. This also means that control interpolation on the grid takes place on the normalized clock. When the dilation varies, a direct interpretation of the grid as equally spaced physical times would miss that part of the trajectory.
Recording violations during integration
The authors next introduce the state variable y to record whether the trajectory strays outside its path constraints. The construction uses the positive part of each inequality component. A negative inequality value already satisfies the requirement, so it contributes nothing. A positive value is squared and added to the accumulation. Equality components are also squared, allowing departures in either direction to contribute.
dy(τ)/dτ = s(τ) [1ᵀ |g(ξ(τ), ζ(τ))|₊² + 1ᵀ h(ξ(τ), ζ(τ))²]
Here y(τ) is the violation accumulator, and dy(τ)/dτ describes how it grows along normalized time. The operation |·|₊ keeps the positive part of each component. The square is taken component by component in both terms. The symbol 1 is a vector of ones of the appropriate size, so each product with 1ᵀ sums one set of squared components. The factor s converts the rate to the normalized time coordinate.
Both contributions are non-negative. If a continuous trajectory violates one of the constraints at an instant and the violation persists in a neighborhood of that time, the integral increases. An inequality that is satisfied later cannot cancel a previous violation, and equality errors of opposite sign cannot cancel either. That is the reason for writing the path requirements in this form.
y(0) = y(1)
The expressions y(0) and y(1) are the starting and ending values on the normalized interval. Requiring them to agree means that the non-negative accumulation over the entire descent is zero. In the exact continuous formulation, the positive dilation and continuity of the constraint evaluations connect zero accumulation to satisfaction of the original path requirements throughout the interval.
The authors write the augmented state as x, consisting of ξ and y, and the augmented control as u, consisting of ζ and s. The augmented dynamics f contain both the vehicle equations and the violation equation. Integrating f over a segment gives a candidate endpoint for every state component, including the accumulator. This placement of the violation check inside the dynamics is what lets the discrete optimizer use information from the interior of a segment.
Choosing node values and connecting them with integration
The discrete problem has N nodes in normalized time, ordered from 0 to 1. The node index k identifies the interval beginning at τₖ and ending at τₖ₊₁. The time spent on the interval is obtained from its dilation.
Δtₖ = ∫[τₖ, τₖ₊₁] s(τ) dτ
Here Δtₖ is the physical duration of segment k, and the bracket after the integral denotes its normalized integration limits. The authors specify bounds on dilation and on segment duration, as well as an upper bound on total duration. These bounds govern how the optimizer can distribute physical time over the normalized grid.
The authors assign a control vector to each node. Values between nodes come from a first-order hold, meaning that the control interpolates linearly in normalized time.
u(τ) = [(τₖ₊₁ − τ)/(τₖ₊₁ − τₖ)] uₖ + [(τ − τₖ)/(τₖ₊₁ − τₖ)] uₖ₊₁
The vectors uₖ and uₖ₊₁ are the augmented controls at the left and right nodes. The first bracket weights the left control, and the second weights the right control. At a node, the corresponding endpoint value is recovered. The same interpolation applies to the dilation because it belongs to u.
The state over a segment comes from integrating the differential equation. The discrete optimizer also carries a separate state value for each node. It therefore needs an equation that makes the independently represented nodes agree with the propagated state.
xₖ₊₁ = xₖ + ∫[τₖ, τₖ₊₁] f(x(τ), u(τ)) dτ
Here xₖ is the starting value used for integration, x(τ) is the state obtained as the integration proceeds, and xₖ₊₁ is the state decision variable at the right node. The function f gives the augmented state derivative. The integral depends on the endpoint controls through the first-order hold.
xₖ₊₁ = fₖ(xₖ, uₖ, uₖ₊₁)
The function fₖ is the full segment propagation map defined by the preceding integral. Its inputs are the starting state and the two endpoint controls. The equality joins consecutive segments into one dynamically consistent trajectory. A discrepancy between the propagated endpoint and the node value is called a dynamics defect.
For the numerical problem, the authors replace exact equality of the accumulator’s endpoints with a small upper bound on its increase over each segment.
yₖ₊₁ − yₖ ≤ ϵ
The values yₖ and yₖ₊₁ are the accumulator entries of the adjacent state vectors. The tolerance ϵ is small and positive. The authors introduce the relaxation for a constraint qualification concerning the independence of active constraint gradients. The inequality can be written using a row E_y that extracts the accumulator from x. The discretized formulation also anchors the initial accumulator at zero, and it extends the terminal objective with a zero weight for the accumulator. These choices give y a role in feasibility while leaving the terminal objective tied to the original state.
An interval bound on accumulated violation has a different meaning from a bound on the largest instantaneous departure. The former limits integrated squared violations along the segment. Since the numerical problem permits a small positive increase, its interpretation depends on the integration accuracy, the allowable increase, and the accuracy with which the consecutive states are made to agree. The distinction is central to reading the authors’ continuous-time feasibility claim.
Moving the nonlinear defects into the objective
The segment equations are the nonlinear constraints singled out by the authors in the discretized problem. The convex restrictions include the accumulator allowance, the control bounds, and the prescribed endpoint components. The authors collect the node states and controls in a decision vector Z, and write the convex set they must satisfy as 𝒵. They pay for inconsistency with the nonlinear propagation maps through a penalty.
minimize L(Z) + w_ep ‖G(Z)‖₁ over Z ∈ 𝒵
Here L is the linear terminal objective. G stacks the dynamics defects from all segments. The symbol ‖·‖₁ denotes the sum of the magnitudes of the vector components. The weight w_ep determines how strongly the objective penalizes a dynamics defect, and ∈ means that Z is restricted to the convex set 𝒵.
This is an exact-penalty construction in the sense stated by the paper. For a sufficiently large finite penalty weight, a solution of the penalized problem that meets the original dynamics equations is also a solution of the discretized problem in the relevant setting. The feasibility condition matters because the intermediate iterates are allowed to have defects. Penalizing them lets the outer solver work with candidate node histories before those histories form a continuous solution of the original equations.
The authors use the prox-linear method to solve the penalized problem. It linearizes the defect map around the current reference and adds a penalty for taking a large step away from that reference.
minimize L(Z) + w_ep ‖G(Zʲ) + ∇G(Zʲ)(Z − Zʲ)‖₁ + (w_prox/2) ‖Z − Zʲ‖₂² over Z ∈ 𝒵
The superscript j labels the current outer iteration, and Zʲ is its reference decision vector. The Jacobian ∇G(Zʲ) describes the local change of the defects with respect to the decision variables. The coefficient w_prox weights the proximal term, which is the squared Euclidean distance from the reference multiplied by w_prox/2. The quantities L, w_ep, and 𝒵 have the same meanings as in the penalized problem.
The first term values the landing objective. The second judges how well the candidate follows the local approximation of the dynamics. The third discourages steps for which a local approximation may be a poor guide. Once the convex problem is solved, the resulting node values become the reference for another approximation. The paper relates convergence to an appropriate proximal weight and says that a converged point feasible for the discretized problem satisfies the Karush–Kuhn–Tucker conditions. Those conditions describe first-order constrained optimality at the resulting point.
Finding the derivatives of a segment
A current reference consists of state values and control values at the grid nodes. During an outer iteration, the authors integrate the reference state over each segment using its left node value and its interpolated controls. At the right endpoint, this integrated reference can differ from the stored right node state. That gap is a quantity the convex subproblem needs to see. An approximation that joined the stored points automatically would hide the defect it was meant to reduce.
The authors evaluate the Jacobians of the augmented differential equation along the integrated reference. The state Jacobian Aₖ(τ) measures how the derivative f changes with x, while the control Jacobian Bₖ(τ) measures how f changes with u. Both depend on the point reached in the reference integration. A perturbation of the starting state has the whole segment over which to affect the endpoint. A perturbation of a control node influences the continuous control according to the weight assigned to that node by the first-order hold.
dΦₓ/dτ = Aₖ(τ) Φₓ
The matrix Φₓ maps a change in the segment’s initial state to the change propagated to time τ. The matrix Aₖ(τ) is the state Jacobian along the segment. The starting value of Φₓ is the identity, since the state at the initial time responds directly to a change in its own initial value.
dΦᵤ⁻/dτ = Aₖ(τ) Φᵤ⁻ + Bₖ(τ) [(τₖ₊₁ − τ)/(τₖ₊₁ − τₖ)]
The sensitivity Φᵤ⁻ describes the response to the left control value. Its initial value is zero, since the initial state is a separate decision variable. The control Jacobian Bₖ(τ) is multiplied by the interpolation weight of the left control. The term containing Aₖ(τ) propagates the effects that earlier portions of the interval have already produced.
dΦᵤ⁺/dτ = Aₖ(τ) Φᵤ⁺ + Bₖ(τ) [(τ − τₖ)/(τₖ₊₁ − τₖ)]
The sensitivity Φᵤ⁺ describes the response to the right control value and also starts at zero. Its forcing term uses the interpolation weight associated with the right endpoint. The matrices Aₖ(τ) and Bₖ(τ) are evaluated along the same integrated reference used for the other sensitivities.
Evaluating these matrices at the end of the interval supplies the coefficients of the affine transition.
xₖ₊₁ = Aₖ xₖ + Bₖ⁻ uₖ + Bₖ⁺ uₖ₊₁ + wₖ
Here Aₖ is the terminal state sensitivity, and Bₖ⁻ and Bₖ⁺ are the terminal left and right control sensitivities. The vector wₖ is the affine offset. The authors choose it so that, at the reference inputs, the expression on the right reproduces the integrated reference endpoint. It includes the distinction between starting from the reference at the left node and demanding agreement with the candidate state at the right node.
This procedure keeps the local approximations grounded in the trajectory dynamics. A change in control affects both the motion and, through the augmented equations, the sampled segment’s violation accumulation. Time dilation is among the controls whose sensitivity is accounted for. The derivative information used in a convex solve therefore addresses the same augmented propagation as the dynamics defect penalized in the outer problem.
Scaling the variables and expressing the convex subproblem
The authors solve for scaled changes from the reference. State and control components can have different natural magnitudes, which can make a common first-order update ineffective across the entire decision vector. Scaling is intended to put the decision components on more comparable numerical scales.
xₖ = Pₓ x̂ₖ + x̄ₖ
Here x̄ₖ is the reference state at node k, x̂ₖ is its scaled change, and Pₓ maps that change to the units of the original augmented state xₖ. A zero scaled change corresponds to the current reference.
uₖ = Pᵤ ûₖ + ūₖ
Here ūₖ is the reference control, ûₖ is its scaled change, and Pᵤ maps the change back to the coordinates of the original control uₖ. The time-dilation component is included in this transformation.
Substituting these definitions in the affine dynamics changes the coefficients. The paper also preconditions the equality by the inverse state scaling. For instance, the coefficient multiplying the left state becomes the original sensitivity multiplied by the state scaling on its input side and the inverse scaling on its output side.
Âₖ⁻ = Pₓ⁻¹ Aₖ Pₓ
The matrix Âₖ⁻ is the scaled coefficient for the left state. The superscript − on  identifies the left node of the interval. The superscript −1 on Pₓ denotes inverse scaling. These are transformations between the specified coordinates. The algorithm’s matrix-inverse-free design concerns the operations needed to solve the optimization subproblems.
The coefficient on the right state is the negative identity after collecting terms on one side. The control coefficients are transformed using the input scaling and inverse state scaling. The constant term becomes the scaled mismatch between the integrated reference endpoint and the stored reference state at the next node. Boundary targets, control bounds, and accumulator allowances are expressed in the scaled coordinates as well.
The absolute values in the dynamics penalty are represented with two sets of non-negative variables. A component of an affine defect can have either sign. A difference of non-negative variables can represent that signed quantity, while penalizing their sum makes the least costly representation correspond to its magnitude. With μₖ⁺ and μₖ⁻ denoting the two slack vectors, the segment equality takes the following form.
Âₖ⁻ x̂ₖ + Âₖ⁺ x̂ₖ₊₁ + B̂ₖ⁻ ûₖ + B̂ₖ⁺ ûₖ₊₁ + μₖ⁺ − μₖ⁻ + ŵₖ = 0
The terms with  and B̂ apply the scaled state and control coefficients. The superscripts − and + distinguish the left and right node coefficients. The vector ŵₖ is the transformed reference mismatch. The slack vectors μₖ⁺ and μₖ⁻ are constrained to be non-negative, and their signed contribution allows the equality to represent a penalized affine dynamics defect.
The quadratic part of the objective comes from the proximal term on state and control changes. The terminal cost is linear and affects the last state, and the penalty on the slack variables is linear. The result is a quadratic program, a problem with a quadratic objective and affine constraints. In the authors’ notation its objective has a standard compact form.
minimize (1/2) zᵀ P̂ z + p̂ᵀ z
Here z stacks the scaled state and control changes and both sets of slacks. The matrix P̂ contains the diagonal quadratic weights on the state and control changes and a zero block for the slacks. The vector p̂ contains the terminal cost and slack costs, and ᵀ denotes transpose. The affine dynamics equalities are represented by Ĝ and their right-hand side ĝ. The accumulator inequalities are applied through a separate linear map Ĥ with bound ĥ in the solver updates. Endpoint conditions, control bounds, and slack nonnegativity have direct projections.
The reason to keep the stage structure is visible in the segment equality. A dynamics row depends on states and controls at adjacent nodes and on the slack for its own interval. When a coefficient is applied in the forward direction, the solver can work on those blocks. When its transpose is applied, contributions to an interior node come from neighboring intervals. There is little reason to assemble a global matrix just to skip its zero blocks on every iteration. The implementation uses these relations directly.
Solving the quadratic program inside a thread
Proportional-integral projected gradient, abbreviated PIPG, is the first-order solver used for the convex problems. A primal iterate holds the prospective solution, including changes in the state and control. Dual iterates hold the feedback associated with the affine constraints. Successive updates use the gradient of the objective and the current constraint feedback to adjust the primal variables, then use the constraint residuals to adjust the dual variables. Projections enforce requirements that have a simple operation of their own.
zʲ⁺¹ = Π(ζʲ − α(P̂ ζʲ + p̂ + Ĝᵀ ηʲ + Ĥᵀ χʲ))
Here j indexes the inner iterations, independently of the outer iteration index used earlier. The variable ζʲ denotes the inner solver’s extrapolated primal iterate in this equation. The vectors ηʲ and χʲ are its equality and inequality dual iterates. The matrices Ĝ and Ĥ apply the affine constraint maps, and their transposes bring the dual contributions back to the primal coordinates. The quantity α is the primal step size. The projection Π stands for enforcing the directly projected requirements after the gradient step.
In the customized implementation, a projection sets the selected components of the initial and terminal states to their prescribed values. A box projection clips the relevant inputs to their bounds. Projection of the slacks clips negative components to zero. The reworked solver applies these operations to the node and segment blocks individually. Accordingly, setting a terminal state component is a local operation on the terminal block, and constraining a slack component is a local operation on the block for its segment.
wʲ⁺¹ = ηʲ + β [Ĝ(2zʲ⁺¹ − ζʲ) − ĝ]
The vector wʲ⁺¹ is the candidate equality dual update. The scalar β is its step size. The expression in brackets evaluates the signed affine equality residual at the reflected primal point formed from zʲ⁺¹ and ζʲ. The constant ĝ is the target value of Ĝ applied to a feasible point.
vʲ⁺¹ = max{0, χʲ + β [Ĥ(2zʲ⁺¹ − ζʲ) − ĥ]}
The vector vʲ⁺¹ is the candidate inequality dual update. The function max applies componentwise to keep the inequality multipliers non-negative. The map Ĥ and the bound ĥ determine the inequality residual at the same reflected primal point. The step size β governs movement in response to that residual.
The authors then combine the previous extrapolated iterates with the new projected candidates. For the primal iterate, the operation is as follows.
ζʲ⁺¹ = (1 − ρ) ζʲ + ρ zʲ⁺¹
The parameter ρ controls extrapolation. The same weighting pattern applies to the equality dual pair η and w and to the inequality dual pair χ and v. The ratio ω relates the dual step size β to the primal step size α.
β = ωα
Here ω is chosen heuristically to balance the progress of the primal and dual variables. The other inputs to the step sizes reflect the curvature of the quadratic objective and the magnitude of the constraint operator. The diagonal objective gives the relevant quadratic weight directly. To estimate the constraint contribution, the customized power iteration applies the structured constraint maps and their transpose operations repeatedly. The algorithm compares successive estimates and adds a buffer to the result. The pseudocode applies both the dynamics blocks and the accumulator differences in this calculation.
α = 2 / (w_prox + √(w_prox² + 4ωσ))
The scalar w_prox is the proximal weight from the quadratic objective. The quantity σ is the buffered spectral estimate supplied to the customized step-size calculation, and ω is the primal-to-dual step-size parameter used above. The square root and division are scalar operations.
The customized stopping check compares changes between consecutive primal iterates and between consecutive dual iterates. Each uses the infinity norm, which takes the largest magnitude across the relevant components, and a threshold with absolute and relative parts.
‖zʲ⁺¹ − zʲ‖∞ ≤ ϵ_abs + ϵ_rel max{‖zʲ⁺¹‖∞, ‖zʲ‖∞}
The symbol ‖·‖∞ denotes the infinity norm. The tolerance ϵ_abs sets the absolute part of the threshold. The tolerance ϵ_rel multiplies the larger of the consecutive iterate magnitudes. The solver applies the analogous test to the combined equality and inequality dual variables, and the stopping condition requires both tests to pass. The test is checked periodically in the algorithm, which also has a maximum iteration count. Between outer iterations, the primal and dual solution of the preceding convex problem supplies a warm start for the next one.
Running the independent solves on the GPU
The CPU prepares the array of problem instances, each of which has its own initial condition. The input is copied into GPU memory. A CUDA kernel then executes the optimization, with a thread’s identifier determining which array entry it reads and which trajectory it computes. The intermediate references, integrations, and convex solves are handled on the device. The CPU receives the completed trajectories after the kernel work.
A CUDA launch groups threads into blocks and specifies how many blocks are in the grid. The GPU assigns blocks to streaming multiprocessors, the units that execute the threads in those blocks. The authors use that grouping to vary how a batch of trajectories is presented to the hardware. The numerical algorithm within a thread still performs its outer and inner iterations in sequence. At the batch level, threads from separate cases can progress concurrently.
The CUDA implementation includes the basic vector and matrix operations needed for integration and optimization as well as the customized PIPG solver. This is the scope of the paper’s library-free implementation claim. The implementation uses CUDA as its device programming platform, and the arithmetic and convex optimization needed inside the trajectory solve are implemented directly. The computational design ties together the segment structure, the small dense operations, and the choice to keep a complete solve within a thread.
Experiments and results
Starting positions and a common solver configuration
The numerical study perturbs the initial position. The paper specifies the following coordinatewise uniform distribution.
r_I(0) ∼ (U(6, 9), U(3, 6), U(1, 2))
The vector r_I(0) is the initial position in inertial coordinates. The symbol ∼ means that it is sampled according to the indicated distribution. Each U gives a uniform distribution with the endpoints printed for that coordinate. The first coordinate is drawn over the range from 6 to 9, the second from 3 to 6, and the third from 1 to 2. The numerical section identifies initial position as the quantity dispersed for these trials.
The authors use common objective, proximal, and penalty weights throughout the simulations. They set the maximum number of sequential convex programming iterations to 25. For each convex subproblem they report using 2500 PIPG iterations, with the same dual step-size ratio and extrapolation parameter across solves. Holding these settings fixed gives the convergence observations a common basis. The initial positions vary while the algorithm does not receive a case-specific choice of these settings in the reported study.
The run used for the trajectory and convergence figures contains 256 sampled trajectories. The authors report that the outer solver converged within 25 iterations in all 256 cases. They describe this as their first demonstration of robustness to starting-condition variation for sequential convex programming with PIPG as the subproblem solver. The observation is scoped to the sampled positions and the shared settings. Its direct content is that the procedure reached convergence in every case of that study within the chosen outer iteration limit.
The trajectory plot shows the paths produced for the dispersed starts. A second figure shows mass depletion over time with a dry-mass reference and the distribution of the number of outer iterations. These displays complement the count of converged trajectories. The paths provide a view of the range of initial geometries the calculation handled. The mass curves show the evolution of the quantity used to account for propellant use, and the iteration distribution shows that a common iteration cap still allows cases to finish at different points. The paper presents these quantities graphically and gives the aggregate convergence count in the results text.
The serial CPU baseline and parallel GPU variants
For the timing experiments, a single machine housed both an NVIDIA RTX 3090 GPU and an AMD Ryzen 9 7950X3D CPU. The baseline is an equivalent serial CPU implementation. The GPU versions use the same optimization approach and differ in how the cases are grouped for launch. The comparison concerns total solve time for a Monte Carlo batch of the indicated size.
The authors test several limits on how many threads can be placed together in a block. For batches smaller than the selected limit, the block is sized to the batch and the grid has one block. Once a batch exceeds that limit, the work can be spread across blocks. The maximum block size therefore affects the point at which the launch can distribute trajectory calculations to more than one streaming multiprocessor. The settings below are the launch caps used for the timing curves.
Maximum threads per block in the powered-descent Monte Carlo timing settings
The launch settings vary how many trajectory-solving threads can occupy a block.
The numbers
| System or setting | threads per block |
|---|---|
| GPU with smallest tested block cap | 64 |
| GPU with intermediate tested block cap | 128 |
| GPU with largest tested block cap (this paper) | 256 |
A higher position in this chart means a larger block capacity. The timing plots are the evidence for performance. The authors illustrate the configuration choice with a batch of 512 cases. A block size of 128 divides that workload into four blocks, while a block size of 256 divides it into two. Both configurations assign the same number of cases. The difference is how those cases are grouped for assignment to multiprocessors.
For the GPU curves, the authors report time spent solving. They say that memory allocation and copying were an order of magnitude smaller than solve time, and they leave those operations outside the GPU timing curves. The result therefore describes the measured solver workload with that accounting. The surrounding data flow includes the CPU’s preparation of the inputs and retrieval of the trajectories.
Where parallel execution pays off
In the small-batch region, the serial CPU implementation finishes sooner. The authors explain this result by pointing to the relatively slow execution of an individual sequential trajectory solve on the GPU. A small collection of such solves provides limited opportunity for the device to recover that cost through concurrent work. The same computation can be favorable at larger batch sizes because the GPU can make progress on many trajectories at once.
The results suggest that the crossover occurs somewhere between about 1024 and 2048 Monte Carlo runs. These numbers are counts of guidance problems in a batch. They locate a region of the timing curves instead of giving elapsed seconds or a speedup factor. As the batch enters the larger regime, the measured time for the GPU implementation falls below the time for the serial CPU implementation. The crossover depends on both sides of that comparison, including the hardware and the mapping of trajectories to threads.
The CPU results appear as a straight line in the log-log presentation. The authors interpret that behavior as the expected proportional growth for serial processing. Adding more cases adds more optimizations to the sequence. The GPU curves show several regimes rather than a single proportional relationship. Their initial rise occurs while a batch fits in one block. The paper explains that in this range the block’s threads are assigned to one streaming multiprocessor, so adding trajectories to the block can increase the solve time.
Once additional blocks are available, more multiprocessors can work on the batch. The authors associate this part of the curve with a relatively flat timing region. Additional trajectories can be taken up by additional blocks while earlier blocks continue to run. The selected block-size cap changes where the transition to multiple blocks occurs, which accounts for differences in where the curves begin to flatten.
At still larger batch sizes, the GPU curves rise again. The authors attribute this tentatively to the demand for blocks exceeding the available multiprocessor capacity, so that some blocks must wait for earlier work to finish. This explanation makes sense of the curve shape alongside the launch design. The measured outcome itself is the increase in solve time. The proposed account of the final regime is an interpretation of how scheduling produces that increase.
The position-dispersion experiment and the timing comparison answer separate parts of the paper’s question. The 256-run study shows how the chosen algorithm behaved across sampled starting positions. The broader timing sweep shows how long a serial and parallel implementation took as batch size changed. Interpreting the crossover as a statement about throughput preserves that distinction. A large batch can finish sooner on the GPU even when the GPU takes longer to solve an individual trajectory.
What the ablations show
The paper contains no component-removal ablation. Its controlled comparisons vary the computation platform, the batch size, and the GPU’s maximum block size. It also examines the trajectories produced under position dispersion and the distribution of outer iteration counts. Together these comparisons characterize the behavior of the full implementation and how it scales.
Platform and batch size
Comparing an equivalent serial CPU program with the GPU program at different batch sizes addresses the paper’s main architectural claim. With a small group of cases, the baseline is faster. At larger sizes the GPU batch is faster, with the observed change of ordering between 1024 and 2048 runs. A timing comparison at a single batch size could have captured either side of this behavior. Varying the size reveals how the advantage depends on the amount of independent work available.
The geometry of the curves helps explain the result. Serial timing increases as more cases are placed in the sequence. GPU timing has a region in which new blocks can run alongside existing blocks, giving the overall algorithm room to absorb additional solves with relatively little extra time. The experiment thus supports the particular choice to parallelize across independent trajectories. The performance evidence concerns this combination of work assignment and solver implementation, measured against serial execution.
The comparison keeps the serial baseline conceptually close to the GPU program, which helps tie the observed difference to the execution arrangement. It also defines the scope of the result. A parallel CPU baseline or a GPU program built around another distribution of the work would be a different experiment. The paper’s evidence establishes the relative performance of its two implementations on the listed hardware.
Block size and the shape of the GPU curves
The block-size comparison changes a launch parameter while retaining the trajectory calculation performed by each thread. This makes it possible to relate a change in the timing curve to the arrangement of independent work. The first block can accommodate more trajectories under a larger cap, so the batch-size region in which all work can be assigned to a single block extends farther. With a smaller cap, another block can appear earlier.
What the paper observes is a change in the point where growth gives way to a flatter region. What the authors infer is that constructing additional blocks gives additional multiprocessors an opportunity to execute trajectories concurrently. The later return to rising times is explained more tentatively by capacity limits on concurrent block execution. This distinction between the measured curve and the proposed scheduling mechanism matters because the paper analyzes timing by its shape. It does not present a separate utilization measurement to identify the cause of the last regime.
The block settings also give substance to the paper’s argument about workload size. A batch count by itself says how many independent problems exist. The launch settings say how those problems are packaged for the hardware. At a given batch size, different caps can lead to different numbers of blocks even though the number of trajectories is the same. The sweep shows why the scheduling configuration belongs alongside batch size when interpreting the GPU timing.
Position dispersion and solver behavior
Changing the starting position while using common solver settings checks whether the optimization converges for a collection of related landing problems. All 256 sampled trajectories met the reported outer convergence criterion within the 25-iteration limit. The iteration distribution gives information that a count of successful solves alone cannot provide. It lets a reader see variability in the effort required for the sampled cases even though they share the same terminal objective and algorithm settings.
The results are for the combined method. Warm starts, scaling, structured matrix operations, the path-constraint reformulation, and PIPG appear together in the demonstration. The paper gives each a role in the design, such as carrying useful primal and dual information forward or reducing the arithmetic required in the inner loop. The experiments measure the performance of the resulting package. Quantifying the contribution of any individual choice would require varying that choice while holding the rest of the solver and the test cases fixed.
The earlier context also helps interpret the robustness claim. Position dispersion tests sensitivity to the input instance, while a test with different reference trajectories for the same instance would address sensitivity to initialization. The authors discuss the latter as a possible future use of their parallel framework. The convergence results here give direct evidence for the sampled starting-position study.
Limitations
Limits stated by the authors
The continuous-time feasibility argument applies subject to successful convergence and numerical accuracy. In the exact reformulation, a zero integral of the non-negative violation rate rules out violations along the trajectory. In the discrete implementation, the accumulator can increase by a small allowed amount, the differential equations are integrated numerically, and the optimization has finite tolerances. These conditions are part of the claim that the computed trajectories satisfy the dynamics and path constraints between nodes. The constraint reformulation supplies the mechanism for checking the intervals. The quality of that check still depends on the numerical solve.
The convergence argument is local. The prox-linear method builds successive approximations and uses a proximal weight to control updates. The paper’s conclusion about first-order constrained optimality applies when the outer iteration converges to a point feasible for the discretized problem. The propellant objective thus identifies what the solver improves in its search. Global minimization over all feasible descents would require a stronger result than the paper claims.
The physical demonstration ignores aerodynamic forces and moments. Its conclusions about feasibility concern the dynamics and constraints used by the authors. They also note that the thrust-magnitude constraint functions have a nondifferentiable point at zero thrust. They report that an appropriate initial thrust guess avoids a practical difficulty with linearization in their setting. This is a stated condition on how they obtain usable local derivative information.
The authors exclude allocation and data transfer from the plotted GPU solve times because those operations took much less time in their experiments. The GPU performance therefore describes the solve portion on their chosen hardware. The paper presents the proposed cause of the last rising region of the GPU curves as likely, which reflects the difference between observing increased time and directly establishing how block allocation produced it.
Limits visible in the experimental design
The convergence study varies initial position within the reported coordinate ranges. A wider assessment could include other initial state components or uncertainty in the vehicle dynamics, but those cases fall outside the reported experiment. The result for all 256 sampled trajectories is an empirical observation about these draws under a common configuration. On its own, that observation cannot determine the probability of success across a broader operating envelope or establish success for every point in the sampled ranges.
The simulated paths and mass histories characterize the numerical demonstration. The experiment measures neither the behavior of a vehicle executing the trajectories nor the interaction of the optimizer with a complete navigation and control system. The introductory discussion of certification explains why Monte Carlo analysis matters to development. The numerical evidence concerns trajectory computation on simulated instances, with the source of dispersion and hardware stated by the authors.
The crossover is similarly specific. It compares a serial implementation on the stated CPU with the authors’ CUDA implementation on the stated GPU. A different processor, a different grouping of threads, or a parallel CPU baseline would change the performance question. The advantage beyond the crossover is useful evidence for batch computation in the tested setup. The single-case latency and the time needed for a complete study are separate measures, especially when a larger share of the workload lies outside the kernel.
The numerical evidence also gives limited information about the magnitude of near-boundary constraint errors. The mass plot and trajectory plot show quantities relevant to the landing problem, while the convergence result counts successful outer solves. The paper’s justification for satisfaction between nodes comes chiefly from the augmented dynamics and the numerical conditions under which they are solved. A per-constraint record of worst violations or an independent dense-time trajectory check would answer a different measurement question about the returned paths.
The feasibility formulation applies to a general class of nonlinear trajectory problems. The demonstration covers one powered-descent setup. The paper’s broader contribution is a way of arranging independent optimizations so that each uses the same operations inside a device thread. Empirical generality across other dynamics, discretizations, and problem sizes would require corresponding tests. Within the demonstrated problem, comparisons of solver components would also be needed to assign a measured timing or convergence benefit to scaling, warm starts, or the other individual design choices.
What came after
There are no later citing studies to discuss here. The authors identify parallel multi-start optimization as a direction for future work. In the Monte Carlo study they report, parallel threads solve distinct landing problems formed by varying the initial position. In the proposed extension, the threads would start from different trajectory guesses for the same non-convex problem. Each would run the local optimizer, and the procedure would choose the lowest-cost trajectory among the converged results.
That proposal uses the same independence among threads to answer a different question. The Monte Carlo experiment asks how guidance behaves when the problem data change. The multi-start proposal asks how the solution of a fixed problem changes when the optimizer begins from a different reference. Different starting guesses could lead the local method to different feasible outcomes, making the comparison of their terminal costs relevant. The paper provides a batch architecture for running those independent searches and leaves their convergence and costs for future investigation.
Cite
Cite as Govind M. Chari, Abhinav G. Kamath, Purnanand Elango and Behçet Açıkmeşe. 2024. Fast Monte Carlo Analysis for 6-DoF Powered-Descent Guidance via GPU-Accelerated Sequential Convex Programming. arXiv:2404.18034.
@misc{chari2024fast,
title = {{Fast Monte Carlo Analysis for 6-DoF Powered-Descent Guidance via GPU-Accelerated Sequential Convex Programming}},
author = {Govind M. Chari, Abhinav G. Kamath, Purnanand Elango and Behccet Accikmecse},
year = {2024},
doi = {10.48550/arxiv.2404.18034},
eprint = {2404.18034},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2404.18034}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chari-2024-fast-monte-carlo-analysis-6/