the main aim of this project is to design and implement an MPC controller to keep an inverted pendulum in upward position, while the whole system is subjected to physical constraint.
Make sure your matlab directory is pointed to the CasAdi folder. Then Run inverted_pendulum.m
I have provided a comprehensive report to walk you through this project.