![]() |
OR-Tools
8.2
|
Definition at line 43 of file synchronization.h.
Classes | |
| struct | Solution |
Public Member Functions | |
| SharedSolutionRepository (int num_solutions_to_keep) | |
| int | NumSolutions () const |
| Solution | GetSolution (int index) const |
| ValueType | GetVariableValueInSolution (int var_index, int solution_index) const |
| Solution | GetRandomBiasedSolution (absl::BitGenRef random) const |
| void | Add (const Solution &solution) |
| void | Synchronize () |
Protected Member Functions | |
| void | AddInternal (const Solution &solution) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mutex_) |
| int64 num_synchronization_ | ABSL_GUARDED_BY (mutex_)=0 |
| std::vector< int > tmp_indices_ | ABSL_GUARDED_BY (mutex_) |
| std::vector< Solution > solutions_ | ABSL_GUARDED_BY (mutex_) |
| std::vector< Solution > new_solutions_ | ABSL_GUARDED_BY (mutex_) |
Protected Attributes | |
| const int | num_solutions_to_keep_ |
| absl::Mutex | mutex_ |
|
inlineexplicit |
Definition at line 45 of file synchronization.h.
|
mutableprotected |
| void Add | ( | const Solution & | solution | ) |
Definition at line 461 of file synchronization.h.
|
protected |
Definition at line 467 of file synchronization.h.
| SharedSolutionRepository< ValueType >::Solution GetRandomBiasedSolution | ( | absl::BitGenRef | random | ) | const |
Definition at line 426 of file synchronization.h.
| SharedSolutionRepository< ValueType >::Solution GetSolution | ( | int | index | ) | const |
Definition at line 411 of file synchronization.h.
| ValueType GetVariableValueInSolution | ( | int | var_index, |
| int | solution_index | ||
| ) | const |
Definition at line 417 of file synchronization.h.
| int NumSolutions |
Definition at line 404 of file synchronization.h.
| void Synchronize |
Definition at line 485 of file synchronization.h.
|
mutableprotected |
Definition at line 114 of file synchronization.h.
|
protected |
Definition at line 113 of file synchronization.h.