diff options
Diffstat (limited to 'examples/mamdani/Laundry.fcl')
-rw-r--r-- | examples/mamdani/Laundry.fcl | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/mamdani/Laundry.fcl b/examples/mamdani/Laundry.fcl index a5d5380..9a34532 100644 --- a/examples/mamdani/Laundry.fcl +++ b/examples/mamdani/Laundry.fcl @@ -1,3 +1,5 @@ +//Code automatically generated with fuzzylite 6.0. + FUNCTION_BLOCK Laundry VAR_INPUT @@ -24,9 +26,9 @@ END_FUZZIFY DEFUZZIFY Detergent RANGE := (0.000 .. 80.000); - TERM less := (10.000, 0.000) (40.000, 1.000) (50.000, 0.000); - TERM normal := (40.000, 0.000) (50.000, 1.000) (60.000, 1.000) (80.000, 0.000); - TERM more := (50.000, 0.000) (80.000, 1.000); + TERM less_than_usual := (10.000, 0.000) (40.000, 1.000) (50.000, 0.000); + TERM usual := (40.000, 0.000) (50.000, 1.000) (60.000, 1.000) (80.000, 0.000); + TERM more_than_usual := (50.000, 0.000) (80.000, 1.000); METHOD : MM; ACCU : MAX; DEFAULT := nan; @@ -45,12 +47,12 @@ RULEBLOCK AND : MIN; OR : MAX; ACT : MIN; - RULE 1 : if Load is small and Dirt is not high then Detergent is less - RULE 2 : if Load is small and Dirt is high then Detergent is normal - RULE 3 : if Load is normal and Dirt is low then Detergent is less - RULE 4 : if Load is normal and Dirt is high then Detergent is more - RULE 5 : if Detergent is normal or Detergent is less then Cycle is short - RULE 6 : if Detergent is more then Cycle is long + RULE 1 : if Load is small and Dirt is not high then Detergent is less_than_usual + RULE 2 : if Load is small and Dirt is high then Detergent is usual + RULE 3 : if Load is normal and Dirt is low then Detergent is less_than_usual + RULE 4 : if Load is normal and Dirt is high then Detergent is more_than_usual + RULE 5 : if Detergent is usual or Detergent is less_than_usual then Cycle is short + RULE 6 : if Detergent is more_than_usual then Cycle is long END_RULEBLOCK END_FUNCTION_BLOCK |