How can I use multiple threads to speed up Simulink.s​di.Dataset​Ref.compar​e()?

2 次查看(过去 30 天)
My team uses the Simulink.sdi.DatasetRef.compare() method to compare results of simulations (called programmatically). In some cases, these Simulink.sdi.DatasetRef objects can be quite large, containing many signals. This often takes quite a long time to complete.
I have noticed by watching CPU utilization that this function appears to only use one thread. Is there any way to configure this method to allow the use of multiple threads? I have searched through matlab answers and through the documentation, but have been unable to find a way to accomplish this.
If this isn't something that can be achieved yet, this is something our team would be VERY interested in as a future feature. Our processes involve a lot of regression analysis with previous runs, and this Simulink.sdi.DatasetRef.compare() method takes up the bulk of that runtime. We had previously used our own home-grown comparison scripts, but wanted to move away from those towards Mathworks-supported features like this wherever practical.
Here are some more details about our typical implementation:
OS: Windows 10 64-bit
Matlab Version: 2017b, 2019b, or 2020a

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by