How do I find the objective/cost function for the example Valet parking using multistage NLMPC. (https://w​ww.mathwor​ks.com/hel​p/mpc/ug/p​arking-val​et-using-n​onlinear-m​odel-pred

2 visualizzazioni (ultimi 30 giorni)
Hello Sir/Madam,
I a trying to understand cost/objective function for NLMPC for the valet parking example, but not able to accurately identify where that is defined. Could you help understand this model and the objective function used. (It may be obvious but, I am not able to find it). I have attached some image sof my attempt to located it. Thank you
https://www.mathworks.com/help/mpc/ug/parking-valet-using-nonlinear-model-predictive-control.html

Risposte (1)

Emmanouil Tzorakoleftherakis
Modificato: Emmanouil Tzorakoleftherakis il 5 Lug 2023
Hi,
The example you mentioned used MPC on two occasions:
1) On the outer loop for planning through the Vehicle Path Plannerblock. This is a block that obscures the MPC details from the user and outputs a path from point A to point B while potentially avoiding obstacles. If you want to take a look at what the cost looks like for this one, or to customize the block, click Create VPP subsystem on the block properties.
2) There is an MPC tracking controller in the inner loop which tracks the path generated by the VPP block above (see attached snapshot). This controller is created in 'createMPCForTrackingVPP.m'. If you open that file you will see lines 16 and 17 assign the state function and its Jacobian. We do not provide a custom cost function here, so nonlinear MPC is using the default quadratic cost (see top section here). In the same m file, lines 32 and 33 provide cost weights for proper tracking.
Hope this helps

Categorie

Scopri di più su Model Predictive Control Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by