OR-Tools  8.0
search.cc File Reference

Go to the source code of this file.

Classes

class  SymmetryManager
 

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 

Typedefs

typedef std::pair< int64, int64Arc
 

Functions

 DEFINE_bool (cp_use_sparse_gls_penalties, false, "Use sparse implementation to store Guided Local Search penalties")
 
 DEFINE_bool (cp_log_to_vlog, false, "Whether search related logging should be " "vlog or info.")
 
 DEFINE_int64 (cp_large_domain_no_splitting_limit, 0xFFFFF, "Size limit to allow holes in variables from the strategy.")
 
BaseAssignVariables::Mode ChooseMode (Solver::IntValueStrategy val_str)
 

Function Documentation

◆ DEFINE_bool() [1/2]

DEFINE_bool ( cp_log_to_vlog  ,
false  ,
"Whether search related logging should be " "vlog or info."   
)

◆ DEFINE_bool() [2/2]

DEFINE_bool ( cp_use_sparse_gls_penalties  ,
false  ,
"Use sparse implementation to store Guided Local Search penalties"   
)

◆ DEFINE_int64()

DEFINE_int64 ( cp_large_domain_no_splitting_limit  ,
0xFFFFF  ,
"Size limit to allow holes in variables from the strategy."   
)

Variable Documentation

◆ assignment_penalized_value_

int64 assignment_penalized_value_
protected

Definition at line 3483 of file search.cc.

◆ best_

int64 best_

Definition at line 2494 of file search.cc.

◆ builders_

std::vector<DecisionBuilder*> builders_
protected

Definition at line 470 of file search.cc.

◆ current_

int64 current_
protected

Definition at line 2947 of file search.cc.

◆ current_penalized_values_

std::unique_ptr<int64[]> current_penalized_values_
protected

Definition at line 3489 of file search.cc.

◆ delta_cache_

std::unique_ptr<int64[]> delta_cache_
protected

Definition at line 3490 of file search.cc.

◆ evaluator_

std::function<int64(int64, int64)> evaluator_
protected

Definition at line 1355 of file search.cc.

◆ first_unbound_

Rev<int64> first_unbound_
protected

Definition at line 781 of file search.cc.

◆ incremental_

bool incremental_
protected

Definition at line 3491 of file search.cc.

◆ indices_

absl::flat_hash_map<const IntVar*, int64> indices_
protected

Definition at line 3486 of file search.cc.

◆ last_unbound_

Rev<int64> last_unbound_
protected

Definition at line 782 of file search.cc.

◆ maximize_

const bool maximize_

Definition at line 2493 of file search.cc.

◆ mode_

const Mode mode_
protected

Definition at line 1851 of file search.cc.

◆ objective_

IntVar* const objective_
protected

Definition at line 2945 of file search.cc.

◆ old_penalized_value_

int64 old_penalized_value_
protected

Definition at line 3484 of file search.cc.

◆ penalized_objective_

IntVar* penalized_objective_
protected

Definition at line 3481 of file search.cc.

◆ penalty_factor_

const double penalty_factor_
protected

Definition at line 3487 of file search.cc.

◆ selector_

BaseVariableAssignmentSelector* const selector_
protected

Definition at line 1850 of file search.cc.

◆ solution_count_

const int solution_count_

Definition at line 2572 of file search.cc.

◆ solutions_pq_

std::priority_queue<std::pair<int64, SolutionData> > solutions_pq_

Definition at line 2571 of file search.cc.

◆ solver_

Solver* const solver_
protected

Definition at line 779 of file search.cc.

◆ stamp_

int64 stamp_

Definition at line 3033 of file search.cc.

◆ step_

const int64 step_
protected

Definition at line 2946 of file search.cc.

◆ value

int64 value

Definition at line 1348 of file search.cc.

◆ var

int64 var

Definition at line 1347 of file search.cc.

◆ vars_

const std::vector<IntVar*> vars_
protected

Definition at line 780 of file search.cc.