home Forums # Technical Support jfuzzylite with two input values Reply To: jfuzzylite with two input values

#1521

Hi,

I found your problem. The terms “Low” and “Limit” have been defined as Triangles, when they are actually Ramps. The following code needs to be changed:

inputVariable2.addTerm(new Triangle("Low", 0.000, 0.000, 1.000));
inputVariable2.addTerm(new Triangle("High", 0.000, 1.000, 5.000));
inputVariable2.addTerm(new Triangle("Limit", 1.000, 5.000, 5.000));

The new code should be:

inputVariable2.addTerm(new Ramp("Low", 1.000, 0.000));
inputVariable2.addTerm(new Triangle("High", 0.000, 1.000, 5.000));
inputVariable2.addTerm(new Ramp("Limit", 1.000, 5.000));

Let me know if this works for you.