![]() |
OR-Tools
9.6
|
Definition at line 192 of file 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) |
| int | AddSolutionCallback (std::function< void(const CpSolverResponse &)> callback) |
| void | UnregisterCallback (int callback_id) |
| IntegerValue | GetInnerObjectiveLowerBound () |
| IntegerValue | GetInnerObjectiveUpperBound () |
| void | Synchronize () |
| IntegerValue | SynchronizedInnerObjectiveLowerBound () |
| IntegerValue | SynchronizedInnerObjectiveUpperBound () |
| 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) |
| void | NewSolution (absl::Span< const int64_t > solution_values, const std::string &solution_info, Model *model=nullptr) |
| void | NotifyThatImprovingProblemIsInfeasible (const std::string &worker_info) |
| void | AddUnsatCore (const std::vector< int > &core) |
| bool | ProblemIsSolved () const |
| const SharedSolutionRepository< int64_t > & | SolutionsRepository () const |
| SharedSolutionRepository< int64_t > * | MutableSolutionsRepository () |
| void | set_dump_prefix (const std::string &dump_prefix) |
| void | DisplayImprovementStatistics () |
| void | LogMessage (const std::string &prefix, const std::string &message) |
| void | LogPeriodicMessage (const std::string &prefix, const std::string &message, double frequency_seconds, absl::Time *last_logging_time) |
| 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 122 of file synchronization.cc.
| void AddFinalResponsePostprocessor | ( | std::function< void(CpSolverResponse *)> | postprocessor | ) |
Definition at line 439 of file synchronization.cc.
| void AddResponsePostprocessor | ( | std::function< void(CpSolverResponse *)> | postprocessor | ) |
Definition at line 433 of file synchronization.cc.
| int AddSolutionCallback | ( | std::function< void(const CpSolverResponse &)> | callback | ) |
Definition at line 445 of file synchronization.cc.
| void AddSolutionPostprocessor | ( | std::function< void(std::vector< int64_t > *)> | postprocessor | ) |
Definition at line 427 of file synchronization.cc.
| void AddUnsatCore | ( | const std::vector< int > & | core | ) |
Definition at line 380 of file synchronization.cc.
| void AppendResponseToBeMerged | ( | const CpSolverResponse & | response | ) |
Definition at line 542 of file synchronization.cc.
| IntegerValue BestSolutionInnerObjectiveValue | ( | ) |
Definition at line 417 of file synchronization.cc.
|
inline |
Definition at line 352 of file synchronization.h.
| void DisplayImprovementStatistics | ( | ) |
Definition at line 747 of file synchronization.cc.
|
inline |
Definition at line 343 of file synchronization.h.
| double GapIntegral | ( | ) | const |
Definition at line 422 of file synchronization.cc.
| IntegerValue GetInnerObjectiveLowerBound | ( | ) |
Definition at line 385 of file synchronization.cc.
| IntegerValue GetInnerObjectiveUpperBound | ( | ) |
Definition at line 390 of file synchronization.cc.
| CpSolverResponse GetResponse | ( | ) |
Definition at line 512 of file synchronization.cc.
| void InitializeObjective | ( | const CpModelProto & | cp_model | ) |
Definition at line 201 of file synchronization.cc.
|
inline |
Definition at line 349 of file synchronization.h.
|
inline |
Definition at line 339 of file synchronization.h.
| void LogMessage | ( | const std::string & | prefix, |
| const std::string & | message | ||
| ) |
Definition at line 178 of file synchronization.cc.
| void LogPeriodicMessage | ( | const std::string & | prefix, |
| const std::string & | message, | ||
| double | frequency_seconds, | ||
| absl::Time * | last_logging_time | ||
| ) |
Definition at line 185 of file synchronization.cc.
|
inline |
Definition at line 323 of file synchronization.h.
| void NewSolution | ( | absl::Span< const int64_t > | solution_values, |
| const std::string & | solution_info, | ||
| Model * | model = nullptr |
||
| ) |
Definition at line 580 of file synchronization.cc.
| void NotifyThatImprovingProblemIsInfeasible | ( | const std::string & | worker_info | ) |
Definition at line 359 of file synchronization.cc.
| bool ProblemIsSolved | ( | ) | const |
Definition at line 709 of file synchronization.cc.
|
inline |
Definition at line 328 of file synchronization.h.
| void SetGapLimitsFromParameters | ( | const SatParameters & | parameters | ) |
Definition at line 253 of file synchronization.cc.
| void SetSynchronizationMode | ( | bool | always_synchronize | ) |
Definition at line 214 of file synchronization.cc.
| void SetUpdateGapIntegralOnEachChange | ( | bool | set | ) |
Definition at line 219 of file synchronization.cc.
|
inline |
Definition at line 320 of file synchronization.h.
| void Synchronize | ( | ) |
Definition at line 395 of file synchronization.cc.
| IntegerValue SynchronizedInnerObjectiveLowerBound | ( | ) |
Definition at line 407 of file synchronization.cc.
| IntegerValue SynchronizedInnerObjectiveUpperBound | ( | ) |
Definition at line 412 of file synchronization.cc.
| void UnregisterCallback | ( | int | callback_id | ) |
Definition at line 453 of file synchronization.cc.
| void UpdateGapIntegral | ( | ) |
Definition at line 224 of file synchronization.cc.
| void UpdateInnerObjectiveBounds | ( | const std::string & | update_info, |
| IntegerValue | lb, | ||
| IntegerValue | ub | ||
| ) |
Definition at line 300 of file synchronization.cc.