AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Fuzzy NOT Operator

The forum is to discuss topics from different artificial intelligence areas, like neural networks, genetic algorithms, machine learning, etc.

Fuzzy NOT Operator

Postby Jared Broad » Sat Jan 30, 2010 9:23 pm

Hey!

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
Jared Broad
 
Posts: 3
Joined: Tue Jan 26, 2010 5:15 pm
Location: New Zealand / United States

Re: Fuzzy NOT Operator

Postby fabio.caversan » Tue Feb 02, 2010 12:36 am

Hi there,

Indeed, there is no NOT operator at the moment in the library. We will implement it soon. Meanwhile, I think you could use something like this:

For:
Code: Select all
If (Temperature Is Not Warm) Then Ac Is On

Use:
Code: Select all
If (Temperature Is Hot OR Temperature Is Cold) Then Ac Is On


If the other labels are Hot and Cold, this rule will generate the complement of Warm (in most cases).

Regards,

Caversan
fabio.caversan
 
Posts: 40
Joined: Mon Jan 26, 2009 6:10 pm

Re: Fuzzy NOT Operator

Postby Jared Broad » Tue Feb 02, 2010 3:22 pm

Thanks for your reply Fabio,

Best

Jared
Jared Broad
 
Posts: 3
Joined: Tue Jan 26, 2010 5:15 pm
Location: New Zealand / United States




Return to Artificial Intelligence