glhr / mpc-matlab

Model predictive control (MPC) implemented in Matlab using CVX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For some context/details about the assignment, see the instructions PDF.

Instructions

First, install CVX if you haven't already. Download CVX from here. Extract cvx.zip to a directory of your choice. Then, from the Matlab console, cd to that directory and run cvx_setup. For example:

cd ./cvx
cvx_setup

You can then run the MPC simulation by running MPCsimPredictionModelStudent.m. This will output the following Figures:

Figure 1 Figure 2
MPC Simulation Figure 1 MPC Simulation Figure 2

About

Model predictive control (MPC) implemented in Matlab using CVX


Languages

Language:MATLAB 100.0%