필터 지우기
필터 지우기

real coded Genetic algorithm

조회 수: 1 (최근 30일)
vetri
vetri 2014년 10월 27일
답변: Stalin Samuel 2014년 10월 27일
i have found the objective fun (ie) is given below fitR = zeros(1,N); for j = 1: N PI0 = PI(1:xR(j,1)); ind = PI0 == 0; ind = ind .* eps; PI0 = PI0 + ind; clear ind w0 = sum(PI0); H0 = -sum((PI0/w0).*(log(PI0/w0))); fitR(j) = fitR(j) + H0; for jl = 2: level PI0 = PI(xR(j,jl-1)+1:xR(j,jl)); ind = PI0 == 0; ind = ind .* eps; PI0 = PI0 + ind; clear ind w0 = sum(PI0); H0 = -sum((PI0/w0).*(log(PI0/w0))); fitR(j) = fitR(j) + H0; end end please tell me how to apply the objective fun in real coded GA .provide some example coding

답변 (1개)

Stalin Samuel
Stalin Samuel 2014년 10월 27일

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by