How to write CVRP (capacitated vehicle routing problem) objective function?
3 ビュー (過去 30 日間)
古いコメントを表示
Respected Sir/Madam,
Can you please help me in writing this objective function in the script?
0 件のコメント
回答 (1 件)
Yoan
2023 年 10 月 25 日
routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!