I am trying to run a program containing several inputs and a single output. My program runs without a problem as long as my rules contain only a single input, however whenever I try to create a rule using more than one input (e.g if IN_1 is HIGH and IN_2 is HIGH then OUTPUT is HIGH), the program throws an exception saying that the rule requires a conjunction operator.
I have followed the structure given in the Fuzzylite 5.0 examples but can’t get it to run. The ruleblock section of my code is shown below, I would greatly appreciate any help.
RuleBlock *ruleblock = new RuleBlock;
ruleblock->addRule(Rule::parse if IN_1 is HIGH and IN_2 is HIGH then OUTPUT is HIGH);