Package com.google.ortools.init
Class CppFlags
java.lang.Object
com.google.ortools.init.CppFlags
Simple structure that holds useful C++ flags to setup from non-C++ languages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()protected voidfinalize()booleanDEBUG 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.booleanDEBUG 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.Prefix filename for all dumped files (models, solutions, lns sub-models).booleanDEBUG 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 longbooleanControls is time and source code info are used to prefix logging messages.booleanIf true, all logging message will be sent 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(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 is time and source code info are used to prefix logging messages.voidsetLogtostderr(boolean value) If true, all logging message will be sent to stderr.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
CppFlags
protected CppFlags(long cPtr, boolean cMemoryOwn) -
CppFlags
public CppFlags()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
setLogtostderr
public void setLogtostderr(boolean value) If true, all logging message will be sent to stderr. -
getLogtostderr
public boolean getLogtostderr()If true, all logging message will be sent to stderr. -
setLog_prefix
public void setLog_prefix(boolean value) Controls is time and source code info are used to prefix logging messages. -
getLog_prefix
public boolean getLog_prefix()Controls is time and source code info are used to prefix logging messages. -
setCp_model_dump_prefix
Prefix filename for all dumped files (models, solutions, lns sub-models). -
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.
-