How do I find the objective/cost function for the example Valet parking using multistage NLMPC. (https://www.mathworks.com/help/mpc/ug/parking-valet-using-nonlinear-model-pred
조회 수: 2 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Emmanouil Tzorakoleftherakis
2023년 7월 5일
편집: Emmanouil Tzorakoleftherakis
2023년 7월 5일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Predictive Control Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!