Awesome
carsim-simulink-MPC-controller-practice
Including the carsim and simulink models and the MPC-Controller code. Carsim vesion 8.02, Matlab version 2018b.
1# Place the .mdl and .m file on a same path.
2# If you want to succeed compiling the model, you have to build a carsim model, redirect thefolder path and then send it to simlink, then refresh the carsim S-Function in Simulink.
3# To compile in simlink, you have to install OPTI tool first, you can find the way to install it here:https://github.com/jonathancurrie/OPTI