|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Aggregates the outcome of one search execution. More...
#include <state_search_common.H>
Public Types | |
| using | Solution_Type = Solution |
| Type of solutions in this result. | |
| using | Compare_Type = Compare |
| Type of the comparison policy. | |
| using | Incumbent_Type = BestSolution< Solution, Compare > |
| Concrete incumbent type. | |
Public Member Functions | |
| SearchResult ()=default | |
| Build an empty result. | |
| SearchResult (Compare compare) | |
| Build a result with a specific solution comparator. | |
| bool | found_solution () const noexcept |
Return true if at least one solution was retained. | |
| bool | exhausted () const noexcept |
Return true if the search exhausted the configured region. | |
| bool | stopped_on_solution () const noexcept |
Return true if search stopped because solution handling requested it. | |
| bool | limit_reached () const noexcept |
Return true if a hard search limit stopped the traversal. | |
Public Attributes | |
| SearchStatus | status = SearchStatus::NotStarted |
| Final execution state. | |
| ExplorationPolicy | policy |
| Exploration policy used for the run. | |
| SearchLimits | limits |
| Limits used for the run. | |
| SearchStats | stats |
| Statistics collected during the run. | |
| Incumbent_Type | best_solution |
| Best incumbent retained by the engine. | |
Aggregates the outcome of one search execution.
| Solution | Type of solutions found. |
| Compare | Policy used to determine the best solution. |
Definition at line 679 of file state_search_common.H.
| using Aleph::SearchResult< Solution, Compare >::Compare_Type = Compare |
Type of the comparison policy.
Definition at line 684 of file state_search_common.H.
| using Aleph::SearchResult< Solution, Compare >::Incumbent_Type = BestSolution<Solution, Compare> |
Concrete incumbent type.
Definition at line 686 of file state_search_common.H.
| using Aleph::SearchResult< Solution, Compare >::Solution_Type = Solution |
Type of solutions in this result.
Definition at line 682 of file state_search_common.H.
|
default |
Build an empty result.
|
inlineexplicit |
Build a result with a specific solution comparator.
| compare | Functor used to order solutions. |
Definition at line 700 of file state_search_common.H.
|
inlinenoexcept |
Return true if the search exhausted the configured region.
Definition at line 712 of file state_search_common.H.
References Aleph::Exhausted, and Aleph::SearchResult< Solution, Compare >::status.
|
inlinenoexcept |
Return true if at least one solution was retained.
Definition at line 706 of file state_search_common.H.
References Aleph::SearchResult< Solution, Compare >::best_solution, and Aleph::BestSolution< Solution, Compare >::has_value().
|
inlinenoexcept |
Return true if a hard search limit stopped the traversal.
Definition at line 724 of file state_search_common.H.
References Aleph::LimitReached, and Aleph::SearchResult< Solution, Compare >::status.
|
inlinenoexcept |
Return true if search stopped because solution handling requested it.
Definition at line 718 of file state_search_common.H.
References Aleph::SearchResult< Solution, Compare >::status, and Aleph::StoppedOnSolution.
| Incumbent_Type Aleph::SearchResult< Solution, Compare >::best_solution |
Best incumbent retained by the engine.
Definition at line 692 of file state_search_common.H.
Referenced by Aleph::ida_star_detail::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs_visited(), and Aleph::SearchResult< Solution, Compare >::found_solution().
| SearchLimits Aleph::SearchResult< Solution, Compare >::limits |
Limits used for the run.
Definition at line 690 of file state_search_common.H.
Referenced by Aleph::ida_star_detail::dfs(), Aleph::Depth_First_Backtracking< Domain >::search(), Aleph::IDA_Star_State_Search< Domain >::search(), and Aleph::Depth_First_Backtracking< Domain >::search().
| ExplorationPolicy Aleph::SearchResult< Solution, Compare >::policy |
Exploration policy used for the run.
Definition at line 689 of file state_search_common.H.
Referenced by Aleph::Depth_First_Backtracking< Domain >::search(), Aleph::IDA_Star_State_Search< Domain >::search(), and Aleph::Depth_First_Backtracking< Domain >::search().
| SearchStats Aleph::SearchResult< Solution, Compare >::stats |
Statistics collected during the run.
Definition at line 691 of file state_search_common.H.
Referenced by Aleph::ida_star_detail::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs_visited(), Aleph::Depth_First_Backtracking< Domain >::search(), Aleph::IDA_Star_State_Search< Domain >::search(), and Aleph::Depth_First_Backtracking< Domain >::search().
| SearchStatus Aleph::SearchResult< Solution, Compare >::status = SearchStatus::NotStarted |
Final execution state.
Definition at line 688 of file state_search_common.H.
Referenced by Aleph::ida_star_detail::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs(), Aleph::Depth_First_Backtracking< Domain >::dfs_visited(), Aleph::SearchResult< Solution, Compare >::exhausted(), Aleph::SearchResult< Solution, Compare >::limit_reached(), Aleph::Depth_First_Backtracking< Domain >::search(), Aleph::IDA_Star_State_Search< Domain >::search(), Aleph::Depth_First_Backtracking< Domain >::search(), and Aleph::SearchResult< Solution, Compare >::stopped_on_solution().