Integration of Matlab Fuzzy .FIS into Java

6 views (last 30 days)
Jian Dong
Jian Dong on 31 Oct 2012
Commented: Hussain Faruk on 9 Mar 2019
Hi Actually I have developed one fuzzy rules based system in Matlab Fuzzy editor. Now I want to merge this .FIS file to my Java program where I have developed optimization framework for Grid. My java program will generate input functions for the fuzzy system and will take one output function from fuzzy system. I want to know how I can merge .FIS file in my java code.
some partial solution available without documentation. I would appreciate you provide detail or documentation regarding this integration. Thanks in advance

Answers (1)

Ryan G
Ryan G on 31 Oct 2012
Depending on how you want to deploy this there are a few options. If you are ok with installing the MCR on the PC running Java, you could use MATLAB builder JA to compile a Java class to call from your Java code.
If you do not want to use the MCR, then your options are a bit more limited but you can still do this I believe. You can http://www.mathworks.com/products/fuzzy-logic/description5.html generate C-code> for a Fuzzy controller using Simulink Coder, but then you need to alter the code to create a DLL you can call from Java.
  6 Comments
Jian Dong
Jian Dong on 6 Nov 2012
Thanks a lot Mr. Ryan
With your tips, I have managed the conversion of .FIS to .m file. Now my fuzzy system is working fine in Matlab with .m file and I have also build it in MCR to convert in Java package. There is no error in building java package but I am having some errors when I run this fuzzy system in java Netbeans I am trying to troubleshoot. Hope it would work fine. Once again thank you very much for your valuable help that moved my work forward.
Hussain Faruk
Hussain Faruk on 9 Mar 2019
Hi,
I am also trying to use my Matlab .fis in a java web application. I have spent quite a lot of time researching but cannot find a straightforward tutorial on how this is done.
I have the full suite of matlab available and want the most simplest way of using my fis in my eclipse java app.
Can you explain how you converted your .fis into .m and subsequently used the .m in the java app. If you can please explain how you actually call the Matlab function in the java app as well.
Thanks

Sign in to comment.

Categories

Find more on Deployment in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!