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

Risposte (1)

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

Categorie

Scopri di più su Optimization in Centro assistenza e File Exchange

Richiesto:

il 21 Nov 2020

Risposto:

il 25 Ott 2023

Community Treasure Hunt

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

Start Hunting!

Translated by