Simulink Control Design™ - MathWorks

(Tuis.) #1

Compile the elapsed time and speed-up ratio for each method in a table. Significant
performance gains can be acheived by using batch trimming/linearization as well as
fastRestartForLinearAnalysis.


Method = ["Loop","Batch","Fast Restart Loop","Fast Restart Batch"]';
TimeElapsed = [timeElapsedLoop,timeElapsedBatch,timeElapsedFastRestartLoop,timeElapsedFastRestartBatch]';
SpeedUpFactor = TimeElapsed(1)./TimeElapsed;
TimeElapsedTable = table(Method,TimeElapsed,SpeedUpFactor)


TimeElapsedTable =


4x3 table


Method TimeElapsed SpeedUpFactor




"Loop" 88.422 1
"Batch" 19.406 4.5564
"Fast Restart Loop" 18.953 4.6653
"Fast Restart Batch" 17.563 5.0347


Close the Simulink model.


bdclose(mdl);


See Also


findop | getlinio | linearize | operspec


See Also
Free download pdf