代码搜索:PATH
找到约 10,000 项符合「PATH」的源代码
代码结果 10,000
www.eeworm.com/read/365192/9875367
m pathlong.m
function pathlong=pathlong(path,TSPMatrix)
%计算路径长度
[row,col]=size(path);
for i=1:row
pathlong(i)=0;
for j=1:(col-1)
pathlong(i)=pathlong(i)+TSPMatrix(path(i,j),path(i,j+1));
www.eeworm.com/read/365192/9875371
m select.m
function path=Select(path,SelectP)
[row,col]=size(path);
roulette=cumsum(SelectP);
for i=1:row
tempP=rand(1);
for j=1:length(roulette)
if tempP
www.eeworm.com/read/365192/9875374
m mutationreverse.m
function path=MutationReverse(path,Pm)
[row,col]=size(path);
childpath=path;
for i=1:row
point=randperm(col)-1;
point1=min(point(1),point(2));
point2=max(point(1),point(2));
tem
www.eeworm.com/read/365192/9875387
m fitness.m
function FP=Fitness(path,TSPMatrix)
[row,col]=size(path);
for i=1:row
pathlong(i)=0;
for j=1:(col-1)
pathlong(i)=pathlong(i)+TSPMatrix(path(i,j),path(i,j+1));
end
pathlo
www.eeworm.com/read/365074/9880142
c main.c
#include "cmm.h"
#include
#include
Interface *IR = &x86IR;
struct arg{
char *name;
int generated;
};
static char *infile, *outfile;
static int fs, fc, fo; /*-S选项,-c选项, -o选项*/
www.eeworm.com/read/169058/9883502
py outputgenerator.py
#!/usr/bin/python
"""
Runs a Java program, appends output if it's not there
-force as first argument when doing batch files forces overwrite
"""
import os, re, sys
argTag = '// {Args: '
o
www.eeworm.com/read/168646/9903458
js jsframework.js
/*---------------------------------------------------------------------------*\
| Subject: Javascript Framework
| Author: meizz
| Created: 2005-02-27
| Version: 2006-05-03
|-----
www.eeworm.com/read/168646/9903500
js jsframework.js
/*---------------------------------------------------------------------------*\
| Subject: Javascript Framework
| Author: meizz
| Created: 2005-02-27
| Version: 2006-05-03
|-----
www.eeworm.com/read/364264/9916697
m antpath.m
function antpath(ntime,x,y,direction,npellets,looked)
%ANTPATH Stores the path taken by the GPLAB artificial ant.
% ANTPATH(NTIME,X,Y,DIRECTION,NPELLETS,LOOKED) stores the path
% taken by th