Source codes of the numerical experiments in "A Double-Layer Jacobi Method for PDE-Constrained Nonlinear Model Predictive Control"
- MATLAB Coder (with a supported compiler)
- Symbolic Math Toolbox
- Go to double-lay-jacobi/2dHeat/
- Run NMPC_Problem_Formulation.m
- Run Simu_Matlab_Codegen.m to generate C code
- Run ./Simu_Matlab.exe in MATLAB Command Line
or
- Simu_Matlab.m
- Run visualRec.m to visualize the simulation results
- Go to ParNMPC/2dHeat/
- Run NMPC_Problem_Formulation.m
- Run Simu_Matlab_Codegen.m to generate C code
- Run ./Simu_Matlab.exe in MATLAB Command Line
or
- Run Simu_Matlab.m
- Run visualRec.m to visualize the simulation results
- Go to casadi-ipopt/2dHeat/
- Run casadi_nmpc_multipleshooting.m to generate C code
- Run Simu_Matlab_casadi_nmpc_multipleshooting.m
- Go to casadi-ipopt/2dHeat/
- Run casadi_nmpc_singleshooting.m
- Run Simu_Matlab_casadi_nmpc_singleshooting.m