-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
110 changed files
with
368 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.15.0) | ||
|
||
project(TravellingThiefSolver LANGUAGES CXX) | ||
|
||
# Require C++14. | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
# Enable output of compile commands during generation. | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
# Add sub-directories. | ||
add_subdirectory(extern) | ||
add_subdirectory(src) | ||
add_subdirectory(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Enable FetchContent. | ||
include(FetchContent) | ||
|
||
# Fetch fontanf/knapsacksolver. | ||
FetchContent_Declare( | ||
knapsacksolver | ||
GIT_REPOSITORY https://github.com/fontanf/knapsacksolver.git | ||
GIT_TAG abbe052b56c6e985112cda23abda26f1eb0e43ce) | ||
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../knapsacksolver/") | ||
FetchContent_MakeAvailable(knapsacksolver) | ||
|
||
# Fetch fontanf/treesearchsolver. | ||
FetchContent_Declare( | ||
treesearchsolver | ||
GIT_REPOSITORY https://github.com/fontanf/treesearchsolver.git | ||
GIT_TAG dca5b35d5cb6de3443b9ab08175f931b2df29b6b) | ||
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../treesearchsolver/") | ||
FetchContent_MakeAvailable(treesearchsolver) | ||
|
||
# Fetch fontanf/localsearchsolver. | ||
FetchContent_Declare( | ||
localsearchsolver | ||
GIT_REPOSITORY https://github.com/fontanf/localsearchsolver.git | ||
GIT_TAG ecb15ef667d107f25ea51d056368f9c4e15545e2) | ||
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../localsearchsolver/") | ||
FetchContent_MakeAvailable(localsearchsolver) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
add_subdirectory(packing_while_travelling) | ||
add_subdirectory(thief_orienteering) | ||
add_subdirectory(travelling_thief) | ||
add_subdirectory(travelling_while_packing) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
add_library(TravellingThiefSolver_packing_while_travelling) | ||
target_sources(TravellingThiefSolver_packing_while_travelling PRIVATE | ||
instance.cpp | ||
instance_builder.cpp | ||
solution.cpp | ||
solution_builder.cpp | ||
utils.cpp | ||
reduction.cpp | ||
algorithm.cpp | ||
algorithm_formatter.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling PUBLIC | ||
OptimizationTools::containers | ||
OptimizationTools::utils) | ||
add_library(TravellingThiefSolver::knapsack ALIAS TravellingThiefSolver_packing_while_travelling) | ||
|
||
add_subdirectory(algorithms) | ||
|
||
add_executable(TravellingThiefSolver_packing_while_travelling_main) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_main PRIVATE | ||
main.cpp) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_main PUBLIC | ||
TravellingThiefSolver_packing_while_travelling_greedy | ||
TravellingThiefSolver_packing_while_travelling_sequential_value_correction | ||
TravellingThiefSolver_packing_while_travelling_dynamic_programming | ||
TravellingThiefSolver_packing_while_travelling_efficient_local_search | ||
TravellingThiefSolver_packing_while_travelling_large_neighborhood_search | ||
Boost::program_options) | ||
set_target_properties(TravellingThiefSolver_packing_while_travelling_main PROPERTIES OUTPUT_NAME "travellingthiefsolver_packing_while_travelling") | ||
install(TARGETS TravellingThiefSolver_packing_while_travelling_main) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
add_library(TravellingThiefSolver_packing_while_travelling_greedy) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_greedy PRIVATE | ||
greedy.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling_greedy PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_greedy PUBLIC | ||
TravellingThiefSolver_packing_while_travelling) | ||
add_library(TravellingThiefSolver::knapsack::greedy ALIAS TravellingThiefSolver_packing_while_travelling_greedy) | ||
|
||
add_library(TravellingThiefSolver_packing_while_travelling_sequential_value_correction) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_sequential_value_correction PRIVATE | ||
sequential_value_correction.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling_sequential_value_correction PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_sequential_value_correction PUBLIC | ||
TravellingThiefSolver_packing_while_travelling | ||
KnapsackSolver::knapsack::dynamic_programming_primal_dual) | ||
add_library(TravellingThiefSolver::knapsack::sequential_value_correction ALIAS TravellingThiefSolver_packing_while_travelling_sequential_value_correction) | ||
|
||
add_library(TravellingThiefSolver_packing_while_travelling_dynamic_programming) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_dynamic_programming PRIVATE | ||
dynamic_programming.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling_dynamic_programming PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_dynamic_programming PUBLIC | ||
TravellingThiefSolver_packing_while_travelling) | ||
add_library(TravellingThiefSolver::knapsack::dynamic_programming ALIAS TravellingThiefSolver_packing_while_travelling_dynamic_programming) | ||
|
||
add_library(TravellingThiefSolver_packing_while_travelling_efficient_local_search) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_efficient_local_search PRIVATE | ||
efficient_local_search.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling_efficient_local_search PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_efficient_local_search PUBLIC | ||
TravellingThiefSolver_packing_while_travelling | ||
TravellingThiefSolver_packing_while_travelling_sequential_value_correction) | ||
add_library(TravellingThiefSolver::knapsack::efficient_local_search ALIAS TravellingThiefSolver_packing_while_travelling_efficient_local_search) | ||
|
||
add_library(TravellingThiefSolver_packing_while_travelling_large_neighborhood_search) | ||
target_sources(TravellingThiefSolver_packing_while_travelling_large_neighborhood_search PRIVATE | ||
large_neighborhood_search.cpp) | ||
target_include_directories(TravellingThiefSolver_packing_while_travelling_large_neighborhood_search PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_packing_while_travelling_large_neighborhood_search PUBLIC | ||
TravellingThiefSolver_packing_while_travelling | ||
TravellingThiefSolver_packing_while_travelling_greedy | ||
TravellingThiefSolver_packing_while_travelling_sequential_value_correction) | ||
add_library(TravellingThiefSolver::knapsack::large_neighborhood_search ALIAS TravellingThiefSolver_packing_while_travelling_large_neighborhood_search) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
add_library(TravellingThiefSolver_thief_orienteering) | ||
target_sources(TravellingThiefSolver_thief_orienteering PRIVATE | ||
instance.cpp | ||
instance_builder.cpp | ||
solution.cpp | ||
algorithm_formatter.cpp) | ||
target_include_directories(TravellingThiefSolver_thief_orienteering PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_thief_orienteering PUBLIC | ||
OptimizationTools::utils | ||
TravelingSalesmanSolver::distances) | ||
add_library(TravellingThiefSolver::knapsack ALIAS TravellingThiefSolver_thief_orienteering) | ||
|
||
add_subdirectory(algorithms) | ||
|
||
add_executable(TravellingThiefSolver_thief_orienteering_main) | ||
target_sources(TravellingThiefSolver_thief_orienteering_main PRIVATE | ||
main.cpp) | ||
target_link_libraries(TravellingThiefSolver_thief_orienteering_main PUBLIC | ||
TravellingThiefSolver_thief_orienteering_tree_search | ||
TravellingThiefSolver_thief_orienteering_local_search | ||
Boost::program_options) | ||
set_target_properties(TravellingThiefSolver_thief_orienteering_main PROPERTIES OUTPUT_NAME "travellingthiefsolver_thief_orienteering") | ||
install(TARGETS TravellingThiefSolver_thief_orienteering_main) | ||
|
||
add_executable(TravellingThiefSolver_thief_orienteering_checker) | ||
target_sources(TravellingThiefSolver_thief_orienteering_checker PRIVATE | ||
checker.cpp) | ||
target_link_libraries(TravellingThiefSolver_thief_orienteering_checker PUBLIC | ||
TravellingThiefSolver_thief_orienteering | ||
Boost::program_options) | ||
set_target_properties(TravellingThiefSolver_thief_orienteering_checker PROPERTIES OUTPUT_NAME "travellingthiefsolver_thief_orienteering_checker") | ||
install(TARGETS TravellingThiefSolver_thief_orienteering_checker) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
add_library(TravellingThiefSolver_thief_orienteering_tree_search) | ||
target_sources(TravellingThiefSolver_thief_orienteering_tree_search PRIVATE | ||
tree_search.cpp) | ||
target_include_directories(TravellingThiefSolver_thief_orienteering_tree_search PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_thief_orienteering_tree_search PUBLIC | ||
TravellingThiefSolver_thief_orienteering | ||
TreeSearchSolver::treesearchsolver) | ||
add_library(TravellingThiefSolver::thief_orienteering::tree_search ALIAS TravellingThiefSolver_thief_orienteering_tree_search) | ||
|
||
add_library(TravellingThiefSolver_thief_orienteering_local_search) | ||
target_sources(TravellingThiefSolver_thief_orienteering_local_search PRIVATE | ||
local_search.cpp) | ||
target_include_directories(TravellingThiefSolver_thief_orienteering_local_search PUBLIC | ||
${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(TravellingThiefSolver_thief_orienteering_local_search PUBLIC | ||
TravellingThiefSolver_thief_orienteering | ||
LocalSearchSolver::localsearchsolver) | ||
add_library(TravellingThiefSolver::thief_orienteering::local_search ALIAS TravellingThiefSolver_thief_orienteering_local_search) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.