Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ constraint_solver/ |
#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 |
This parameter describes how the next variable to instantiate will be chosen. | |
ValueSelection | value_selection_schema |
This parameter describes which value to select for a given var. | |
int | initialization_splits |
Maximum number of intervals the initialization of impacts will scan per variable. | |
bool | run_all_heuristics |
The default phase will run heuristic periodically. | |
int | heuristic_period |
The distance in nodes between each run of the heuristics. | |
int | heuristic_num_failures_limit |
The failure limit for each heuristic that we run. | |
bool | persistent_impact |
Whether to keep the impact from the first search for other searches or to recompute the impact for each new search. | |
int | random_seed |
Seed used to initialize the random part in some heuristics. | |
double | restart_log_size |
Automatic Restart Size. | |
DisplayLevel | display_level |
This represents the amount of information displayed by the default search. | |
bool | use_no_goods |
Should we use Nogoods when restarting. The default is false. | |
bool | use_impacts |
Used in tests. Disable impacts and run choose first unbound, assign min. | |
Static Public Attributes | |
static const int | kDefaultNumberOfSplits = 100 |
Default constants for search phase parameters. | |
static const int | kDefaultHeuristicPeriod = 100 |
static const int | kDefaultHeuristicNumFailuresLimit = 30 |
static const int | kDefaultSeed = 0 |
static const double | kDefaultRestartLogSize = -1.0 |
static const bool | kDefaultUseNoGoods = true |
DefaultPhaseParameters is only used by Solver::MakeDefaultPhase methods. Note this is for advanced users only.
Definition at line 229 of file constraint_solver.h.
Definition at line 238 of file constraint_solver.h.
operations_research::DefaultPhaseParameters::DefaultPhaseParameters | ( | ) | [inline] |
Definition at line 255 of file constraint_solver.h.
const int operations_research::DefaultPhaseParameters::kDefaultNumberOfSplits = 100 [static] |
const int operations_research::DefaultPhaseParameters::kDefaultHeuristicPeriod = 100 [static] |
Definition at line 232 of file constraint_solver.h.
const int operations_research::DefaultPhaseParameters::kDefaultHeuristicNumFailuresLimit = 30 [static] |
Definition at line 233 of file constraint_solver.h.
const int operations_research::DefaultPhaseParameters::kDefaultSeed = 0 [static] |
Definition at line 234 of file constraint_solver.h.
const double operations_research::DefaultPhaseParameters::kDefaultRestartLogSize = -1.0 [static] |
Definition at line 235 of file constraint_solver.h.
const bool operations_research::DefaultPhaseParameters::kDefaultUseNoGoods = true [static] |
Definition at line 236 of file constraint_solver.h.
This parameter describes how the next variable to instantiate will be chosen.
Definition at line 271 of file constraint_solver.h.
This parameter describes which value to select for a given var.
Definition at line 274 of file constraint_solver.h.
Maximum number of intervals the initialization of impacts will scan per variable.
Definition at line 278 of file constraint_solver.h.
The default phase will run heuristic periodically.
This parameter indicates if we should run all heuristics, or a randomly selected one.
Definition at line 283 of file constraint_solver.h.
The distance in nodes between each run of the heuristics.
Definition at line 286 of file constraint_solver.h.
The failure limit for each heuristic that we run.
Definition at line 289 of file constraint_solver.h.
Whether to keep the impact from the first search for other searches or to recompute the impact for each new search.
Definition at line 293 of file constraint_solver.h.
Seed used to initialize the random part in some heuristics.
Definition at line 296 of file constraint_solver.h.
Automatic Restart Size.
When diving down, the size of the search space disminishes. We maintain the minimal log of the size of the search space with the following behavior:
Definition at line 307 of file constraint_solver.h.
This represents the amount of information displayed by the default search.
NONE means no display, VERBOSE means extra information.
Definition at line 311 of file constraint_solver.h.
Should we use Nogoods when restarting. The default is false.
Definition at line 314 of file constraint_solver.h.
Used in tests. Disable impacts and run choose first unbound, assign min.
Definition at line 317 of file constraint_solver.h.