Beyond periodicity: Fourier methods for optimal control
Fourier-based spectral methods provide compact global approximations, permit simple differentiation and integration, and achieve spectral convergence for smooth periodic functions. Their use in finite-horizon optimal control problems (OCPs) is nevertheless challenged by the generally nonperiodic state and control trajectories: endpoint mismatch induces artificial discontinuities and can destroy spectral convergence. Leveraging Eckhoff-type endpoint-correction techniques, we develop a Fourier-based spectral framework for OCPs with possibly nonlinear dynamics and constraints. The correction improves convergence without enlarging the set of decision variables, yielding an efficient finite-dimensional numerical method. Furthermore, we formulate selected dynamics and obstacle-avoidance constraints through Sobolev residual bounds, which incorporate information about the residuals over the entire time horizon and improve constraint satisfaction. Numerical experiments on benchmark problems demonstrate competitive computational performance, lower residual errors, and improved solution accuracy.