home › Forums › # Technical Support › Error Operand "OR" (Java) › Reply To: Error Operand "OR" (Java)

June 11, 2015 at 14:26
#1864

Unknown

Member

Yes, that is my next step.. writing proposition by proposition without using or..

```
Engine: P&D321
InputVariable: C2H2_C2H4
enabled: true
range: 0.000 6.000
term: A Trapezoid 0.000 0.000 0.050 0.100
term: B Trapezoid 0.050 0.100 0.975 1.000
term: C Trapezoid 0.975 1.000 2.950 3.000
term: D Ramp 2.950 3.000
InputVariable: CH4_H2
enabled: true
range: 0.000 6.000
term: A Trapezoid 0.000 0.000 0.050 0.100
term: B Trapezoid 0.050 0.100 0.950 1.000
term: C Trapezoid 0.950 1.000 2.950 3.000
term: D Ramp 2.950 3.000
InputVariable: C2H4_C2H6
enabled: true
range: 0.000 6.000
term: A Trapezoid 0.000 0.000 0.050 0.100
term: B Trapezoid 0.050 0.100 0.950 1.000
term: C Trapezoid 0.950 1.000 2.950 3.000
term: D Ramp 2.950 3.000
OutputVariable: DIAGNOSTICO
enabled: true
range: -0.050 9.000
accumulation: Maximum
defuzzifier: Centroid 250
default: 8.000
lock-previous: false
lock-range: false
term: D1 Trapezoid 0.000 0.000 0.500 1.000
term: D2 Trapezoid 0.500 1.000 1.500 2.000
term: D2N Trapezoid 1.500 2.000 2.500 3.000
term: D3 Trapezoid 2.500 3.000 3.500 4.000
term: D4 Trapezoid 3.500 4.000 4.500 5.000
term: D5 Trapezoid 4.500 5.000 5.500 6.000
term: D6 Trapezoid 5.500 6.000 6.500 7.000
term: D7 Trapezoid 6.500 7.000 7.500 8.000
term: D8 Ramp 7.500 8.000
RuleBlock: 1
enabled: true
conjunction: EinsteinProduct
disjunction: AlgebraicSum
activation: Minimum
rule: if C2H2_C2H4 is A and CH4_H2 is B and (C2H4_C2H6 is A or C2H4_C2H6 is B) then DIAGNOSTICO is D1
rule: if C2H2_C2H4 is A and CH4_H2 is B and C2H4_C2H6 is C then DIAGNOSTICO is D2
rule: if C2H2_C2H4 is A and (CH4_H2 is C or CH4_H2 is D) and (C2H4_C2H6 is A or C2H4_C2H6 is B ) then DIAGNOSTICO is D2N
rule: if C2H2_C2H4 is A and (CH4_H2 is C or CH4_H2 is D) and C2H4_C2H6 is C then DIAGNOSTICO is D3
rule: if C2H2_C2H4 is A and (CH4_H2 is C or CH4_H2 is D) and C2H4_C2H6 is D then DIAGNOSTICO is D4
rule: if C2H2_C2H4 is A and CH4_H2 is A and (C2H4_C2H6 is A or C2H4_C2H6 is B) then DIAGNOSTICO is D5
rule: if (C2H2_C2H4 is A or C2H2_C2H4 is B) and CH4_H2 is A and (C2H4_C2H6 is A or C2H4_C2H6 is B) then DIAGNOSTICO is D6
rule: if C2H2_C2H4 is not A and CH4_H2 is B and (C2H4_C2H6 is A or C2H4_C2H6 is B) then DIAGNOSTICO is D7
rule: if (C2H2_C2H4 is B or C2H2_C2H4 is C) and CH4_H2 is B and C2H4_C2H6 is D then DIAGNOSTICO is D8
```

Is this the code you want? This is my .fll file.. Thanks for your help Juan…