home Forums # Technical Support qtFuzzyLite and rules

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #825
    Unknown
    Member

    Hi Juan,

    Before anything else, I would like to Thank for your efforts, they seem in the right direction.

    I was trying to use qtFuzzyLite and couldn’t find where rules could be defined. I even loaded one of the examples, and while at first hand the rules were loaded, after pressing the “Process Rules” button, they disappeared. Then, the following message was presented for all the rules:

    if Ambient is DARK then Power is ?
    #[variable error] term <?> not found in variable <Power> {/src/variable/Variable.cpp::getTerm() [line:167]}
    if Ambient is MEDIUM then Power is ?
    #[variable error] term <?> not found in variable <Power> {/src/variable/Variable.cpp::getTerm() [line:167]}
    if Ambient is BRIGHT then Power is ?
    #[variable error] term <?> not found in variable <Power> {/src/variable/Variable.cpp::getTerm() [line:167]}
    #---------------------------------------------
    # Total rules: 3. Good Rules: 0. Bad Rules: 3.
    

    Any idea on what is happening here? Thanks in advance.

    Julio Rojas-Mora

    #826

    Hi Julio,

    The problem is that you did not press the process rules button, but rather the generate all possible rules.
    Please, reload the engine and try again.

    The rules are defined in text, so you can edit the text in the window where the rules are, that is, where you found:
    if Ambient is DARK then Power is ?
    #[variable error] term not found in variable {/src/variable/Variable.cpp::getTerm() [line:167]}
    if Ambient is MEDIUM then Power is ?
    #[variable error] term not found in variable
    {/src/variable/Variable.cpp::getTerm() [line:167]}
    if Ambient is BRIGHT then Power is ?
    #[variable error] term not found in variable
    {/src/variable/Variable.cpp::getTerm() [line:167]}
    #———————————————
    # Total rules: 3. Good Rules: 0. Bad Rules: 3.

    Let me know if that helps.

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