MATLAB: Error running optimization tool for GAFuzzy

fisgafuzzyillegal parameters

please help me out with the error below.
Optimization running.
Error running optimization.
Illegal parameters in fisGeneralizedBellMf() –> a = 0

Best Answer

Your fis includes a Generalized Bell Membership Function rule, https://www.mathworks.com/help/fuzzy/gbellmf.html
Those are of the form
1/(1 + abs((x-c)/a)^(2*b))
That is not valid if a is 0, because it gives a division by 0.
I suspect you are trying to do fuzzy processing to optimize a FIS. You need to put a positive lower bound on the first value.