for( int i = 0; i < 5; i++ ) {
// Set inputs
fuzzyRuleSet.setVariable("pressure", 60 + 5 * i);
fuzzyRuleSet.setVariable("temp", 15 + 2 * i);
// Evaluate fuzzy rule set
fuzzyRuleSet.evaluate();
System.out.println("Temp: " + fuzzyRuleSet.getVariable("temp").getValue() + ", Pressure: " + fuzzyRuleSet.getVariable("pressure").getValue() + " => Valve: " + fuzzyRuleSet.getVariable("valve").getLatestDefuzzifiedValue());
// System.out.println(fuzzyRuleSet);
}
// Print ruleSet