summaryrefslogtreecommitdiff
path: root/examples/hybrid/ObstacleAvoidance.fis
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hybrid/ObstacleAvoidance.fis')
-rw-r--r--examples/hybrid/ObstacleAvoidance.fis43
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/hybrid/ObstacleAvoidance.fis b/examples/hybrid/ObstacleAvoidance.fis
new file mode 100644
index 0000000..1bf0476
--- /dev/null
+++ b/examples/hybrid/ObstacleAvoidance.fis
@@ -0,0 +1,43 @@
+#Code automatically generated with fuzzylite 6.0.
+
+[System]
+Name='ObstacleAvoidance'
+Type='hybrid'
+Version=6.0
+NumInputs=1
+NumOutputs=2
+NumRules=4
+AndMethod='min'
+OrMethod='max'
+ImpMethod='prod'
+AggMethod='max'
+DefuzzMethod='centroid'
+
+[Input1]
+Name='obstacle'
+Range=[0.000 1.000]
+NumMFs=2
+MF1='left':'rampmf',[1.000 0.000]
+MF2='right':'rampmf',[0.000 1.000]
+
+[Output1]
+Name='mSteer'
+Range=[0.000 1.000]
+NumMFs=2
+MF1='left':'rampmf',[1.000 0.000]
+MF2='right':'rampmf',[0.000 1.000]
+
+[Output2]
+Name='tsSteer'
+Range=[0.000 1.000]
+NumMFs=2
+MF1='left':'constant',[0.333]
+MF2='right':'constant',[0.666]
+
+[Rules]
+# RuleBlock mamdani
+1.000 , 2.000 0.000 (1.000) : 1
+2.000 , 1.000 0.000 (1.000) : 1
+# RuleBlock takagiSugeno
+1.000 , 0.000 2.000 (1.000) : 1
+2.000 , 0.000 1.000 (1.000) : 1