⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swap_routing.asv

📁 TSP问题,即旅行商问题,matlab环境下可以运行
💻 ASV
字号:
function x1=swap_routing(x0)


a=unirnd(NumberRoute);
b=unirnd(NumberRoute);
while a==b
a=unirnd(NumberRoute);
b=unirnd(NumberRoute);
end

c1_index=unirnd(l0(a));
c1=x0(a,c1_index+1);

for j=1:l0(b)
    alldis(j)=



x1(a,1:c1-1)=x0(a,1:c1-1);
x1(a,c1:)=x0(a,c1+1:);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -