home Forums # Technical Support The model description is not correct: [import error] token not recog

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2581

    I am currently doing some fuzzy logic analysis, using your tool qtfuzzylite. First, let me congratulate you! It’s a really nice tool to use. 

    However, I am getting a small error message when I use the FisImporter().fromFile(fileName) function. I imported a model fis file using the qtfuzzylite 4.0 version and I am trying to Import that model in a C++ class using the fuzzylite library. When I do so, I get the following error:
    The model description is not correct: [import error] token <LockValid> not recognized {at contrib/opensource/fuzzylite/fuzzylite/src/imex/FisImporter.cpp::importOutput() [line:187]

    I copied below the part of my model which corresponds to the output variable definition.
    Range=[-0.800 5.700]
    MF1=’VeryBad’:’sigmf’,[-10.000 0.750]
    MF2=’Bad’:’psigmf’,[10.000 0.500 -10.000 2.000]
    MF3=’OK’:’psigmf’,[10.000 1.750 -10.000 3.250]
    MF4=’Good’:’psigmf’,[10.000 3.000 -10.000 4.500]
    MF5=’Excellent’:’sigmf’,[10.000 4.250]


    Hi Aurora,

    thank you for your post and kind words.

    The problem you are having is that you are using an old version of QtFuzzyLite and then using probably the latest version of the fuzzylite libraries. The property LockValid was renamed to LockPrevious from version 5.0. If you rename that property in your FIS file, you should be able to import your engine.

    However, I want to encourage you to use the FuzzyLite Language (FLL) instead of any other format. Not only is the FLL much
    nicer and simpler, but also provides features of fuzzylite that are not available in other libraries. For example, LockPrevious is a property that only works in fuzzylite, and matlab will not import the FIS file because it does not know what to do with this property. (Same happens with LockRange).


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