필터 지우기
필터 지우기

NMPC time minimization problem

조회 수: 4 (최근 30일)
Almudena Buelta Méndez
Almudena Buelta Méndez 2024년 4월 6일
댓글: Almudena Buelta Méndez 2024년 4월 18일
Hello,
I am using the "Truck and Trailer Automatic Parking Using Multistage Nonlinear MPC" example to get familiar with the MPC toolbox.
My question is, how should I define the cost function if I want to minimize the time, i.e., the duration of the maneuver?
Thank you
  댓글 수: 1
Almudena Buelta Méndez
Almudena Buelta Méndez 2024년 4월 18일
Thanks! That's what I thought. However, in the example it says "You can use different ways to define the cost terms. For example, you might want to minimize time, fuel consumption, or parking speed", so I assumed there might be a straightforward approach to do so.

댓글을 달려면 로그인하십시오.

채택된 답변

Akshat Dalal
Akshat Dalal 2024년 4월 18일
Hi Almudena,
In typical MPC formulations, the cost function is designed to penalize deviations from desired states and/or control efforts. Minimizing time, however, is not directly about penalizing these deviations but about achieving a goal in the shortest possible time. This requires a slightly different setup because the objective (time) does not naturally fit into the state or control input vectors.
However, you can define a surrogate objective that correlates with time in your cost function. For instance, you could optimize the 'speed' in your cost function as a higher average speed would lead to a shorter time. You could use combine multiple such variable's as an alternate way of minimizing the duration of the manoeuvre.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Refinement에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by