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

Antworten (1)

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

Kategorien

Mehr zu Optimization finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 21 Nov. 2020

Beantwortet:

am 25 Okt. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by