![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Definition at line 364 of file synchronization.h.
#include <synchronization.h>
Public Member Functions | |
| SharedResponseManager (Model *model) | |
| void | InitializeObjective (const CpModelProto &cp_model) |
| void | SetGapLimitsFromParameters (const SatParameters ¶meters) |
| CpSolverResponse | GetResponse () |
| void | AddSolutionPostprocessor (std::function< void(std::vector< int64_t > *)> postprocessor) |
| void | AddResponsePostprocessor (std::function< void(CpSolverResponse *)> postprocessor) |
| void | AddFinalResponsePostprocessor (std::function< void(CpSolverResponse *)> postprocessor) |
| void | AddStatisticsPostprocessor (std::function< void(Model *, CpSolverResponse *)> postprocessor) |
| void | FillSolveStatsInResponse (Model *model, CpSolverResponse *response) |
| int | AddSolutionCallback (std::function< void(const CpSolverResponse &)> callback) |
| void | UnregisterCallback (int callback_id) |
| void | AddStatusChangeCallback (std::function< void(const SolverStatusChangeInfo &)> callback) |
| int | AddLogCallback (std::function< std::string(const CpSolverResponse &)> callback) |
| void | UnregisterLogCallback (int callback_id) |
| int | AddBestBoundCallback (std::function< void(double)> callback) |
| void | UnregisterBestBoundCallback (int callback_id) |
| void | Synchronize () |
| IntegerValue | GetInnerObjectiveLowerBound () |
| IntegerValue | GetInnerObjectiveUpperBound () |
| IntegerValue | GetBestSolutionObjective () |
| IntegerValue | BestSolutionInnerObjectiveValue () |
| double | GapIntegral () const |
| void | UpdateGapIntegral () |
| void | SetUpdateGapIntegralOnEachChange (bool set) |
| void | SetSynchronizationMode (bool always_synchronize) |
| void | UpdateInnerObjectiveBounds (const std::string &update_info, IntegerValue lb, IntegerValue ub) |
| std::shared_ptr< const SharedSolutionRepository< int64_t >::Solution > | NewSolution (absl::Span< const int64_t > solution_values, absl::string_view solution_info, Model *model=nullptr, int source_id=-1) |
| void | NotifyThatImprovingProblemIsInfeasible (absl::string_view worker_info) |
| void | AddUnsatCore (const std::vector< int > &core) |
| bool | ProblemIsSolved () const |
| bool | HasFeasibleSolution () const |
| const SharedSolutionPool & | SolutionPool () const |
| void | set_dump_prefix (absl::string_view dump_prefix) |
| void | LogMessage (absl::string_view prefix, absl::string_view message) |
| void | LogMessageWithThrottling (absl::string_view prefix, absl::string_view message) |
| bool | LoggingIsEnabled () const |
| void | AppendResponseToBeMerged (const CpSolverResponse &response) |
| std::atomic< bool > * | first_solution_solvers_should_stop () |
| void | LoadDebugSolution (absl::Span< const int64_t > solution) |
| const std::vector< int64_t > & | DebugSolution () const |
|
explicit |
Definition at line 261 of file synchronization.cc.
| int operations_research::sat::SharedResponseManager::AddBestBoundCallback | ( | std::function< void(double)> | callback | ) |
Definition at line 619 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddFinalResponsePostprocessor | ( | std::function< void(CpSolverResponse *)> | postprocessor | ) |
Definition at line 563 of file synchronization.cc.
| int operations_research::sat::SharedResponseManager::AddLogCallback | ( | std::function< std::string(const CpSolverResponse &)> | callback | ) |
Definition at line 594 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddResponsePostprocessor | ( | std::function< void(CpSolverResponse *)> | postprocessor | ) |
Definition at line 557 of file synchronization.cc.
| int operations_research::sat::SharedResponseManager::AddSolutionCallback | ( | std::function< void(const CpSolverResponse &)> | callback | ) |
Definition at line 575 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddSolutionPostprocessor | ( | std::function< void(std::vector< int64_t > *)> | postprocessor | ) |
Definition at line 551 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddStatisticsPostprocessor | ( | std::function< void(Model *, CpSolverResponse *)> | postprocessor | ) |
Definition at line 569 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddStatusChangeCallback | ( | std::function< void(const SolverStatusChangeInfo &)> | callback | ) |
Definition at line 602 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AddUnsatCore | ( | const std::vector< int > & | core | ) |
Definition at line 511 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::AppendResponseToBeMerged | ( | const CpSolverResponse & | response | ) |
Definition at line 720 of file synchronization.cc.
| IntegerValue operations_research::sat::SharedResponseManager::BestSolutionInnerObjectiveValue | ( | ) |
Definition at line 541 of file synchronization.cc.
|
inline |
Definition at line 565 of file synchronization.h.
| void operations_research::sat::SharedResponseManager::FillSolveStatsInResponse | ( | Model * | model, |
| CpSolverResponse * | response ) |
Definition at line 271 of file synchronization.cc.
|
inline |
Definition at line 556 of file synchronization.h.
| double operations_research::sat::SharedResponseManager::GapIntegral | ( | ) | const |
Definition at line 546 of file synchronization.cc.
|
inline |
Definition at line 463 of file synchronization.h.
| IntegerValue operations_research::sat::SharedResponseManager::GetInnerObjectiveLowerBound | ( | ) |
Definition at line 516 of file synchronization.cc.
| IntegerValue operations_research::sat::SharedResponseManager::GetInnerObjectiveUpperBound | ( | ) |
Definition at line 521 of file synchronization.cc.
| CpSolverResponse operations_research::sat::SharedResponseManager::GetResponse | ( | ) |
Definition at line 686 of file synchronization.cc.
|
inline |
Definition at line 535 of file synchronization.h.
| void operations_research::sat::SharedResponseManager::InitializeObjective | ( | const CpModelProto & | cp_model | ) |
Definition at line 308 of file synchronization.cc.
|
inline |
Definition at line 562 of file synchronization.h.
| bool operations_research::sat::SharedResponseManager::LoggingIsEnabled | ( | ) | const |
Definition at line 302 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::LogMessage | ( | absl::string_view | prefix, |
| absl::string_view | message ) |
Definition at line 280 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::LogMessageWithThrottling | ( | absl::string_view | prefix, |
| absl::string_view | message ) |
Definition at line 287 of file synchronization.cc.
| std::shared_ptr< const SharedSolutionRepository< int64_t >::Solution > operations_research::sat::SharedResponseManager::NewSolution | ( | absl::Span< const int64_t > | solution_values, |
| absl::string_view | solution_info, | ||
| Model * | model = nullptr, | ||
| int | source_id = -1 ) |
Definition at line 759 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::NotifyThatImprovingProblemIsInfeasible | ( | absl::string_view | worker_info | ) |
Definition at line 484 of file synchronization.cc.
| bool operations_research::sat::SharedResponseManager::ProblemIsSolved | ( | ) | const |
Definition at line 893 of file synchronization.cc.
|
inline |
Definition at line 544 of file synchronization.h.
| void operations_research::sat::SharedResponseManager::SetGapLimitsFromParameters | ( | const SatParameters & | parameters | ) |
Definition at line 360 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::SetSynchronizationMode | ( | bool | always_synchronize | ) |
Definition at line 321 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::SetUpdateGapIntegralOnEachChange | ( | bool | set | ) |
Definition at line 326 of file synchronization.cc.
|
inline |
Definition at line 541 of file synchronization.h.
| void operations_research::sat::SharedResponseManager::Synchronize | ( | ) |
Definition at line 526 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::UnregisterBestBoundCallback | ( | int | callback_id | ) |
Definition at line 627 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::UnregisterCallback | ( | int | callback_id | ) |
Definition at line 583 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::UnregisterLogCallback | ( | int | callback_id | ) |
Definition at line 608 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::UpdateGapIntegral | ( | ) |
Definition at line 331 of file synchronization.cc.
| void operations_research::sat::SharedResponseManager::UpdateInnerObjectiveBounds | ( | const std::string & | update_info, |
| IntegerValue | lb, | ||
| IntegerValue | ub ) |
Definition at line 407 of file synchronization.cc.