14 #ifndef OR_TOOLS_OPEN_SOURCE_INIT_INIT_H_ 15 #define OR_TOOLS_OPEN_SOURCE_INIT_INIT_H_ 20 #include "absl/flags/flag.h" 104 absl::SetFlag(&FLAGS_logtostderr, flags.
logtostderr);
105 absl::SetFlag(&FLAGS_log_prefix, flags.
log_prefix);
129 #endif // OR_TOOLS_OPEN_SOURCE_INIT_INIT_H_ void InitGoogleLogging(const char *argv0)
absl::Status LoadGurobiDynamicLibrary(std::vector< std::string > potential_paths)
static void ShutdownLogging()
Shutdown the C++ logging layer.
bool cp_model_dump_lns
DEBUG ONLY: Dump CP-SAT LNS models during solve.
This class performs various C++ initialization.
Simple structure that holds useful C++ flags to setup from non-C++ languages.
bool cp_model_dump_response
DEBUG ONLY: Dump the CP-SAT final response found during solve.
bool logtostderr
If true, all logging message will be sent to stderr.
static void SetFlags(const CppFlags &flags)
Sets all the C++ flags contained in the CppFlags structure.
static void InitLogging(const std::string &program_name)
Initialize the C++ logging layer.
Collection of objects used to extend the Constraint Solver library.
std::string cp_model_dump_prefix
Prefix filename for all dumped files (models, solutions, lns sub-models).
ABSL_DECLARE_FLAG(std::string, cp_model_dump_prefix)
bool cp_model_dump_models
DEBUG ONLY: Dump CP-SAT models during solve.
bool log_prefix
Controls is time and source code info are used to prefix logging messages.
static bool LoadGurobiSharedLibrary(const std::string &full_library_path)
Load the gurobi shared library.
void ShutdownGoogleLogging()