Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Memory usage increase with looped LiveLink for MATLAB

$
0
0

Question: How can I eliminate the LiveLink for MATLAB server from storing "things" in my computer memory when I run it?

Situation: I am working on simulating li-ion battery at different conditions using For-loop function in MATLAB. Since I am running many iterations, my computer slowly run out of memory before I can finish all the possible conditions. These different conditions need to be run in a single run for optimization purposes, thus the option of separating them into smaller chuck cannot apply here.

Why can't the LiveLink for MATLAB runs like the normal COMSOL software, where with each new run the memory usage is reset.

Thing I have tried: I have look through the User Guide for LiveLink for MATLAB and here are what I found: 1. We can remove all the model objects by using the following command: ModelUtil.clear 2. We can disable the model history by using: model.hist.disable Even after I tried these two commands, the memory usage for the LiveLink server still increase everytime I run the model. And the memory does not reset itself. I have to close the program and rerun it to reset the memory.

Please let me know if you have any suggestions.

Thank you!


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>