vidalt / HGS-CVRP

Modern implementation of the hybrid genetic search (HGS) algorithm specialized to the capacitated vehicle routing problem (CVRP). This code also includes an additional neighborhood called SWAP*.

Home Page:https://arxiv.org/abs/2012.10384

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

great job

qtbgo opened this issue · comments

commented

great job.
could it solve Leuven2 instance, which have 4000 customers.
see http://vrp.atd-lab.inf.puc-rio.br/index.php/en/
under Arnold, Gendreau and Sörensen (2017)

Hello,
Thanks for your interest in this project,
The code should run but it would be very slow on very large instances, as the version of this repository calibrated for such cases.
If you wish to efficiently tackle such cases, I recommend that you include additional decomposition steps in the code (as described in the UHGS paper from 2014), reduce the termination criterion to 1000it without improvement (by using -it 1000 in the line of command), and rely on a reduced population size with mu=12, lambda=25, nbElite=3 and nbclose=2 at

int mu = 25; // Minimum population size
int lambda = 40; // Number of solutions created before reaching the maximum population size (i.e., generation size)
int nbElite = 4; // Number of elite individuals (reduced in HGS-2020)
int nbClose = 5; // Number of closest solutions/individuals considered when calculating diversity contribution
.
At least with those parameter adjustments, it will already be much faster.
For safety, you can also include a hard time limit (for example 2h).
Kind Regards,
--Thibaut