MPC toolbox computation time
Mostra commenti meno recenti
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.
Risposte (2)
Yogesh
il 9 Set 2022
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.
1 Commento
Syed Adil Ahmed
il 9 Set 2022
Steven Lord
il 9 Set 2022
0 voti
If you're trying to analyze the performance of your Simulink model (to identify bottlenecks?) consider using Simulink Profiler.
1 Commento
Syed Adil Ahmed
il 11 Set 2022
Categorie
Scopri di più su Controller Creation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!