Memory and Storage issue for parallel simulation

2 Ansichten (letzte 30 Tage)
MENGZE WU
MENGZE WU am 2 Mär. 2023
Bearbeitet: Divyank am 9 Mär. 2023
I use parrellel simulation to simultate my simulink model. The simulink model needs to run 1200 times, and each run the it will generate 2^23 data point for the output. That amount of data times 1200 run will be >40GB, which is unacceptable for me. Before, I'm using loop to run 1200 times, which is slow, but I get to process data everytime I run and clear the data of prior run. However, now I'm using parrellel simulation which is much faster, but it will save all the points. Is there anyway to solve this problem in parrellel simulation?

Antworten (1)

Divyank
Divyank am 9 Mär. 2023
Bearbeitet: Divyank am 9 Mär. 2023
Hello @MENGZE WU, there are different ways to handle the large amount of data generated by parallel simulation. Here are some suggestions:
  • Reduce the amount of data generated by the model: You can reduce the amount of data generated by the model by using simulation options such as "Limit data points to last" or "Limit data points to first" to control the amount of data saved. You can also consider using the "Decimation" option to reduce the number of data points generated by the model.
  • Save data to disk only when necessary: If you need to save data to disk, consider saving it only at the end of each run or at specific intervals. You can also use compression techniques to reduce the size of the saved data.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by