Skip to content

Iterated local search (ILS) and hybrid genetic search (HGS) for the hybrid electric vehicle - traveling salesman problem with time windows (HEVTSPTW). From "Hybrid genetic search for the traveling salesman problem with hybrid electric vehicle and time windows. Computers & Operations Research, 155, 2023", by Yure Rocha & Anand Subramanian.

License

Notifications You must be signed in to change notification settings

yurerocha/HEVTSPTW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brief description

Iterated Local Search (ILS) with Random Variable Neighborhood Descent (RVND) and Hybrid Genetic Search (HGS) metaheuristics for the purpose of solving the Hybrid Electric Vehicle -- Traveling Salesman Problem with time windows (HEVTSP).

Quick start

The code depends on the program_options Boost lib.

Compile and run:

$ mkdir -p build && cd build
$ cmake ..
$ ./hevtsptw --in <instance_file>

The instances can be found in the input folder. To select between the ILS solver, the HGS solver, or both solvers, one must change the #define SOLVER directive accordingly and recompile the source code.

General parameters

One must run the solver with the --h or --help flag in order to be provided with all the accepted parameters.

Solutions and logs

The CMake file will automatically create the folders solutions and logs. The former contains the cost of the best solution found by the solver along with the execution time for each run; the latter contains the logs, i.e. the parameters, passed onto the program.

One can also view the solutions as it goes by setting the pLevel flag properly. For now, the user should provide this flag with the parameter 1 in order to see the final solution.

The solution is presented as follows: number route duration. The number corresponds to the number of customers served. route is the actual best tour found in the form customer_id operation_mode. The duration is the time it takes for a vehicle to deliver the goods following the path with the modes of operation provided.

For instance: 100 11 13 18 14 16 27 02 25 00 0d:140.18 means a solution with 10 customers, a tour 0 11 13 18 14 16 27 02 25 00 0, and a duration of 140.18 minutes.

By: Yure Rocha.

About

Iterated local search (ILS) and hybrid genetic search (HGS) for the hybrid electric vehicle - traveling salesman problem with time windows (HEVTSPTW). From "Hybrid genetic search for the traveling salesman problem with hybrid electric vehicle and time windows. Computers & Operations Research, 155, 2023", by Yure Rocha & Anand Subramanian.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published