gusucode.com > matlab编程遗传算法计算匹配电路源码程序 > code1/code/MATLAB源代码/multiple_recombin_by_recdis.m
function [ recombin_SelCh ] = multiple_recombin_by_recdis( SelCh,crossover_probability ) %UNTITLED4 此处显示有关此函数的摘要 % 此处显示详细说明 [num_row,num_column]=size(SelCh); SelCh_temporary=zeros(num_row,num_column,10); ObjV_Sel_temp=zeros(num_row,10); i=1:2:(num_row-1); for k=1:10 SelCh_temporary(:,:,k)=recombin('recdis',SelCh(:,:),crossover_probability); ObjV_Sel_temp(:,k)=lowpassS21_test2(SelCh_temporary(:,:,k)); end for i=1:2:(num_row-1) [~,ColumnLocation]=find(ObjV_Sel_temp(i:(i+1),:)==min(min(ObjV_Sel_temp(i:(i+1),:)))); % A=SelCh_temporary(i:(i+1),:,ColumnLocation); recombin_SelCh(i:(i+1),:)=SelCh_temporary(i:(i+1),:,ColumnLocation(1)); end end