Package com.google.ortools.init
Class CppFlags
- java.lang.Object
-
- com.google.ortools.init.CppFlags
-
public class CppFlags extends java.lang.ObjectSimple structure that holds useful C++ flags to setup from non-C++ languages.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()booleangetCp_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.booleangetCp_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.java.lang.StringgetCp_model_dump_prefix()Prefix filename for all dumped files (models, solutions, lns sub-models).booleangetCp_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.protected static longgetCPtr(CppFlags obj)booleangetLog_prefix()Controls if time and source code info are used to prefix logging
messages.intgetStderrthreshold()Controls the logging level shown on stderr.
By default, the logger will only display ERROR and FATAL logs (value 2 and
3) to stderr.voidsetCp_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.voidsetCp_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.voidsetCp_model_dump_prefix(java.lang.String value)Prefix filename for all dumped files (models, solutions, lns sub-models).voidsetCp_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.voidsetLog_prefix(boolean value)Controls if time and source code info are used to prefix logging
messages.voidsetStderrthreshold(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.protected static longswigRelease(CppFlags obj)
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(CppFlags obj)
-
swigRelease
protected static long swigRelease(CppFlags obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete()
-
setStderrthreshold
public void 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.
-
getStderrthreshold
public int 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.
-
setLog_prefix
public void setLog_prefix(boolean value)
Controls if time and source code info are used to prefix logging
messages.
-
getLog_prefix
public boolean getLog_prefix()
Controls if time and source code info are used to prefix logging
messages.
-
setCp_model_dump_prefix
public void setCp_model_dump_prefix(java.lang.String value)
Prefix filename for all dumped files (models, solutions, lns sub-models).
-
getCp_model_dump_prefix
public java.lang.String getCp_model_dump_prefix()
Prefix filename for all dumped files (models, solutions, lns sub-models).
-
setCp_model_dump_models
public void 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.
-
getCp_model_dump_models
public boolean 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.
-
setCp_model_dump_lns
public void 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.
-
getCp_model_dump_lns
public boolean 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.
-
setCp_model_dump_response
public void 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.
-
getCp_model_dump_response
public boolean 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.
-
-