Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.init.CppFlags Class Reference

Public Member Functions

synchronized void delete ()
 
void setStderrthreshold (int value)
 
int getStderrthreshold ()
 
void setLog_prefix (boolean value)
 
boolean getLog_prefix ()
 
void setCp_model_dump_prefix (String value)
 
String getCp_model_dump_prefix ()
 
void setCp_model_dump_models (boolean value)
 
boolean getCp_model_dump_models ()
 
void setCp_model_dump_lns (boolean value)
 
boolean getCp_model_dump_lns ()
 
void setCp_model_dump_response (boolean value)
 
boolean getCp_model_dump_response ()
 
 CppFlags ()
 

Protected Member Functions

 CppFlags (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (CppFlags obj)
 
static long swigRelease (CppFlags obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

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

Definition at line 14 of file CppFlags.java.

Constructor & Destructor Documentation

◆ CppFlags() [1/2]

com.google.ortools.init.CppFlags.CppFlags ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 18 of file CppFlags.java.

◆ CppFlags() [2/2]

com.google.ortools.init.CppFlags.CppFlags ( )

Definition at line 168 of file CppFlags.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.init.CppFlags.delete ( )

Definition at line 44 of file CppFlags.java.

◆ finalize()

void com.google.ortools.init.CppFlags.finalize ( )
protected

Definition at line 40 of file CppFlags.java.

◆ getCp_model_dump_lns()

boolean com.google.ortools.init.CppFlags.getCp_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 144 of file CppFlags.java.

◆ getCp_model_dump_models()

boolean com.google.ortools.init.CppFlags.getCp_model_dump_models ( )

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 124 of file CppFlags.java.

◆ getCp_model_dump_prefix()

String com.google.ortools.init.CppFlags.getCp_model_dump_prefix ( )

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

Definition at line 102 of file CppFlags.java.

◆ getCp_model_dump_response()

boolean com.google.ortools.init.CppFlags.getCp_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 164 of file CppFlags.java.

◆ getCPtr()

static long com.google.ortools.init.CppFlags.getCPtr ( CppFlags obj)
staticprotected

Definition at line 23 of file CppFlags.java.

◆ getLog_prefix()

boolean com.google.ortools.init.CppFlags.getLog_prefix ( )

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

Definition at line 88 of file CppFlags.java.

◆ getStderrthreshold()

int com.google.ortools.init.CppFlags.getStderrthreshold ( )

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 72 of file CppFlags.java.

◆ setCp_model_dump_lns()

void com.google.ortools.init.CppFlags.setCp_model_dump_lns ( boolean value)

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 134 of file CppFlags.java.

◆ setCp_model_dump_models()

void com.google.ortools.init.CppFlags.setCp_model_dump_models ( boolean value)

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 113 of file CppFlags.java.

◆ setCp_model_dump_prefix()

void com.google.ortools.init.CppFlags.setCp_model_dump_prefix ( String value)

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

Definition at line 95 of file CppFlags.java.

◆ setCp_model_dump_response()

void com.google.ortools.init.CppFlags.setCp_model_dump_response ( boolean value)

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 154 of file CppFlags.java.

◆ setLog_prefix()

void com.google.ortools.init.CppFlags.setLog_prefix ( boolean value)

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

Definition at line 80 of file CppFlags.java.

◆ setStderrthreshold()

void com.google.ortools.init.CppFlags.setStderrthreshold ( int value)

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 61 of file CppFlags.java.

◆ swigRelease()

static long com.google.ortools.init.CppFlags.swigRelease ( CppFlags obj)
staticprotected

Definition at line 27 of file CppFlags.java.

Member Data Documentation

◆ swigCMemOwn

transient boolean com.google.ortools.init.CppFlags.swigCMemOwn
protected

Definition at line 16 of file CppFlags.java.


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