-
Notifications
You must be signed in to change notification settings - Fork 4
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
69 changed files
with
750 additions
and
276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,15 +101,18 @@ set(libHeadersAlgorithmsList | |
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/variable_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/variable_candidates_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/value_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/error_projection_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/adaptive_search_variable_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/error_projection_algorithm.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/adaptive_search_variable_candidates_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/adaptive_search_value_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/adaptive_search_error_projection_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/adaptive_search_error_projection_algorithm.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/antidote_search_variable_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/antidote_search_variable_candidates_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/antidote_search_value_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/culprit_search_error_projection_heuristic.hpp") | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/culprit_search_error_projection_algorithm.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/uniform_variable_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/all_free_variable_candidates_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/random_walk_value_heuristic.hpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/algorithms/null_error_projection_algorithm.hpp") | ||
|
||
set(libHeadersGlobalConstraintsList | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/global_constraints/all_different.hpp" | ||
|
@@ -138,14 +141,17 @@ set(toAddInLibs | |
src/model_builder.cpp | ||
src/options.cpp | ||
src/print.cpp | ||
src/algorithms/adaptive_search_variable_heuristic.cpp | ||
src/algorithms/adaptive_search_variable_candidates_heuristic.cpp | ||
src/algorithms/adaptive_search_value_heuristic.cpp | ||
src/algorithms/adaptive_search_error_projection_heuristic.cpp | ||
src/algorithms/adaptive_search_error_projection_algorithm.cpp | ||
src/algorithms/antidote_search_variable_heuristic.cpp | ||
src/algorithms/antidote_search_variable_candidates_heuristic.cpp | ||
src/algorithms/antidote_search_value_heuristic.cpp | ||
src/algorithms/culprit_search_error_projection_heuristic.cpp | ||
src/algorithms/culprit_search_error_projection_algorithm.cpp | ||
src/algorithms/uniform_variable_heuristic.cpp | ||
src/algorithms/all_free_variable_candidates_heuristic.cpp | ||
src/algorithms/random_walk_value_heuristic.cpp | ||
src/algorithms/null_error_projection_algorithm.cpp | ||
src/global_constraints/all_different.cpp | ||
src/global_constraints/all_equal.cpp | ||
src/global_constraints/fix_value.cpp | ||
|
@@ -199,9 +205,9 @@ endif() | |
include (InstallRequiredSystemLibraries) | ||
set (CPACK_PACKAGE_NAME "GHOST") | ||
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") | ||
set (CPACK_PACKAGE_VERSION_MAJOR "2") | ||
set (CPACK_PACKAGE_VERSION_MINOR "8") | ||
set (CPACK_PACKAGE_VERSION_PATCH "2") | ||
set (CPACK_PACKAGE_VERSION_MAJOR "3") | ||
set (CPACK_PACKAGE_VERSION_MINOR "1") | ||
set (CPACK_PACKAGE_VERSION_PATCH "0") | ||
set (CPACK_PACKAGE_CONTACT "[email protected]") | ||
set (CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) | ||
include (CPack) |
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
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
48 changes: 48 additions & 0 deletions
48
include/algorithms/all_free_variable_candidates_heuristic.hpp
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 @@ | ||
/* | ||
* GHOST (General meta-Heuristic Optimization Solving Tool) is a C++ framework | ||
* designed to help developers to model and implement optimization problem | ||
* solving. It contains a meta-heuristic solver aiming to solve any kind of | ||
* combinatorial and optimization real-time problems represented by a CSP/COP/EF-CSP/EF-COP. | ||
* | ||
* First developed to solve game-related optimization problems, GHOST can be used for | ||
* any kind of applications where solving combinatorial and optimization problems. In | ||
* particular, it had been designed to be able to solve not-too-complex problem instances | ||
* within some milliseconds, making it very suitable for highly reactive or embedded systems. | ||
* Please visit https://github.com/richoux/GHOST for further information. | ||
* | ||
* Copyright (C) 2014-2024 Florian Richoux | ||
* | ||
* This file is part of GHOST. | ||
* GHOST is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* GHOST is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with GHOST. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <vector> | ||
|
||
#include "variable_candidates_heuristic.hpp" | ||
|
||
namespace ghost | ||
{ | ||
namespace algorithms | ||
{ | ||
class AllFreeVariableCandidatesHeuristic : public VariableCandidatesHeuristic | ||
{ | ||
public: | ||
AllFreeVariableCandidatesHeuristic(); | ||
|
||
std::vector<double> compute_variable_candidates( const SearchUnitData& data ) const override; | ||
}; | ||
} | ||
} |
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
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
Oops, something went wrong.