![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/30551888_1689002390177_DEF.jpg)
Yoan
Followers: 0 Following: 0
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)));
10 months 前 | 0