home › Forums › # Technical Support › JAVA API › Reply To: JAVA API
June 16, 2014 at 19:21
#1108
Keymaster
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.
-
This reply was modified 9 years, 3 months ago by
Juan Rada-Vilela (admin).