Error in evolutionary ANFIS training in MATLAB
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Particle Swarm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!