March 29, 2015 at 09:10 #1718
First of all, I want to say thank you for the great product. I’m trying to run a FCL file from java code for my phd thesis. The FCL file is created with fuzzylite 4.0 and is running without any errors on fuzzlite gui. However, I’m getting an error while create Engine with the help of the FCLImporter class. (fcl text file was created with help of the FCL export option in fuzzylite gui)
My code snippet is:
FclImporter importer = new FclImporter(); String s = ProjetUtil.getFileDataAsString("/temp/example.fcl") ; Engine engine=importer.fromString(s);
After running the code, i’m getting the following error:
java.lang.RuntimeException: [syntax error] logical operator <or> expects two operands, but found <3>
The line, which produces the error, is :
if (t1_ex is low or t1_ex is high) and (t2_ex is low or t2_ex is high) and lp_ex is none and w1_ex is none and w2_ex is none then car_ex is average
This line is working without any error on the fuzzlite gui program. I appreciate any help with this problem. ThanksMarch 29, 2015 at 09:22 #1719
could you please post the FLL code from QtFuzzyLite?
Cheers,March 29, 2015 at 10:20 #1721
thank you for your kind words before.
You have found a bug that someone else recently reported to me. I am back working on jfuzzylite to release the (long-due) next version. I have not yet reached the point to address this bug, but the person who reported it provided a fix that I have not revised thoroughly. If you would like to check that fix, please download the corrected files at http://goo.gl/3Pr5J5 . I am not sure if they will solve the issue, as I have not evaluated the solution yet.
Please, let me know if somehow this solves your issue.March 29, 2015 at 11:06 #1722
I have replaced these classes and rebuilt fuzzylite. The errors have gone. You have saved my hours, thanks a lot.
RegardsMarch 29, 2015 at 11:09 #1723
I am glad the solution worked. However, please have in mind I have not revised this solution yet.
Cheers.March 29, 2015 at 23:52 #1724
I need to delete above my fll code because this is part of the my thesis. If google will index, any program may detect it. This can cause problem in my institute. I have tried to edit but I could not edit my post. Could you help me about that issue?
RegardsMarch 29, 2015 at 23:55 #1726
I have deleted your code.
Cheers.March 30, 2015 at 03:12 #1727
Thanks for your helping
- You must be logged in to reply to this topic.