Effacer les filtres
Effacer les filtres

How to write CVRP (capacitated vehicle routing problem) objective function?

7 vues (au cours des 30 derniers jours)
ANURAG DEEPAK
ANURAG DEEPAK le 21 Nov 2020
Réponse apportée : Yoan le 25 Oct 2023
Respected Sir/Madam,
Can you please help me in writing this objective function in the script?

Réponses (1)

Yoan
Yoan le 25 Oct 2023
routeLength = @(route, distance) sum(arrayfun(@(n) distance(route(n), route(n+1)), 1:(numel(route)-1)));

Catégories

En savoir plus sur Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by