Error in evolutionary ANFIS training in MATLAB
이전 댓글 표시
I am getting the following error while training ANFIS using Particle Swarm Optimization (PSO):
Error using fismf/set.params
Gaussian membership function must have positive sigma value.
Error in SetFISParams (line 21)
fis.input(i).mf(j).params=p(1:k);
Error in TrainFISCost (line 26)
fis=SetFISParams(fis,p);
Error in TrainAnfisUsingPSO>@(x)TrainFISCost(x,fis,data) (line 20)
Problem.CostFunction=@(x) TrainFISCost(x,fis,data);
Error in TrainAnfisUsingPSO>RunPSO (line 106)
particle(i).Cost=CostFunction(particle(i).Position);
Error in TrainAnfisUsingPSO (line 32)
results=RunPSO(Problem,Params);
I have attached the following functions used in the code. Kindly guide me how to resolve the issue?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!