Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <set_cover_heuristics.h>
Public Member Functions | |
RandomSolutionGenerator (SetCoverInvariant *inv) | |
bool | NextSolution () |
Returns true if a solution was found. | |
bool | NextSolution (const std::vector< SubsetIndex > &focus) |
A slightly more complicated but better way to compute a first solution is to select columns randomly. Less silly than the previous one, and provides much better results.
Definition at line 128 of file set_cover_heuristics.h.
|
inlineexplicit |
Definition at line 130 of file set_cover_heuristics.h.
bool operations_research::RandomSolutionGenerator::NextSolution | ( | ) |
Returns true if a solution was found.
Definition at line 93 of file set_cover_heuristics.cc.
bool operations_research::RandomSolutionGenerator::NextSolution | ( | const std::vector< SubsetIndex > & | focus | ) |
Computes the next partial solution considering only the subsets whose indices are in focus.
Definition at line 97 of file set_cover_heuristics.cc.