Google OR-Tools: operations_research::DefaultPhaseParameters Struct Reference
This struct holds all parameters for the default search. More...
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 184 of file constraint_solver.h.
#include <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 |
| ValueSelection | value_selection_schema |
| This parameter describes which value to select for a given var. | |
| int | initialization_splits |
| bool | run_all_heuristics |
| int | heuristic_period |
| int | heuristic_num_failures_limit |
| The failure limit for each heuristic that we run. | |
| bool | persistent_impact |
| int | random_seed |
| Seed used to initialize the random part in some heuristics. | |
| DisplayLevel | display_level |
| bool | use_last_conflict |
| Should we use last conflict method. The default is false. | |
| DecisionBuilder * | decision_builder |
| When defined, this overrides the default impact based decision builder. | |
◆ DisplayLevel
◆ ValueSelection
◆ VariableSelection
| Enumerator | |
|---|---|
| CHOOSE_MAX_SUM_IMPACT | |
| CHOOSE_MAX_AVERAGE_IMPACT | |
| CHOOSE_MAX_VALUE_IMPACT | |
Definition at line 186 of file constraint_solver.h.
| operations_research::DefaultPhaseParameters::DefaultPhaseParameters | ( | ) |
◆ decision_builder
DecisionBuilder* operations_research::DefaultPhaseParameters::decision_builder
When defined, this overrides the default impact based decision builder.
Definition at line 238 of file constraint_solver.h.
◆ display_level
DisplayLevel operations_research::DefaultPhaseParameters::display_level
This represents the amount of information displayed by the default search. NONE means no display, VERBOSE means extra information.
Definition at line 232 of file constraint_solver.h.
◆ heuristic_num_failures_limit
int operations_research::DefaultPhaseParameters::heuristic_num_failures_limit
◆ heuristic_period
int operations_research::DefaultPhaseParameters::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 218 of file constraint_solver.h.
◆ initialization_splits
int operations_research::DefaultPhaseParameters::initialization_splits
Maximum number of intervals that the initialization of impacts will scan per variable.
Definition at line 208 of file constraint_solver.h.
◆ persistent_impact
bool operations_research::DefaultPhaseParameters::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 225 of file constraint_solver.h.
◆ random_seed
int operations_research::DefaultPhaseParameters::random_seed
Seed used to initialize the random part in some heuristics.
Definition at line 228 of file constraint_solver.h.
◆ run_all_heuristics
bool operations_research::DefaultPhaseParameters::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 213 of file constraint_solver.h.
◆ use_last_conflict
bool operations_research::DefaultPhaseParameters::use_last_conflict
◆ value_selection_schema
ValueSelection operations_research::DefaultPhaseParameters::value_selection_schema
This parameter describes which value to select for a given var.
Definition at line 204 of file constraint_solver.h.
◆ var_selection_schema
VariableSelection operations_research::DefaultPhaseParameters::var_selection_schema
This parameter describes how the next variable to instantiate will be chosen.
Definition at line 201 of file constraint_solver.h.
The documentation for this struct was generated from the following files:
- ortools/constraint_solver/constraint_solver.h
- ortools/constraint_solver/default_search.cc