Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Simple class used to filter executed subsolver names. More...
#include <cp_model_search.h>
Public Member Functions | |
SubsolverNameFilter (const SatParameters ¶ms) | |
Warning, params must outlive the class and be constant. | |
bool | Keep (absl::string_view name) |
Shall we keep a parameter with given name? | |
std::vector< SatParameters > | Filter (absl::Span< const SatParameters > input) |
Applies Keep() to all the input list. | |
std::string | LastName () const |
const std::vector< std::string > & | AllIgnored () |
Returns the list of all ignored subsolver for use in logs. | |
Simple class used to filter executed subsolver names.
Definition at line 132 of file cp_model_search.h.
|
explicit |
Warning, params must outlive the class and be constant.
Hack for backward compatibility and easy of use.
Still add first solution solvers.
Definition at line 1018 of file cp_model_search.cc.
|
inline |
Returns the list of all ignored subsolver for use in logs.
Definition at line 157 of file cp_model_search.h.
|
inline |
Applies Keep() to all the input list.
Definition at line 141 of file cp_model_search.h.
bool operations_research::sat::SubsolverNameFilter::Keep | ( | absl::string_view | name | ) |
Shall we keep a parameter with given name?
Definition at line 1040 of file cp_model_search.cc.
|
inline |
This is just a convenient function to follow the pattern if (filter.Keep("my_name")) subsovers.Add(.... filter.LastName() ... ) And not repeat "my_name" twice.
Definition at line 154 of file cp_model_search.h.