hello every one , i am working on Vehicle Path Tracking Using Model Predictive Control (MPC), i downloaded the code but when i run the MATLAB i face this error

4 views (last 30 days)

Answers (1)

Kothuri
Kothuri on 3 Jan 2025
Hi kani muhamed,
The errors you are facing while running the code for Vehicle path tracking using MPC can be resolved by following the below steps:
  • Resolve the 'velNorm' Parameter Issue by opening the Simulink model and locating the block 'Vehicle XY Plotter'.
  • Check for the parameter 'velNorm'and ensure that 'velNorm' is defined either in the MATLAB workspace, a script, or as a mask parameter in the block. If not defined, add the required variable in the workspace.
  • Fix the Promoted Parameter Warning by ensuring that all promoted parameters are properly linked to variables or constants in the workspace.
  • Fix the Sizes Mismatch Error as this error indicates that the dimensions of a signal or parameter are not matching.
  • Check the inputs and parameters in the model for dimensional consistency.
  • Verify that all input signals to the block have matching dimensions. Adjust the signal size as needed.
You can refer the below file exchange link for more info on Vehicle path tracking using MPC

Categories

Find more on Model Predictive Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!