function gaTSP CityNum=30; [dislist,Clist]=tsp(CityNum); inn=100; %初始种群大小 gnmax=1000; %最大代数 pc=0.8; %交叉概率 pm=0.8; %变异概率…
CHB-25NP 源代码
汇集 CHB-25NP 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
#include #define SIZE 110 int st[SIZE][SIZE]; int match[SIZE]; int chk[SIZE], chA[SIZE], chB[SIZE]; int total; int A, B, …
function gaTSP CityNum=30; [dislist,Clist]=tsp(CityNum); inn=100; %初始种群大小 gnmax=1000; %最大代数 pc=0.8; %交叉概率 pm=0.8; %变异概率…
%show both sf=1; lm=length(chb); i=0:1:lm-1; set(gcf,'Name','Show Both'); plot(i/sf,cho,'b'); …
%show both sf=1; lm=length(chb); i=0:1:lm-1; set(gcf,'Name','Show Both'); plot(i/sf,cho,'b'); …
%mshow blood sf=10; lm=length(chb); i=0:1:lm-1; set(gcf,'Name','BLOOD WAVE'); h1=plot(i/sf,chb,'r'); …
clear all; [filename, pathname] = uigetfile( ... {'*.dat';'*.ch0';'*.ch1';'*.*.ch2';'*.*'}, ... 'Pick a file to …
clear all; [filename, pathname] = uigetfile( ... {'*.dat';'*.ch0';'*.ch1';'*.CH0';'CH1';'*.*'}, ... 'Pick a file…
%mshow blood sf=1; lm=length(chb); i=0:1:lm-1; set(gcf,'Name','BLOOD WAVE'); h1=plot(i/sf,chb,'r'); y…
function [cho,chb,rxy,lm]=mreadfile(fname) fid=fopen(fname); if fid