Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 2.19 KB

File metadata and controls

31 lines (20 loc) · 2.19 KB

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.