Go to the source code of this file.
|
| | ABSL_FLAG (std::string, input, "", "Required: input file of the problem to solve. Many format are supported:" ".cnf (sat, max-sat, weighted max-sat), .opb (pseudo-boolean sat/optim) " "and by default the CpModelProto proto (binary or text).") |
| | ABSL_FLAG (std::string, hint_file, "", "Protobuf file containing a CpModelResponse. The solution will be used as a" " hint to bootstrap the search.") |
| | ABSL_FLAG (std::string, domain_file, "", "Protobuf file containing a CpModelResponse. If present, the " "tightened models will be used to reduce the domain of variables.") |
| | ABSL_FLAG (std::string, output, "", "If non-empty, write the response there. By default it uses the " "binary format except if the file extension is '.txt'.") |
| | ABSL_FLAG (std::string, params, "", "Parameters for the sat solver in a text format of the " "SatParameters proto, example: --params=use_conflicts:true.") |
| | ABSL_FLAG (bool, wcnf_use_strong_slack, true, "If true, when we add a slack variable to reify a soft clause, we " "enforce the fact that when it is true, the clause must be false.") |
| | ABSL_FLAG (bool, fingerprint_intermediate_solutions, false, "Attach the fingerprint of intermediate solutions to the output.") |
| | ABSL_FLAG (bool, competition_mode, false, "If true, output the log in a competition format.") |
| | ABSL_FLAG (bool, force_interleave_search, false, "If true, enable interleaved workers when num_workers is 1.") |
| int | main (int argc, char **argv) |
◆ ABSL_FLAG() [1/9]
| ABSL_FLAG |
( |
bool | , |
|
|
competition_mode | , |
|
|
false | , |
|
|
"If | true, |
|
|
output the log in a competition format." | ) |
◆ ABSL_FLAG() [2/9]
| ABSL_FLAG |
( |
bool | , |
|
|
fingerprint_intermediate_solutions | , |
|
|
false | , |
|
|
"Attach the fingerprint of intermediate solutions to the output." | ) |
◆ ABSL_FLAG() [3/9]
| ABSL_FLAG |
( |
bool | , |
|
|
force_interleave_search | , |
|
|
false | , |
|
|
"If | true, |
|
|
enable interleaved workers when num_workers is 1." | ) |
◆ ABSL_FLAG() [4/9]
| ABSL_FLAG |
( |
bool | , |
|
|
wcnf_use_strong_slack | , |
|
|
true | , |
|
|
"If | true, |
|
|
when we add a slack variable to reify a soft | clause, |
|
|
we " "enforce the fact that when it is | true, |
|
|
the clause must be false." | ) |
◆ ABSL_FLAG() [5/9]
| ABSL_FLAG |
( |
std::string | , |
|
|
domain_file | , |
|
|
"" | , |
|
|
"Protobuf file containing a CpModelResponse. If | present, |
|
|
the " "tightened models will be used to reduce the domain of variables." | ) |
◆ ABSL_FLAG() [6/9]
| ABSL_FLAG |
( |
std::string | , |
|
|
hint_file | , |
|
|
"" | , |
|
|
"Protobuf file containing a CpModelResponse. The solution will be used as a" " hint to bootstrap the search." | ) |
◆ ABSL_FLAG() [7/9]
| ABSL_FLAG |
( |
std::string | , |
|
|
input | , |
|
|
"" | , |
|
|
"Required: input file of the problem to solve. Many format are supported:" ".cnf | sat, max-sat, weighted max-sat, |
|
|
.opb(pseudo-boolean sat/optim) " "and by default the CpModelProto proto(binary or text)." | ) |
◆ ABSL_FLAG() [8/9]
| ABSL_FLAG |
( |
std::string | , |
|
|
output | , |
|
|
"" | , |
|
|
"If non- | empty, |
|
|
write the response there. By default it uses the " "binary format except if the file extension is '.txt'." | ) |
◆ ABSL_FLAG() [9/9]
| ABSL_FLAG |
( |
std::string | , |
|
|
params | , |
|
|
"" | , |
|
|
"Parameters for the sat solver in a text format of the " "SatParameters | proto ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
◆ kUsage
Initial value:
=
"Usage: see flags.\n"
"This program solves a given problem with the CP-SAT solver."
Definition at line 440 of file sat_runner.cc.