I am very new to fuzzy logic and fuzzylite but I started playing around with the library and found it very useful. One question i had was how to include sets, so for example, instead of:
RuleBlock *ruleblock = new RuleBlock;
ruleblock->addRule( FuzzyRule::parse(“if Ambient is DARK then Power is HIGH”,engine));
ruleblock->addRule( FuzzyRule::parse(“if Ambient is MEDIUM then Power is MEDIUM”,engine));
ruleblock->addRule( FuzzyRule::parse(“if Ambient is BRIGHT then Power is LOW”,engine) );
Would it be possible to have a RuleBlock, and then parsed where:
ruleBlock->addRule( FuzzyRule::parse(“if keyword is in SET_1 then Liklihood is MODERATE”,engine));
ruleBlock->addRule( FuzzyRule::parse(“if keyword is in SET_2 then Liklihood is HIGH”,engine));
Where SET_1 is group of strings?
Or something similar, the exact phrasing isn’t that important but the general goal of testing how to bound value sets is what I’m interested in.