![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
--— Lin-Kernighan --— More...
Public Member Functions | |
NearestNeighbors (Solver::IndexEvaluator3 evaluator, const PathOperator< ignore_path_vars > &path_operator, int size) | |
NearestNeighbors (const NearestNeighbors &)=delete | |
This type is neither copyable nor movable. | |
NearestNeighbors & | operator= (const NearestNeighbors &)=delete |
virtual | ~NearestNeighbors ()=default |
void | Initialize (absl::Span< const int > path) |
const std::vector< int > & | Neighbors (int index) const |
virtual std::string | DebugString () const |
--— Lin-Kernighan --—
For each variable in vars, stores the 'size' pairs(i,j) with the smallest value according to evaluator, where i is the index of the variable in vars and j is in the domain of the variable.
Definition at line 1550 of file local_search.cc.
operations_research::NearestNeighbors< ignore_path_vars >::NearestNeighbors | ( | Solver::IndexEvaluator3 | evaluator, |
const PathOperator< ignore_path_vars > & | path_operator, | ||
int | size ) |
Definition at line 1576 of file local_search.cc.
|
delete |
This type is neither copyable nor movable.
|
virtualdefault |
|
inlinevirtual |
Definition at line 1564 of file local_search.cc.
void operations_research::NearestNeighbors< ignore_path_vars >::Initialize | ( | absl::Span< const int > | path | ) |
Definition at line 1585 of file local_search.cc.
const std::vector< int > & operations_research::NearestNeighbors< ignore_path_vars >::Neighbors | ( | int | index | ) | const |
Definition at line 1593 of file local_search.cc.
|
delete |