Error with evalfis function

조회 수: 15 (최근 30일)
alex tzal
alex tzal 2018년 2월 4일
댓글: Walter Roberson 2018년 2월 19일
When I run evalfis, I get the following error "Error using evalfismex Illegal parameters in fisTrapezoidMf() --> b > c". Can you please help?
  댓글 수: 3
alex tzal
alex tzal 2018년 2월 19일
Unfortunately,not:-(
Walter Roberson
Walter Roberson 2018년 2월 19일
alex: did you try putting in the linear constraint like I indicated?

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 5일
It sounds as if you are calling fisTrapezoidMf with three parameters in which the second parameter is greater than the third parameter, but that routine needs the third parameter to be greater than the second parameter.
  댓글 수: 8
alex tzal
alex tzal 2018년 2월 10일
편집: alex tzal 2018년 2월 10일
I am using PSO in my ANFIS as per:
The problem is identified when the Problem.VarMin, Problem.VarMax, Params.MaxIt and Params.nPop parameters change in the TrainFISCost function. Could you please help me understand how are these related to trapmf parameters?
Walter Roberson
Walter Roberson 2018년 2월 16일
None of those values matter in themselves for this purpose. What matters is that you need a linear constraint to prevent the third parameter from being less than the second parameter. In terms of A, b linear inequalities, that would look like
A = [1 -1 0 0;
0 1 -1 0;
0 0 1 -1]
b = [0; 0; 0]
The above permits the values to be exactly equal. Getting a strict inequality is tricky because of round-off error, but you could often approximate by setting b to -eps in each location instead of 0

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Fuzzy Inference System Tuning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by