代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
zhmxgj.m
clear all;
clc;
close all;
format long;
a1=pi/4;
a2=pi/4;
da=0.1*pi;%
h=0.001;
t=5;
w=2*pi*30;
bt=rem(t,h);
bbt=t-bt;
n1=bbt/h;
k=0;
for i=1:n1
t(:,i)=(i-1)*h;
oo=w*t(:
matlab 模拟退火求解tsp.txt
模拟退火求解tsp2008-01-21 10:05d = Import["E:\\nb\\模拟退火.xls"][[1]] // Floor(*来自w2008z空间*);
exch[pi0_, d_] := Module[{n, u, v, pi, k, i, pi1, df},
n = Length[d]; u = Random[Integer, {2, n - 2}];
v = Ran
exchange_2.m
function [d_f, pi_r]=exchange_2(pi0,d)
[m,n]=size(d);
clear m;
u=rand;
u=u*(n-2);
u=round(u);
if un-2
u=n-2;
end
v=rand;
v=v*(n-u+1);
v=round(v);
if v
exchange_2.m
function [d_f,pi_r]=exchange_2(pi0,d)
[m,n]=size(d);
clear m;
u=rand;
u=u*(n-2);
u=round(u);
if un-2
u=n-2;
end
v=rand;
v=v*(n-u+1);
v=round(v);
if v
xover.c
#include "const.h"
#include "type.h"
#include "extern.h"
#include "exfunc.h"
void cross(p1, p2, c1, c2)
IPTR p1, p2, c1, c2;
{
/* p1,p2,c1,c2,m1,m2,mc1,mc2 */
int *pi1,*pi2,*ci1,*ci2;
int xp
hubpi.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Derived from IRIX
hubpi.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Derived from IRIX
hubpi.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Derived from IRIX
hubpi.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Derived from IRIX
hubpi.h
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Derived from IRIX