I compared three autopilot guidance laws, SFI, LQR, and MPC, on missile longitudinal dynamics. MPC gave the fastest time to target at 8 seconds. I built it in MATLAB with CasADi/IPOPT.
My goal was to compare three autonomous guidance laws on a linear short period missile model. I measured each controller on trajectory accuracy, control effort, and time to target. I ran the simulations in MATLAB. MPC was solved online with CasADi and IPOPT at every timestep, over a 50 step engagement.
The missile dynamics model uses Mracek & Ridgely's short period approximation. It is a two state system (angle of attack α, pitch rate q) driven by fin deflection δp. I confirmed controllability and observability analytically before I designed the controllers.
I solve the MPC problem again at every timestep over a horizon of N=10 steps. The CasADi symbolic model uses discretised longitudinal dynamics. It minimises tracking cost plus control effort while it keeps the actuator bounds across the whole horizon.
A soft terminal constraint pushes the predicted 3D position toward the impact point [10500m, 300m]. This gives the controller spatial awareness beyond the immediate tracking goal.
| Metric | SFI: Eagle | LQR: Talon | MPC: Viper |
|---|---|---|---|
| Time to Target (s) | 13.80 | 10.00 | 8.00 ✓ |
| Avg Control Effort (rad) | 0.04 | 0.10 | 0.08 |
| Final Az Error (g) | 19.91 | 0.00 ✓ | 14.97 |
| Total Control Effort Σ|u| | 48.94 | 10.34 | 6.06 ✓ |
✓ = best in category · MPC: fastest engagement and lowest total effort · LQR: perfect steady state accuracy