C++ Reference
C++ Reference: Routing
Detailed Description
This struct holds all parameters for the default search.
DefaultPhaseParameters is only used by Solver::MakeDefaultPhase methods. Note this is for advanced users only.
Definition at line 167 of file constraint_solver.h.
Public Types | |
| enum | VariableSelection { CHOOSE_MAX_SUM_IMPACT = 0, CHOOSE_MAX_AVERAGE_IMPACT = 1, CHOOSE_MAX_VALUE_IMPACT = 2 } |
| enum | ValueSelection { SELECT_MIN_IMPACT = 0, SELECT_MAX_IMPACT = 1 } |
| enum | DisplayLevel { NONE = 0, NORMAL = 1, VERBOSE = 2 } |
Public Member Functions | |
| DefaultPhaseParameters () | |
Public Attributes | |
| VariableSelection | var_selection_schema |
| This parameter describes how the next variable to instantiate will be chosen. More... | |
| ValueSelection | value_selection_schema |
| This parameter describes which value to select for a given var. More... | |
| int | initialization_splits |
| Maximum number of intervals that the initialization of impacts will scan per variable. More... | |
| bool | run_all_heuristics |
| The default phase will run heuristics periodically. More... | |
| int | heuristic_period |
| The distance in nodes between each run of the heuristics. More... | |
| int | heuristic_num_failures_limit |
| The failure limit for each heuristic that we run. More... | |
| bool | persistent_impact |
| Whether to keep the impact from the first search for other searches, or to recompute the impact for each new search. More... | |
| int | random_seed |
| Seed used to initialize the random part in some heuristics. More... | |
| DisplayLevel | display_level |
| This represents the amount of information displayed by the default search. More... | |
| bool | use_last_conflict |
| Should we use last conflict method. The default is false. More... | |
| DecisionBuilder * | decision_builder |
| When defined, this overrides the default impact based decision builder. More... | |
Member Enumeration Documentation
◆ DisplayLevel
| enum DisplayLevel |
| Enumerator | |
|---|---|
| NONE | |
| NORMAL | |
| VERBOSE | |
Definition at line 180 of file constraint_solver.h.
◆ ValueSelection
| enum ValueSelection |
| Enumerator | |
|---|---|
| SELECT_MIN_IMPACT | |
| SELECT_MAX_IMPACT | |
Definition at line 175 of file constraint_solver.h.
◆ VariableSelection
| enum VariableSelection |
| Enumerator | |
|---|---|
| CHOOSE_MAX_SUM_IMPACT | |
| CHOOSE_MAX_AVERAGE_IMPACT | |
| CHOOSE_MAX_VALUE_IMPACT | |
Definition at line 169 of file constraint_solver.h.
Constructor & Destructor Documentation
◆ DefaultPhaseParameters()
Member Data Documentation
◆ decision_builder
| DecisionBuilder* decision_builder |
When defined, this overrides the default impact based decision builder.
Definition at line 221 of file constraint_solver.h.
◆ display_level
| DisplayLevel display_level |
This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.
Definition at line 215 of file constraint_solver.h.
◆ heuristic_num_failures_limit
| int heuristic_num_failures_limit |
The failure limit for each heuristic that we run.
Definition at line 204 of file constraint_solver.h.
◆ heuristic_period
| int heuristic_period |
The distance in nodes between each run of the heuristics.
A negative or null value will mean that we will not run heuristics at all.
Definition at line 201 of file constraint_solver.h.
◆ initialization_splits
| int initialization_splits |
Maximum number of intervals that the initialization of impacts will scan per variable.
Definition at line 191 of file constraint_solver.h.
◆ persistent_impact
| bool persistent_impact |
Whether to keep the impact from the first search for other searches, or to recompute the impact for each new search.
Definition at line 208 of file constraint_solver.h.
◆ random_seed
| int random_seed |
Seed used to initialize the random part in some heuristics.
Definition at line 211 of file constraint_solver.h.
◆ run_all_heuristics
| bool run_all_heuristics |
The default phase will run heuristics periodically.
This parameter indicates if we should run all heuristics, or a randomly selected one.
Definition at line 196 of file constraint_solver.h.
◆ use_last_conflict
| bool use_last_conflict |
Should we use last conflict method. The default is false.
Definition at line 218 of file constraint_solver.h.
◆ value_selection_schema
| ValueSelection value_selection_schema |
This parameter describes which value to select for a given var.
Definition at line 187 of file constraint_solver.h.
◆ var_selection_schema
| VariableSelection var_selection_schema |
This parameter describes how the next variable to instantiate will be chosen.
Definition at line 184 of file constraint_solver.h.
The documentation for this struct was generated from the following file: