OR-Tools  9.3
search.cc File Reference

Go to the source code of this file.

Classes

class  SymmetryManager
 

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 

Typedefs

typedef std::pair< int64_t, int64_t > Arc
 

Functions

 ABSL_FLAG (bool, cp_use_sparse_gls_penalties, false, "Use sparse implementation to store Guided Local Search penalties")
 
 ABSL_FLAG (bool, cp_log_to_vlog, false, "Whether search related logging should be " "vlog or info.")
 
 ABSL_FLAG (int64_t, 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

◆ ABSL_FLAG() [1/3]

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

◆ ABSL_FLAG() [2/3]

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

◆ ABSL_FLAG() [3/3]

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

Variable Documentation

◆ assignment_penalized_value_

int64_t assignment_penalized_value_
protected

Definition at line 3562 of file search.cc.

◆ best_

int64_t best_

Definition at line 2560 of file search.cc.

◆ builders_

std::vector<DecisionBuilder*> builders_
protected

Definition at line 480 of file search.cc.

◆ current_

int64_t current_
protected

Definition at line 3019 of file search.cc.

◆ current_penalized_values_

std::unique_ptr<int64_t[]> current_penalized_values_
protected

Definition at line 3568 of file search.cc.

◆ delta_cache_

std::unique_ptr<int64_t[]> delta_cache_
protected

Definition at line 3569 of file search.cc.

◆ evaluator_

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

Definition at line 1368 of file search.cc.

◆ first_unbound_

Rev<int64_t> first_unbound_
protected

Definition at line 791 of file search.cc.

◆ incremental_

bool incremental_
protected

Definition at line 3570 of file search.cc.

◆ indices_

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

Definition at line 3565 of file search.cc.

◆ last_unbound_

Rev<int64_t> last_unbound_
protected

Definition at line 792 of file search.cc.

◆ maximize_

const bool maximize_

Definition at line 2559 of file search.cc.

◆ mode_

const Mode mode_
protected

Definition at line 1917 of file search.cc.

◆ objective_

IntVar* const objective_
protected

Definition at line 3017 of file search.cc.

◆ old_penalized_value_

int64_t old_penalized_value_
protected

Definition at line 3563 of file search.cc.

◆ penalized_objective_

IntVar* penalized_objective_
protected

Definition at line 3560 of file search.cc.

◆ penalty_factor_

const double penalty_factor_
protected

Definition at line 3566 of file search.cc.

◆ selector_

BaseVariableAssignmentSelector* const selector_
protected

Definition at line 1916 of file search.cc.

◆ solution_count_

const int solution_count_

Definition at line 2641 of file search.cc.

◆ solutions_pq_

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

Definition at line 2640 of file search.cc.

◆ solver_

Solver* const solver_
protected

Definition at line 789 of file search.cc.

◆ stamp_

int64_t stamp_

Definition at line 3105 of file search.cc.

◆ step_

const int64_t step_
protected

Definition at line 3018 of file search.cc.

◆ value

int64_t value

Definition at line 1361 of file search.cc.

◆ var

int64_t var

Definition at line 1360 of file search.cc.

◆ vars_

const std::vector<IntVar*> vars_
protected

Definition at line 790 of file search.cc.