I love the fuzzy logic libraries, they work like a charm. However I have tried a myriad of combinations but can't find the correct linguistic syntax for using the "NOT" operator, e.g. the following below don't seem to work:
- Code: Select all
If (Temperature Is Hot) Then Ac Is On //OK
If (Temperature Is Cold) Then Ac Is Off //OK
If (Temperature Is Not Warm) Then Ac Is On //Fails
If (Temperature IsNot Warm) Then Ac Is On //Fails
If (Temperature Is (NOT Warm)) Then AC is On //Fails.
If (Temperature Is Hot Not Temperature Is Warm) Then Ac Is On. //Fails....
"Linguistic variable NOT was not found on the database"
Any Ideas? Or am I making a conceptual mistake?
Thanks for your help,
Jared