home Forums # Technical Support logical operator "or" problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1718
    Unknown
    Member

    Hello,

    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. Thanks

    #1719

    Hi,

    could you please post the FLL code from QtFuzzyLite?

    Cheers,

    #1721

    Hi,

    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.

    #1722
    Unknown
    Member

    Hi,

    I have replaced these classes and rebuilt fuzzylite. The errors have gone. You have saved my hours, thanks a lot.

    Regards

    #1723

    Hi basarc,

    I am glad the solution worked. However, please have in mind I have not revised this solution yet.

    Cheers.

    #1724
    Unknown
    Member

    Hi Juan,

    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?

    Regards

    #1726

    Hi,

    I have deleted your code.

    Cheers.

    #1727
    Unknown
    Member

    Hi,

    Thanks for your helping

    Regards

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.