Control with Prediction and Limits
Consider a simplified spacecraft pointing problem. The system has a pointing error and angular velocity, and the controller must drive the state toward a desired target.
Unlike basic feedback control, MPC does not only ask, “What should I do now?” It asks, “What will happen over the next several steps if I apply this control?”
Feedback Reacts After Error Appears
Classical feedback controllers such as PD, PID, and LQR compute control from the current state. This is powerful, but it can react too late when constraints matter.
current error → current control
If the actuator has a torque limit or the spacecraft must avoid crossing a state boundary, a controller that does not explicitly plan ahead may command aggressive inputs or violate limits.
Looking Ahead into the Future
The prediction horizon defines how far into the future the controller evaluates the system.
A short horizon reacts quickly but may not see future constraint problems. A longer horizon plans better, but requires more computation.
How Many Future Inputs Are Planned
The control horizon describes how many future control actions are optimized. In many simplified MPC demonstrations, the controller plans a sequence but applies only the first action.
This page uses a simplified one-step candidate search at every time step to demonstrate the main MPC idea without turning the page into a heavy optimization lecture.
Balancing Tracking Error and Control Effort
MPC chooses the control action that minimizes a cost over the prediction horizon.
The weight \(Q\) penalizes tracking error. The weight \(R\) penalizes control effort.
Respecting Physical and Mission Limits
MPC is powerful because constraints can be included directly in the decision process.
In spacecraft systems, these limits may represent actuator authority, pointing safety limits, keep-out zones, thermal pointing restrictions, or mission operating boundaries.
Plan Many Steps, Apply One Step
MPC repeatedly predicts the future, chooses the best control sequence, applies the first control action, then measures the state again and replans.
This is called receding horizon control because the future planning window moves forward at every step.
Simulate MPC with Constraints
Adjust the initial error, target state, prediction horizon, control limit, state constraint, and cost weights. The simulation shows predicted trajectory, applied control, constraint boundary, cost trend, and tracking error.
Why MPC Matters in Aerospace Systems
MPC is valuable when the system must obey limits while still reaching a target. This makes it useful for constrained attitude control, rendezvous planning, autonomous guidance, robotics, launch vehicle guidance, and systems with limited actuators.
MPC evaluates future behaviour before choosing the current action.
Actuator and state limits are included directly in the decision process.
Q and R weights shape the balance between accuracy and control effort.
What This Problem Shows
MPC predicts future behaviour before applying control.
It is a planning method embedded inside feedback control.
PD → PID → LQR → actuator limits → quaternion nonlinear control → MPC