![]() |
OR-Tools
8.2
|
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 177 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... | |
enum DisplayLevel |
Enumerator | |
---|---|
NONE | |
NORMAL | |
VERBOSE |
Definition at line 190 of file constraint_solver.h.
enum ValueSelection |
Enumerator | |
---|---|
SELECT_MIN_IMPACT | |
SELECT_MAX_IMPACT |
Definition at line 185 of file constraint_solver.h.
enum VariableSelection |
Enumerator | |
---|---|
CHOOSE_MAX_SUM_IMPACT | |
CHOOSE_MAX_AVERAGE_IMPACT | |
CHOOSE_MAX_VALUE_IMPACT |
Definition at line 179 of file constraint_solver.h.
Definition at line 46 of file default_search.cc.
DecisionBuilder* decision_builder |
When defined, this overrides the default impact based decision builder.
Definition at line 231 of file constraint_solver.h.
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 225 of file constraint_solver.h.
int heuristic_num_failures_limit |
The failure limit for each heuristic that we run.
Definition at line 214 of file constraint_solver.h.
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 211 of file constraint_solver.h.
int initialization_splits |
Maximum number of intervals that the initialization of impacts will scan per variable.
Definition at line 201 of file constraint_solver.h.
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 218 of file constraint_solver.h.
int random_seed |
Seed used to initialize the random part in some heuristics.
Definition at line 221 of file constraint_solver.h.
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 206 of file constraint_solver.h.
bool use_last_conflict |
Should we use last conflict method. The default is false.
Definition at line 228 of file constraint_solver.h.
ValueSelection value_selection_schema |
This parameter describes which value to select for a given var.
Definition at line 197 of file constraint_solver.h.
VariableSelection var_selection_schema |
This parameter describes how the next variable to instantiate will be chosen.
Definition at line 194 of file constraint_solver.h.