MPC toolbox computation time
조회 수: 18 (최근 30일)
이전 댓글 표시
Hi,
So I have a SIMULINK model which has a MPC controller made from the MPC toolbox block and it works perfectly fine in SIMULINK. My question is how do I get the computation time of this MPC block in SIMULINK? (So like in MATLAB script, quadprog gives you compuation time, is there a way to get the same time for the MPC toolbox block?).
Thanks a lot for your help.
댓글 수: 0
답변 (2개)
Yogesh
2022년 9월 9일
tic;
sim(Model_name);
toc;
tic/toc functions are like stopwatch to measure the time. You can use sim() to run simulation of a Simulink model at the command line.
Steven Lord
2022년 9월 9일
If you're trying to analyze the performance of your Simulink model (to identify bottlenecks?) consider using Simulink Profiler.
참고 항목
카테고리
Help Center 및 File Exchange에서 Refinement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!