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)));
11 months 前 | 0