フィルターのクリア

out of memory error in matlab fuzzy system running with java

3 ビュー (過去 30 日間)
Jian Dong
Jian Dong 2013 年 1 月 7 日
Hi I have developed a fuzzy model in Matlab and converted in to Java package through Matlab builder JA. The fuzzy system takes four inputs and give one output. all inputs and output are numbers (type double). I am running this fuzzy system in java environment where inputs are generated with another java module.I am getting results when I just run a small loop like only 256 ( that means I am giving 4 inputs 256 times and get one output 256 time in single run).However, If I run the same model with 512 or 1024 times then It does not go through and middle of the program it is mentioned "out of memory error". Please note that I am running this model on high performance machine with 300 GB RAM.I follow the Matlab tutorial to convert the Matlab fuzzy model into java where I have also used dispose method. Could anyone give the reason why fuzzy is taken too much memory and how can I reduce the memory usage? your help in this regard would highly be appreciated

回答 (1 件)

Ryan G
Ryan G 2013 年 1 月 7 日
If you're running this on Java only, it's not really a MATLAB question. However, to debug an issue like this one thing you can do is run test inputs through the Fuzzy system in MATLAB and see if there are any issues.
It sounds like there is a memory leak in your program and that may or may not involve the fuzzy system. It is important you determine whether or not it is the cause.
  3 件のコメント
Ryan G
Ryan G 2013 年 1 月 8 日
Is the for-loop running in MATLAB or Java? Would it be possible to remove the for loop from the MATLAB code and instead write that portion in Java directly?
Jian Dong
Jian Dong 2013 年 1 月 14 日
for -loop is running in Java. In matlab, there is only 3 lines code just calling .fis file where I have created fuzzy.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFuzzy Logic in Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by