How to write CVRP (capacitated vehicle routing problem) objective function?
이전 댓글 표시
Respected Sir/Madam,
Can you please help me in writing this objective function in the script?

답변 (1개)
Yoan
2023년 10월 25일
0 개 추천
routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));
카테고리
도움말 센터 및 File Exchange에서 Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!