Can someone explain this error?

5 views (last 30 days)
Error using evalfismex Illegal parameters in fisTriangleMf() --> b > c
Error in evalfis (line 83) [output,IRR,ORR,ARR] = evalfismex(input, fis, numofpoints);

Accepted Answer

Walter Roberson
Walter Roberson on 16 Feb 2018
You have a triangle shaped FIS membership function, https://www.mathworks.com/help/fuzzy/trimf.html . Triangle membership functions are defined by three parameters:
  • "a" -- the x location at which the function stops being 0 and starts to rise
  • "b" -- the x location of the peak, where the membership reaches 1, and the point at which the function starts falling again
  • "c" -- the x location where the membership function stops falling and becomes 0 for the rest of x
In order for this to work properly, the location where the membership function stops falling and becomes 0 again, "c", must be after the location where the membership function reaches its peak, "b".
But in your FIS, you have a "c" value (marking end of the non-zero range) being less than the "b" value (marking the peak.) That is not valid.
  20 Comments
jasleen kaur
jasleen kaur on 27 Feb 2018
Edited: jasleen kaur on 27 Feb 2018
thank you so much sir for all your help and guidance. I am really grateful to you.
AMLES MOUB
AMLES MOUB on 10 Jan 2019
Hello,
Please, I want to know how to optimize the ANFIS in real time which is involved in a simulink diagram..

Sign in to comment.

More Answers (0)

Categories

Find more on Fuzzy Logic in Simulink in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!