soltorouts.m

来自「一个用于自然数编码遗传算法的工具包indexGA」· M 代码 · 共 10 行

M
10
字号
function [b,r]=solToRouts(sol)
% from a solution to the rout arrange
n=size(sol,2)-1; % not use the fitness value
bk=[8 8]; % cap of trucks
l=8;      % num of shops
d=[1 2 1 2 1 4 2 2]; %demand of shops
[b,r]=isFeasible(sol(1:n),bk,l,d); %if the sol realizable


⌨️ 快捷键说明

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