![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <synchronization.h>
Public Member Functions | |
void | AddSolution (const std::vector< double > &lp_solution) |
bool | HasSolution () const |
std::vector< double > | PopLast () |
If there are no solution, this return an empty vector. | |
std::vector< std::string > | TableLineStats () const |
Set of partly filled solutions. They are meant to be finished by some lns worker.
The solutions are stored as a vector of doubles. The value at index i represents the solution value of model variable indexed i. Note that some values can be infinity which should be interpreted as 'unknown' solution value for that variable. These solutions can not necessarily be completed to complete feasible solutions.
Definition at line 198 of file synchronization.h.
void operations_research::sat::SharedIncompleteSolutionManager::AddSolution | ( | const std::vector< double > & | lp_solution | ) |
This adds a new solution to the stack.
Definition at line 94 of file synchronization.cc.
bool operations_research::sat::SharedIncompleteSolutionManager::HasSolution | ( | ) | const |
Definition at line 102 of file synchronization.cc.
std::vector< double > operations_research::sat::SharedIncompleteSolutionManager::PopLast | ( | ) |
If there are no solution, this return an empty vector.
Definition at line 107 of file synchronization.cc.
|
inline |
Definition at line 209 of file synchronization.h.