![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 225 of file synchronization.h.
#include <synchronization.h>
Public Member Functions | |
| SharedLPSolutionRepository (int num_solutions_to_keep) | |
| void | NewLPSolution (std::vector< double > lp_solution) |
| Public Member Functions inherited from operations_research::sat::SharedSolutionRepository< double > | |
| SharedSolutionRepository (int num_solutions_to_keep, absl::string_view name="", int source_id=-1) | |
| int | NumSolutions () const |
| std::shared_ptr< const Solution > | GetSolution (int index) const |
| int64_t | GetBestRank () const |
| std::vector< std::shared_ptr< const Solution > > | GetBestNSolutions (int n) const |
| double | GetVariableValueInSolution (int var_index, int solution_index) const |
| std::shared_ptr< const Solution > | GetRandomBiasedSolution (absl::BitGenRef random) const |
| std::shared_ptr< const Solution > | Add (Solution solution) |
| void | Synchronize (std::function< void(const Solution &solution)> f=nullptr) |
| std::vector< std::string > | TableLineStats () const |
| int64_t | NumRecentlyNonImproving () const |
| void | ClearSolutionsAndIncreaseSourceId () |
| int | source_id () const |
| int | num_queried () const |
| int | num_solutions_to_keep () const |
| void | SetDiversityLimit (int value) |
Additional Inherited Members | |
| Protected Member Functions inherited from operations_research::sat::SharedSolutionRepository< double > | |
| int source_id_ | ABSL_GUARDED_BY (mutex_) |
| Protected Attributes inherited from operations_research::sat::SharedSolutionRepository< double > | |
| const std::string | name_ |
| const int | num_solutions_to_keep_ |
| int | diversity_limit_ |
| absl::Mutex | mutex_ |
|
inlineexplicit |
Definition at line 227 of file synchronization.h.
| void operations_research::sat::SharedLPSolutionRepository::NewLPSolution | ( | std::vector< double > | lp_solution | ) |
Definition at line 220 of file synchronization.cc.