Alberto Diez - 2009-05-15

Dear all,

I'm using the jfuzzylogic library in a project and I have several fuzzy variables and several rules that involve different variables:

When I initialize to a value all variables and check the fuzzy rules, all works fine; the problem is when I initialize only a few variables and I try to defuzzify the outputs: I get default value 0.0 because the variables that don't have a value are set to NaN and rules are not evaluated, even if I have a rule that only involves the variable with a value...

In these cases, I just set a Double.POSITIVE_INFINITY to variables that don't have a value: this way, all rules are properly evaluated but such variables are not taken into account... It seems that works, but I'm not sure if this is the best way to do it: do you know how could I fix this problem?

Thanks in advance.

Kind regards,
Alberto.