OR-Tools  8.2
DefaultPhaseParameters

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 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...
 
DecisionBuilderdecision_builder
 When defined, this overrides the default impact based decision builder. More...
 

Member Enumeration Documentation

◆ DisplayLevel

Enumerator
NONE 
NORMAL 
VERBOSE 

Definition at line 190 of file constraint_solver.h.

◆ ValueSelection

Enumerator
SELECT_MIN_IMPACT 
SELECT_MAX_IMPACT 

Definition at line 185 of file constraint_solver.h.

◆ VariableSelection

Enumerator
CHOOSE_MAX_SUM_IMPACT 
CHOOSE_MAX_AVERAGE_IMPACT 
CHOOSE_MAX_VALUE_IMPACT 

Definition at line 179 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ DefaultPhaseParameters()

Definition at line 46 of file default_search.cc.

Member Data Documentation

◆ decision_builder

DecisionBuilder* decision_builder

When defined, this overrides the default impact based decision builder.

Definition at line 231 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 225 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 214 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 211 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 201 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 218 of file constraint_solver.h.

◆ random_seed

int random_seed

Seed used to initialize the random part in some heuristics.

Definition at line 221 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 206 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 228 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 197 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 194 of file constraint_solver.h.


The documentation for this struct was generated from the following files: