Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::CppFlags Struct Reference

#include <init.h>

Public Attributes

int stderrthreshold = 2
 Controls the logging level shown on stderr.
 
bool log_prefix = false
 Controls if time and source code info are used to prefix logging messages.
 
std::string cp_model_dump_prefix
 
bool cp_model_dump_models = false
 
bool cp_model_dump_submodels
 
bool cp_model_dump_response
 

Detailed Description

Simple structure that holds useful C++ flags to setup from non-C++ languages.

Definition at line 41 of file init.h.

Member Data Documentation

◆ cp_model_dump_models

bool operations_research::CppFlags::cp_model_dump_models = false

DEBUG ONLY: Dump CP-SAT models during solve.

When set to true, SolveCpModel() will dump its model protos (original model, presolved model, mapping model) in text format to 'FLAGS_cp_model_dump_prefix'{model|presolved_model|mapping_model}.pbtxt.

Definition at line 69 of file init.h.

◆ cp_model_dump_prefix

std::string operations_research::CppFlags::cp_model_dump_prefix

Prefix filename for all dumped files (models, solutions, lns sub-models).

Definition at line 61 of file init.h.

◆ cp_model_dump_response

bool operations_research::CppFlags::cp_model_dump_response

DEBUG ONLY: Dump the CP-SAT final response found during solve.

If true, the final response of each solve will be dumped to 'FLAGS_cp_model_dump_prefix'response.pbtxt.

Definition at line 85 of file init.h.

◆ cp_model_dump_submodels

bool operations_research::CppFlags::cp_model_dump_submodels

DEBUG ONLY: Dump CP-SAT LNS models during solve.

When set to true, solve will dump all lns models proto in text format to 'FLAGS_cp_model_dump_prefix'lns_xxx.pbtxt.

Definition at line 77 of file init.h.

◆ log_prefix

bool operations_research::CppFlags::log_prefix = false

Controls if time and source code info are used to prefix logging messages.

Definition at line 56 of file init.h.

◆ stderrthreshold

int operations_research::CppFlags::stderrthreshold = 2

Controls the logging level shown on stderr.

By default, the logger will only display ERROR and FATAL logs (value 2 and 3) to stderr. To display INFO and WARNING logs (value 0 and 1), change the threshold to the min value of the message that should be printed.

Definition at line 50 of file init.h.


The documentation for this struct was generated from the following file: