//--- // Load FIS (Fuzzy Inference System) //--- FIS fis = FIS.load("fcl/qualify.fcl"); RuleBlock ruleBlock = fis.getFunctionBlock().getRuleBlock(); //--- // Create a list of parameter to optimize //--- ArrayList |
The error funcion (in this particular case, ErrorFunctionQualify) can be just any error function, the structure for the code should be like this:
public class ErrorFunctionQualify extends ErrorFunction { public double evaluate(RuleBlock ruleBlock) { double error; // Caculate your desired error here... return error; } } |