在Simulink中有三种桌面模拟模式:Normal、Accelerator和Rapid Accelerator。对于大多数模型,Accelerator比Normal更快,而Rapid Accelerator仍然更快。Rapid Accelerator模式通过为模型生成可执行文件来加快仿真速度。确切的加速因型号而异,但是Rapid Accelerator的速度可以比“普通”模式快10倍以上。
使用Rapid Accelerator需要权衡灵活性和性能Rapid Accelerator不支持调试器或探查器,并且仅在整个模型都能够生成C代码时才起作用-但是如果您的目标是高效的批处理和蒙特卡洛模拟,那么Rapid Accelerator是您最好的选择。
注意:Rapid Accelerator模式必须能满足simulink所有模型都可编译成C才行!!!
参考文献:
- https://www.mathworks.com/help/simulink/ug/performing-acceleration.html
- mathworks.com/company/newsletters/articles/speed-up-your-simulations-with-rapid-accelerator-mode.html?s_tid=srchtitle