How can I define a fitness function for GA optimization from following ANFIS code?

조회 수: 1 (최근 30일)
load fuzex1trnData.dat
x = fuzex1trnData(:,1);
opt = anfisOptions('InitialFIS',4,'EpochNumber',40);
fis = anfis(fuzex1trnData,opt);
figure
anfisOutput = evalfis(x,fis);
plot(x,fuzex1trnData(:,2),'*r',x,anfisOutput,'.b')
legend('Training Data','ANFIS Output','Location','NorthWest'

답변 (0개)

카테고리

Help CenterFile Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by