OR-Tools  9.6
CppFlags

Detailed Description

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

Definition at line 41 of file init.h.

Public Attributes

int stderrthreshold = 2
 Controls the logging level shown on stderr. More...
 
bool log_prefix = false
 Controls if time and source code info are used to prefix logging messages. More...
 
std::string cp_model_dump_prefix
 Prefix filename for all dumped files (models, solutions, lns sub-models). More...
 
bool cp_model_dump_models = false
 DEBUG ONLY: Dump CP-SAT models during solve. More...
 
bool cp_model_dump_lns
 DEBUG ONLY: Dump CP-SAT LNS models during solve. More...
 
bool cp_model_dump_response
 DEBUG ONLY: Dump the CP-SAT final response found during solve. More...
 

Member Data Documentation

◆ cp_model_dump_lns

bool cp_model_dump_lns

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.

◆ cp_model_dump_models

bool 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 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 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.

◆ log_prefix

bool 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 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: