Abstract
This paper considers the problem of determining an optimal control action based on observed data. We formulate the problem assuming that the system can be modeled by a nonlinear state-space model, but where the model parameters, state, and future disturbances are not known and are treated as random variables. Central to our formulation is that the joint distribution of these unknown objects is conditioned on the observed data. Crucially, as new measurements become available, this joint distribution continues to evolve so that control decisions are made accounting for uncertainty as evidenced in the data. The resulting problem is intractable, which we obviate by providing approximations that result in finite-dimensional deterministic optimization problems. The proposed approach is demonstrated in simulation on a nonlinear system.
Introduction
In modern control theory, the "dual control" problem represents a fundamental tension between exploration—taking actions to learn the underlying dynamics of a system—and exploitation—taking actions to achieve a specific performance objective. While data-driven control has seen significant progress for linear systems with Gaussian noise, real-world applications are frequently characterized by high nonlinearity and complex, non-Gaussian uncertainty.
This research addresses the challenge of Stochastic Model Predictive Control (SMPC) for nonlinear state-space models where the parameters, current state, and future disturbances are all unknown random variables. The primary obstacle is mathematical intractability: to ensure safety and performance, a controller must calculate expected costs and satisfy "chance constraints" (e.g., ensuring a state remains within bounds with 95% probability) over a continuously evolving joint probability distribution. Solving these expectation integrals analytically is generally impossible for nonlinear systems.
The Data-to-Controller Framework
To bridge the gap between theoretical stochastic control and practical implementation, we propose a "data-to-controller" framework. This approach continuously updates control actions based on incoming data while explicitly accounting for uncertainty. We bypass the intractable mathematics through a sequence of three key approximations:
1. Hamiltonian Monte Carlo (HMC) Sampling
Instead of attempting to solve the exact expectation integrals, we draw samples from the joint posterior distribution of the states, parameters, and future disturbances given all past observations. We utilize Hamiltonian Monte Carlo (HMC) due to its efficiency in sampling from complex, high-dimensional distributions. This transformation converts the intractable integral into a finite Monte Carlo sum, making the problem computationally approachable.
2. Smooth Chance Constraint Relaxation
Standard chance constraints rely on an indicator function—a mathematical switch that is 1 if a constraint is met and 0 if violated. However, the discontinuity of this function typically necessitates slow mixed-integer programming. We replace the indicator function with a smooth logistic (sigmoid) function. This relaxation allows the use of gradient-based optimization methods, significantly improving computational feasibility.
3. Tailored Interior-Point Optimization
With the problem reformulated as a smooth, deterministic optimization, we employ a custom log-barrier interior-point method. As the optimization iterates, the algorithm dynamically tightens the sigmoid function back toward a strict step function. This ensures that the final control action strictly respects the original safety constraints while benefiting from the speed of smooth optimization.
Experimental Evaluation
The framework was evaluated using two simulated physics environments designed to test different aspects of nonlinear control:
- Pedagogical 1D System: A non-control affine first-order system featuring non-Gaussian (Student's T) measurement noise. This setup tested the framework's ability to handle non-standard noise distributions.
- Rotary Inverted Pendulum: A simulated 4th-order nonlinear Furata pendulum, modeled after the Quanser QUBE-Servo 2 hardware. This environment tested the framework's performance on complex, high-dimensional nonlinear dynamics.
Key Insights and Results
Bayesian Awareness
By utilizing the full posterior distribution rather than a single point estimate, the controller exhibits "Bayesian awareness." It acts conservatively when uncertainty is high and naturally becomes more aggressive as incoming data sharpens the parameter estimates. This allows for safe, data-driven learning without the need for manual tuning of exploration parameters.
Performance and Computation
In both simulations, the framework successfully learned system parameters on the fly while driving the system toward the desired setpoint.
- For the 1D system (prediction horizon $N=10$), computation time was approximately 4 seconds per iteration.
- For the Furata pendulum (horizon $N=25$), computation required approximately 200 seconds per iteration.
- The HMC algorithm demonstrated high efficiency, maintaining a target acceptance rate of roughly 80% across experiments.
Limitations and Future Work
While the framework provides a robust path toward nonlinear data-driven control, several challenges remain:
- Computational Latency: At 200 seconds per iteration for the pendulum, the method is currently too slow for real-time control of fast mechanical systems. It is currently best suited for systems with slower dynamics, such as chemical processes.
- Data Scaling: As the history of observations grows, conditioning samples on all past data becomes increasingly expensive. Future iterations will explore moving-window approaches to handle infinite data streams.
- Passive vs. Active Exploration: Currently, learning is a byproduct of control (passive exploration). Future work will investigate explicitly rewarding exploration in the cost function to improve learning rates.
In conclusion, this data-to-controller framework offers a mathematically grounded yet practical approach to controlling nonlinear systems under uncertainty, turning intractable stochastic problems into solvable deterministic optimizations.
Summary updated