How to write CVRP (capacitated vehicle routing problem) objective function?
Mostra commenti meno recenti
Respected Sir/Madam,
Can you please help me in writing this objective function in the script?

Risposte (1)
Yoan
il 25 Ott 2023
0 voti
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!