Warning: No rules fired for Output 1. Defuzzified output value set to its mean range value 50.
47 次查看(过去 30 天)
显示 更早的评论
This is related to one of my papers. I am facing this issue when I changed the input method for 3 inputs from Text area (Numeric) to List box.
To resolve this on my own I tried putting str2num and str2double just to change list box options to its equivalent membership funtion value.
Can someone share their views over this? It can be with any article available online, personal views or possible solution? I think either I am using evalfis, str2double or str2num in a wrong manner or it could be whole system.
Take a look at lookalike code: Obviously, it is not the correct one.
app.MixFruits = readfis('fruits');
app.apple = evalfis( [app.Banana.Value str2double(app.Orange.Value) str2double(app.Melon.Value) str2double(app.Kiwi.Value) app.Grape.Value app.Blueberry.Value app.Mango.Value], app.MixFruits);
app.Bowl.Value = app.apple;
3 个评论
Walter Roberson
2019-10-18
max for app designer is just regular max. You just need to extract the information from the appropriate property and max on that.
回答(3 个)
HELA LASS
2019-10-10
I've the same problem.
% x is the inputs values and y is the output (target) values
for i = 1:6
fisin = addInput(fisin,dataRange(i,:),'Name',name(i),'NumMFs',3);
end
fisin = addOutput(fisin,dataRange(7,:),'Name',name(7),'NumMFs',5);
fisin=addRule(fisin,[2 2 2 2 2 2 1 1 1;1 1 0 3 0 0 5 1 1;2 0 3 3 3 0 2 1 1;1 3 1 3 0 3 4 1 1; 1 1 2 3 0 0 3 1 1]);
opt = anfisOptions('InitialFIS',fisin);
outFIS = anfis([x y],opt);
plot(x,y,'*b',x,evalfis(outFIS,x),'.r')
I get an error
Warning: No rules fired for Output 1. Defuzzified output value set to its mean range value 3.
> In throwWarning (line 17)
In fuzzy.internal.utility.evalfis (line 80)
In evalfis (line 83)
Can someone help me to solve this problem?
1 个评论
Walter Roberson
2019-10-10
I think we are going to need dataRange(1:7,:) and x and y in order to test.
HELA LASS
2019-10-10
I get the solution
I changed
fisin = addOutput(fisin,dataRange(7,:),'Name',name(7),'NumMFs',5);
into
fisin = addOutput(fisin,'NumMFs',5,'MFType',"constant");
0 个评论
mekia
2020-2-26
am also get the same error message that follows in below reapetedly when am runnung the code.please can you tell how it fix.
Warning: No rules fired for Output 1. Defuzzified output value set to its mean range value 0.5.
> In throwWarning (line 18)
In fuzzy.internal.utility.evalfis (line 80)
In evalfis (line 57)
In TrainFISCost (line 30)
In TrainAnfisUsingGA>@(x)TrainFISCost(x,fis,data) (line 20)
In TrainAnfisUsingGA>RunGA (line 134)
In TrainAnfisUsingGA (line 32)
In main (line 41)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!