home Forums # Technical Support JAVA API Reply To: JAVA API

#1108

Hi,

thank you for your post.

You need to process the engine before finding out the output value.

engine.setInputValue("Ambient", 0.1);
engine.process();
System.out.println(engine.getOutputValue(“Power”));

You also need an accumulation method when setting the OutputVariable (yours is set to null):

outputVariable.fuzzyOutput().setAccumulation(new Maximum());

Let me know if it works.

Cheers,

Juan.