Feeds
已回答
How to write CVRP (capacitated vehicle routing problem) objective function?
routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));
How to write CVRP (capacitated vehicle routing problem) objective function?
routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));
2 years 前 | 0
