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
Yoan 2023년 10월 25일

0 개 추천

routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));

카테고리

도움말 센터File Exchange에서 Optimization에 대해 자세히 알아보기

질문:

2020년 11월 21일

답변:

2023년 10월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by