Dev. version of ParNMPC
- Clone or download
ParNMPC-Dev
. - Extract the downloaded file.
- MATLAB 2016a or later
- MATLAB Coder
- MATLAB Optimization Toolbox
- MATLAB Parallel Computing Toolbox
- MATLAB Symbolic Math Toolbox
- Simulink Coder
- C/C++ compiler supporting parallel code generation
- Select the Microsoft Visual C++ 2019 (C) compiler:
>> mex -setup
- Navigate to SemiActiveDamper/.
>> cd SemiActiveDamper/
-
Open
NMPC_Problem_Formulation.m
and run. -
Open
CodeGen.m
and run. -
Open
Simu_Matlab.m
and run.