Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::DefaultPhaseParameters Struct Reference

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

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 187 of file constraint_solver.h.

Member Enumeration Documentation

◆ DisplayLevel

Enumerator
NONE 
NORMAL 
VERBOSE 

Definition at line 200 of file constraint_solver.h.

◆ ValueSelection

Enumerator
SELECT_MIN_IMPACT 
SELECT_MAX_IMPACT 

Definition at line 195 of file constraint_solver.h.

◆ VariableSelection

Enumerator
CHOOSE_MAX_SUM_IMPACT 
CHOOSE_MAX_AVERAGE_IMPACT 
CHOOSE_MAX_VALUE_IMPACT 

Definition at line 189 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ DefaultPhaseParameters()

operations_research::DefaultPhaseParameters::DefaultPhaseParameters ( )

Definition at line 47 of file default_search.cc.

Member Data Documentation

◆ decision_builder

DecisionBuilder* operations_research::DefaultPhaseParameters::decision_builder

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

Definition at line 241 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 235 of file constraint_solver.h.

◆ heuristic_num_failures_limit

int operations_research::DefaultPhaseParameters::heuristic_num_failures_limit

The failure limit for each heuristic that we run.

Definition at line 224 of file constraint_solver.h.

◆ 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 221 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 211 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 228 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 231 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 216 of file constraint_solver.h.

◆ use_last_conflict

bool operations_research::DefaultPhaseParameters::use_last_conflict

Should we use last conflict method. The default is false.

Definition at line 238 of file constraint_solver.h.

◆ value_selection_schema

ValueSelection operations_research::DefaultPhaseParameters::value_selection_schema

This parameter describes which value to select for a given var.

Definition at line 207 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 204 of file constraint_solver.h.


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