Douglas-Rachford Algorithm for Control- and State-constrained Optimal Control Problems
Regina S. Burachik, Bethany I. Caldwell, C. Yalçın Kaya
TL;DR
This work develops a Douglas--Rachford framework to solve state- and control-constrained linear-quadratic optimal control problems in continuous time by splitting constraints into an affine ODE set $\cal A$ and a box set $\cal B$ and deriving proximal mappings $\operatorname{Prox}_f$ and $\operatorname{Prox}_g$. A numerically computed projector onto the affine set $\cal A$ is introduced to realize $\operatorname{Prox}_g$, requiring a TPBVP solved via shooting, while $\operatorname{Prox}_f$ uses simple bound-clamping for the state and control components. A conjecture relates DR-based costates $\lambda^{DR}$ to the true costate $\lambda$, enabling practical verification of optimality, particularly at junction times where constraints switch activity. Numerical experiments on a harmonic oscillator and a mass–spring system show that DR can yield higher accuracy and faster computation than direct discretization with Ipopt in many scenarios, albeit with limitations in problems featuring discontinuous controls. The results suggest a versatile projection-based approach for convex continuous-time OCPs and point toward extensions to more general convex objectives and alternative projection schemes.
Abstract
We consider the application of the Douglas-Rachford (DR) algorithm to solve linear-quadratic (LQ) control problems with box constraints on the state and control variables. We split the constraints of the optimal control problem into two sets: one involving the ODE with boundary conditions, which is affine, and the other a box. We rewrite the LQ control problems as the minimization of the sum of two convex functions. We find the proximal mappings of these functions which we then employ for the projections in the DR iterations. We propose a numerical algorithm for computing the projection onto the affine set. We present a conjecture for finding the costates and the state constraint multipliers of the optimal control problem, which can in turn be used in verifying the optimality conditions. We carry out numerical experiments with two constrained optimal control problems to illustrate the working and the efficiency of the DR algorithm compared to the traditional approach of direct discretization.
