This repository presents the implementation of various metaheuristic optimization techniques to tune the Linear Quadratic Regulator (LQR) controller gains for feedback-linearized cruise missiles. The goal is to enhance control performance under practical constraints by automating the gain selection process.
Traditional LQR control design depends on manually selected weight matrices
- Genetic Algorithm (GA)
- Particle Swarm Optimization (PSO)
- Simulated Annealing (SA)
These methods are tested on a longitudinal flight dynamics model with Dryden turbulence, simulated using a custom Simulink model.
├── Codes/
│ ├── Genetic_Algorithm.m # GA implementation for LQR tuning
│ ├── Particle_Swarm.m # PSO-based LQR optimization
│ ├── Simulated_annealing.m # SA algorithm implementation
│ ├── Optimization_LQR.m # LQR setup, fitness eval, call optimizer
│ └── drydenmodel.m # Turbulence model for aircraft simulation
├── Simulink Files/
│ └── Final_PAPER2_wtdelay_LQR.slx # Full nonlinear aircraft model with LQR + delay
├── README.md # Project description and instructions
- MATLAB R2021a or later
- Control System Toolbox
- Simulink
- Open
Optimization_LQR.m
to select the algorithm and launch optimization. - Run
Genetic_Algorithm.m
,Particle_Swarm.m
, orSimulated_annealing.m
independently for individual tests. - Simulate the optimized gains in
Final_PAPER2_wtdelay_LQR.slx
. - Use
drydenmodel.m
to inject atmospheric turbulence into the model.
- Compare different optimization algorithms for LQR gain tuning.
- Evaluate robustness under Dryden wind gust model.
- Automate weight tuning using population-based search methods.
- Validate control performance in a realistic missile dynamics environment.
For complete theoretical background, design equations, training pipeline, and result analysis, refer to:
- Reduced settling time and overshoot
- Improved disturbance rejection
- Optimized control effort with better energy efficiency
- Extend to MIMO systems and full 6-DOF UAV models.
- Integrate Deep Reinforcement Learning for adaptive LQR tuning.
- Implement a GUI-based controller synthesis tool.
This repository is released under the MIT License, allowing academic and research use.